我试图拿出一个句子,并提取Person(PER)和Place(GPE)之间的关系。 句子:“约翰来自俄亥俄州,迈克尔来自佛罗里达州,丽贝卡来自田纳西州的纳什维尔。” 对于最后一个人,她有一个城市和一个国家,可以被提取作为她的地方。到目前为止,我尝试过使用nltk来做到这一点,但只能提取她的城市,而不是她的状态。 我已经试过: import re
from nltk import ne_chunk
我的文本文件包含段落是这样的。 summary
A result oriented and dedicated professional with three years’ experience in Software Development. A proactive individual with a logical approach to challenges, performs effe
我有包含数据的文本文件,如下所示的标题之间的段落: History
The term "data science" (originally used interchangeably with "datalogy") has existed for over thirty years and was used initially as a substitute for computer scie