是否有任何众所周知的算法来检测名称的存在?
例如,给定一个字符串:
“Bob 和他的朋友 Jim Smith 一起去钓鱼。”
Bob 和 Jim Smith 都是名字,但 bob 和 smith 都是单词。如果它们不是大写,那么在我们对句子的了解之外就不会有更少的迹象。是否有任何众所周知的算法可以检测姓名(至少是西方姓名)的存在?
For example, given a string:
"Bob went fishing with his friend Jim Smith."
Bob and Jim Smith are both names, but bob and smith are both words. Weren't for them being uppercase, there would be less indication of this outside of our knowledge of the sentence. Are there any well known algorithms for detecting the presence of names, at least Western names?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
看一下命名实体识别。
http://en.wikipedia.org/wiki/Named_entity_recognition 文章链接到两个很好的实现。
我不确定这是否属于您对语法分析的定义。
Take a look at Named Entity Recognition.
http://en.wikipedia.org/wiki/Named_entity_recognition The article links to two good implementations.
Im not sure if this falls under your definition of grammar analysis though.