Package opennlp.tools.chunker
Class ChunkerCrossValidator
- java.lang.Object
-
- opennlp.tools.chunker.ChunkerCrossValidator
-
public class ChunkerCrossValidator extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description ChunkerCrossValidator(java.lang.String languageCode, TrainingParameters params, ChunkerFactory factory, ChunkerEvaluationMonitor... listeners)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
evaluate(ObjectStream<ChunkSample> samples, int nFolds)
Starts the evaluation.FMeasure
getFMeasure()
-
-
-
Constructor Detail
-
ChunkerCrossValidator
public ChunkerCrossValidator(java.lang.String languageCode, TrainingParameters params, ChunkerFactory factory, ChunkerEvaluationMonitor... listeners)
-
-
Method Detail
-
evaluate
public void evaluate(ObjectStream<ChunkSample> 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()
-
-