我試圖拿出一個句子,並提取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