Search code examples
javanlpopennlp

Apache OpenNLP, how to train or made new model?


For example en name finder does not find some names, and I want to add new data to existing data model. I found this click here answer, but I do not understand

what is en-ner-person.train ? is it clone of en-ner-person.bin?

We should load existing model and add new data from file? What type of info should contain txt file?


Solution

  • en-ner-person.train is the training file and en-ner-person.bin is the model.

    The training file consists of the training data with which you train your model.

    the text file should contain the training data you want to add in proper format. Have a look at this which explains how to train a model.