我如何从DeepPavlov运行NER?
我有一个带有句子"sentences.txt“的输入文件,需要将结果放在"result.txt”中。
发布于 2018-12-11 09:28:37
使用DeepPavlov进行命名实体识别有几种选择。
毕多尼式
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]https://stackoverflow.com/questions/53483101
复制相似问题