Package opennlp.uima.util
Class OpennlpUtil
- java.lang.Object
-
- opennlp.uima.util.OpennlpUtil
-
public final class OpennlpUtil extends Object
This class contains utils methods for the maxent library.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static byte[]
loadBytes(File inFile)
static opennlp.tools.util.TrainingParameters
loadTrainingParams(String inFileValue, boolean isSequenceTrainingAllowed)
static void
serialize(opennlp.tools.util.model.BaseModel model, File modelFile)
Serializes aGISModel
and writes it to the givenOutputStream
.
-
-
-
Method Detail
-
serialize
public static void serialize(opennlp.tools.util.model.BaseModel model, File modelFile) throws IOException
Serializes aGISModel
and writes it to the givenOutputStream
.- Parameters:
model
- model to serialize- Throws:
IOException
- IOException
-
loadBytes
public static byte[] loadBytes(File inFile) throws IOException
- Throws:
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
-
-