OpenNlp icon indicating copy to clipboard operation
OpenNlp copied to clipboard

EntropyNameFinder.TrainModel Syntax for training custom model

Open alijundi opened this issue 2 years ago • 1 comments

Dear @AlexPoint

I am using the below code to train a custom model for my case. I can see the model being written but I am not sure if the syntax of the text file is correct.

I use the below format in the training file: PANEL NAME: <NAME>MDB</NAME> Where NAME is the named entity

var bestmodel = OpenNLP.Tools.NameFind.MaximumEntropyNameFinder.TrainModel(EntityExctractor_trainingFile, 5, 2);
SharpEntropy.IO.BinaryGisModelWriter modelwriter = new SharpEntropy.IO.BinaryGisModelWriter();
modelwriter.Persist(bestmodel, EntityExctractor_outputFilePath);

Any pointers on how to proceed?

alijundi avatar Aug 15 '22 13:08 alijundi

I Also tried PANEL NAME: <START:NAME>DB<END>

same issue!

alijundi avatar Aug 15 '22 13:08 alijundi