Skip to content

EntropyNameFinder.TrainModel Syntax for training custom model #35

Description

@alijundi

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions