public final class InputOutputUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static InputStream |
getDictionaryResource(String resource)
Get an input stream from a resource name.
|
static opennlp.tools.util.TrainingParameters |
loadTrainingParameters(String paramFile)
Load the parameters in the
TrainingParameters file. |
static String |
normalizeLexiconName(String resource)
Remove punctuation.
|
static opennlp.tools.util.ObjectStream<String> |
readFileIntoMarkableStreamFactory(String infile)
Read the file into an
ObjectStream. |
public static final String normalizeLexiconName(String resource)
resource - the dictionary pathpublic static final InputStream getDictionaryResource(String resource)
resource - the name of the resource (absolute path with no starting /)public static opennlp.tools.util.TrainingParameters loadTrainingParameters(String paramFile)
TrainingParameters file.paramFile - the training parameters fileCopyright © 2016 IXA pipes. All rights reserved.