如何从DeepPavlov运行NER?
我有一个输入文件,句子为“ sentences.txt”,需要将结果放入“ result.txt”。
答案 0 :(得分:0)
使用DeepPavlov进行命名实体识别有多种选择
Python方式
from deeppavlov import configs, build_model
ner_model = build_model(configs.ner.ner_ontonotes, download=True)
ner_model(['Computer Sciences Corp. is close to making final an agreement to buy Cleveland Consulting Associates'])
并通过命令行
python deeppavlov/deep.py interact ner_ontonotes [-d]