我正在使用 spaCy 尝试在句子中提取 ORG 实体标签。但是,它并没有拾取所有标签,而且它拾取的标签因组织名称的书写方式而异。例如:
import spacy
from spacy import displacy
doc = nlp("Apple, Microsoft, Google, and Facebook are all techo companies from the USA")
displacy.render(doc, style='ent') # I am using `.render` as I am in a notebook
尽管
import spacy
from spacy import displacy
doc = nlp("Apple, Microsoft Inc, Google, and Facebook are all techo companies from the USA")
displacy.render(doc, style='ent')
关于我做错了什么的任何想法?