简体   繁体   中英

Runnig DeepPavlov Named Entity Recognition

How I can run NER from DeepPavlov?

I have an input file with sentences "sentences.txt" and need to put results in "result.txt".

There are several choices to do named-entity recognition with DeepPavlov

The Pythonic way

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'])

and from the command line

python deeppavlov/deep.py interact ner_ontonotes [-d]

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM