public class FeaturizerCrossValidator extends Object
| Constructor and Description |
|---|
FeaturizerCrossValidator(String languageCode,
opennlp.tools.util.TrainingParameters params,
FeatureDictionary dict,
String cgFlags,
String factoryClass,
FeaturizerEvaluationMonitor... listeners) |
| Modifier and Type | Method and Description |
|---|---|
void |
evaluate(opennlp.tools.util.ObjectStream<FeatureSample> samples,
int nFolds)
Starts the evaluation.
|
double |
getWordAccuracy()
Retrieves the accuracy for all iterations.
|
long |
getWordCount()
Retrieves the number of words which where validated over all iterations.
|
public FeaturizerCrossValidator(String languageCode, opennlp.tools.util.TrainingParameters params, FeatureDictionary dict, String cgFlags, String factoryClass, FeaturizerEvaluationMonitor... listeners)
public void evaluate(opennlp.tools.util.ObjectStream<FeatureSample> samples, int nFolds) throws IOException, opennlp.tools.util.InvalidFormatException, IOException
samples - the data to train and testnFolds - number of foldsIOExceptionopennlp.tools.util.InvalidFormatExceptionpublic double getWordAccuracy()
public long getWordCount()
Copyright © 2012–2017 CoGrOO. All rights reserved.