【发布时间】:2019-04-28 05:10:23
【问题描述】:
如何从 DeepPavlov 运行 NER?
我有一个包含句子“sentences.txt”的输入文件,需要将结果放在“result.txt”中。
【问题讨论】:
标签: deep-learning nlp named-entity-recognition
如何从 DeepPavlov 运行 NER?
我有一个包含句子“sentences.txt”的输入文件,需要将结果放在“result.txt”中。
【问题讨论】:
标签: deep-learning nlp named-entity-recognition
使用 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]
【讨论】: