How to “update” an existing Named Entity Recognition model - rather than creating from scratch?

后端 未结 2 674
无人共我
无人共我 2020-12-06 07:54

Please see the tutorial steps for OpenNLP - Named Entity Recognition : Link to tutorial I am using the \"en-ner-person.bin\" model found here In the tutorial, there are inst

2条回答
  •  既然无缘
    2020-12-06 08:12

    There is no way to append to a model unfortunately. But you can use to model to find what it can find, and write the hits it found to a "known entities" file, and also write out the sentences to a file. You can then add the other names you know are not getting recognized to the "known entities" file (and more sentences they might be in to the sentences file). Then you can use an OpenNLP addon called modelbuilder-addon to build a new model using the file of sentences, and the file of "known entities"

    see this post for a code example.

    OpenNLP: foreign names does not get recognized

    it's a very new addon, let me know if how it works.

提交回复
热议问题