Package opennlp.tools.chunker
Class ChunkerCrossValidator
java.lang.Object
opennlp.tools.chunker.ChunkerCrossValidator
Cross validator for 
Chunker.- 
Constructor SummaryConstructorsConstructorDescriptionChunkerCrossValidator(String languageCode, TrainingParameters params, ChunkerFactory factory, ChunkerEvaluationMonitor... listeners) Initializes aChunkerCrossValidatorinstance via given parameters.
- 
Method SummaryModifier and TypeMethodDescriptionvoidevaluate(ObjectStream<ChunkSample> samples, int nFolds) Starts the evaluation.
- 
Constructor Details- 
ChunkerCrossValidatorpublic ChunkerCrossValidator(String languageCode, TrainingParameters params, ChunkerFactory factory, ChunkerEvaluationMonitor... listeners) Initializes aChunkerCrossValidatorinstance via given parameters.- Parameters:
- languageCode- An ISO conform language code.
- params- The- TrainingParametersfor the context of cross validation.
- factory- The- ChunkerFactoryfor creating related objects.
- listeners- the- evaluation listeners.
 
 
- 
- 
Method Details- 
evaluateStarts the evaluation.- Parameters:
- samples- The- ObjectStreamof- samplesto train and test with.
- nFolds- Number of folds. It must be greater than zero.
- Throws:
- IOException- Thrown if IO errors occurred.
 
- 
getFMeasure
 
-