【问题标题】:Runnig DeepPavlov Named Entity Recognition运行 DeepPavlov 命名实体识别
【发布时间】:2019-04-28 05:10:23
【问题描述】:

如何从 DeepPavlov 运行 NER?

我有一个包含句子“sentences.txt”的输入文件,需要将结果放在“result.txt”中。

【问题讨论】:

    标签: deep-learning nlp named-entity-recognition


    【解决方案1】:

    使用 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]
    

    【讨论】:

      猜你喜欢
      • 2014-03-17
      • 2019-11-12
      • 2011-07-31
      • 2018-03-08
      • 2020-07-02
      • 2010-11-04
      • 2021-05-06
      • 2012-09-16
      • 1970-01-01
      相关资源
      最近更新 更多