public class DocClassifierCrossValidator extends Object
| Constructor and Description |
|---|
DocClassifierCrossValidator(String languageCode,
opennlp.tools.util.TrainingParameters mlParams,
DocumentClassifierFactory factory,
DocumentClassifierEvaluationMonitor... listeners) |
| Modifier and Type | Method and Description |
|---|---|
void |
evaluate(opennlp.tools.util.ObjectStream<DocSample> samples,
int nFolds)
Starts the evaluation.
|
double |
getDocumentAccuracy()
Retrieves the accuracy for all iterations.
|
long |
getDocumentCount()
Retrieves the number of words which where validated over all iterations.
|
public DocClassifierCrossValidator(String languageCode, opennlp.tools.util.TrainingParameters mlParams, DocumentClassifierFactory factory, DocumentClassifierEvaluationMonitor... listeners)
public void evaluate(opennlp.tools.util.ObjectStream<DocSample> samples, int nFolds) throws IOException
samples - the data to train and testnFolds - number of foldsIOException - if io errorpublic double getDocumentAccuracy()
public long getDocumentCount()
Copyright © 2017 IXA pipes. All rights reserved.