EntropyNameFinder.TrainModel Syntax for training custom model
alijundi opened this issue · 1 comments
alijundi commented
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 commented
I Also tried
PANEL NAME: <START:NAME>DB<END>
same issue!