How to find if a word in a sentence is pointing to a city

笑着哭i 提交于 2019-12-08 08:15:31

问题


How to find if a word in a sentence is pointing to a city

I live in San Francisco I work in San Jose I was born in New York

Is there a way to find that "San Francisco" is a city in the above sentence.


回答1:


The task of recognising possibly multi-word expressions that reference individuals of various specific types (locations, but also organisations, dates, etc.) is called named-entity recognition (NER).

For a simple task such as yours, existing freely available tools and models are sufficient. You could try the Stanford Named Entity Recognizer, which is free software. Try analysing your sentence using their online demo.



来源:https://stackoverflow.com/questions/22397698/how-to-find-if-a-word-in-a-sentence-is-pointing-to-a-city

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!