public final class XMLFeatureDescriptor extends Object
| Modifier and Type | Method and Description |
|---|---|
static String |
createXMLFeatureDescriptor(opennlp.tools.util.TrainingParameters params)
Generate the XML feature descriptor from the TrainingParameters prop file.
|
static int |
getLeftWindow()
Get the left window feature length.
|
static int |
getMaxCharNgram()
Get the maximum character ngram.
|
static int |
getMinCharNgram()
Get the minimum character ngram.
|
static List<Integer> |
getNgramRange(opennlp.tools.util.TrainingParameters params)
Get the range of the character ngram of current token.
|
static int |
getRightWindow()
Get the right window feature length.
|
static void |
setNgramRange(opennlp.tools.util.TrainingParameters params)
Set the character ngrams minimum and maximum values.
|
static void |
setWindow(opennlp.tools.util.TrainingParameters params)
Set the window length from the training parameters file.
|
public static int getLeftWindow()
public static int getRightWindow()
public static int getMinCharNgram()
public static int getMaxCharNgram()
public static String createXMLFeatureDescriptor(opennlp.tools.util.TrainingParameters params) throws IOException
params - the properties fileIOException - if input output failspublic static void setWindow(opennlp.tools.util.TrainingParameters params)
params - the properties filepublic static void setNgramRange(opennlp.tools.util.TrainingParameters params)
params - the parameters fileCopyright © 2016 IXA pipes. All rights reserved.