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 byte[] loadBytes(File inFile) throws IOException
IOException
public static opennlp.tools.util.TrainingParameters loadTrainingParams(String inFileValue, boolean isSequenceTrainingAllowed) throws org.apache.uima.resource.ResourceInitializationException
org.apache.uima.resource.ResourceInitializationException
Copyright © 2017 The Apache Software Foundation. All rights reserved.