Package opennlp.tools.sentdetect
Class SDCrossValidator
java.lang.Object
opennlp.tools.sentdetect.SDCrossValidator
A cross validator for
sentence detectors
.-
Constructor Summary
ConstructorDescriptionSDCrossValidator
(String languageCode, TrainingParameters params, SentenceDetectorFactory sdFactory, SentenceDetectorEvaluationMonitor... listeners) -
Method Summary
Modifier and TypeMethodDescriptionvoid
evaluate
(ObjectStream<SentenceSample> samples, int nFolds) Starts the evaluation.
-
Constructor Details
-
SDCrossValidator
public SDCrossValidator(String languageCode, TrainingParameters params, SentenceDetectorFactory sdFactory, SentenceDetectorEvaluationMonitor... listeners)
-
-
Method Details
-
evaluate
Starts the evaluation.- Parameters:
samples
- the data to train and testnFolds
- number of folds- Throws:
IOException
- Thrown if IO errors occurred during processing.
-
getFMeasure
-