如何查找句子中的单词是否指向城市 [英] How to find if a word in a sentence is pointing to a city

查看:105
本文介绍了如何查找句子中的单词是否指向城市的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何查找句子中的单词是否指向城市

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.

推荐答案

识别可能引用了各种特定类型(位置,组织,日期等)的个人的多词表达式的任务称为命名实体识别(NER).

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.

这篇关于如何查找句子中的单词是否指向城市的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆