Package opennlp.tools.tokenize
Class TokenizerCrossValidator
- java.lang.Object
-
- opennlp.tools.tokenize.TokenizerCrossValidator
-
public class TokenizerCrossValidator extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description TokenizerCrossValidator(TrainingParameters params, TokenizerFactory factory, TokenizerEvaluationMonitor... listeners)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
evaluate(ObjectStream<TokenSample> samples, int nFolds)
Starts the evaluation.FMeasure
getFMeasure()
-
-
-
Constructor Detail
-
TokenizerCrossValidator
public TokenizerCrossValidator(TrainingParameters params, TokenizerFactory factory, TokenizerEvaluationMonitor... listeners)
-
-
Method Detail
-
evaluate
public void evaluate(ObjectStream<TokenSample> samples, int nFolds) throws java.io.IOException
Starts the evaluation.- Parameters:
samples
- the data to train and testnFolds
- number of folds- Throws:
java.io.IOException
-
getFMeasure
public FMeasure getFMeasure()
-
-