Class OpennlpUtil


  • public final class OpennlpUtil
    extends Object
    This class contains utils methods for the maxent library.
    • Method Detail

      • serialize

        public static void serialize​(opennlp.tools.util.model.BaseModel model,
                                     File modelFile)
                              throws IOException
        Serializes a GISModel and writes it to the given OutputStream.
        Parameters:
        model - model to serialize
        Throws:
        IOException - IOException
      • loadTrainingParams

        public static opennlp.tools.util.TrainingParameters loadTrainingParams​(String inFileValue,
                                                                               boolean isSequenceTrainingAllowed)
                                                                        throws org.apache.uima.resource.ResourceInitializationException
        Throws:
        org.apache.uima.resource.ResourceInitializationException