public final class OpennlpUtil extends Object
| Modifier and Type | Method and 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 a
GISModel and writes it to the given
OutputStream. |
public static void serialize(opennlp.tools.util.model.BaseModel model,
File modelFile)
throws IOException
GISModel and writes it to the given
OutputStream.model - model to serializeIOException - IOExceptionpublic static final byte[] loadBytes(File inFile) throws IOException
IOExceptionpublic static final opennlp.tools.util.TrainingParameters loadTrainingParams(String inFileValue, boolean isSequenceTrainingAllowed) throws org.apache.uima.resource.ResourceInitializationException
org.apache.uima.resource.ResourceInitializationExceptionCopyright © 2015 The Apache Software Foundation. All rights reserved.