Package opennlp.tools.sentdetect
Klasse SDCrossValidator
java.lang.Object
opennlp.tools.sentdetect.SDCrossValidator
A cross validator for
sentence detectors
.-
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungSDCrossValidator
(String languageCode, TrainingParameters params, SentenceDetectorFactory sdFactory, SentenceDetectorEvaluationMonitor... listeners) -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoid
evaluate
(ObjectStream<SentenceSample> samples, int nFolds) Starts the evaluation.
-
Konstruktordetails
-
SDCrossValidator
public SDCrossValidator(String languageCode, TrainingParameters params, SentenceDetectorFactory sdFactory, SentenceDetectorEvaluationMonitor... listeners)
-
-
Methodendetails
-
evaluate
Starts the evaluation.- Parameter:
samples
- the data to train and testnFolds
- number of folds- Löst aus:
IOException
- Thrown if IO errors occurred during processing.
-
getFMeasure
-