public class SDCrossValidator extends Object
Constructor and Description |
---|
SDCrossValidator(String languageCode)
Deprecated.
use
SDCrossValidator(String, TrainingParameters,
SentenceDetectorFactory, SentenceDetectorEvaluationMonitor...)
instead and pass in a TrainingParameters object. |
SDCrossValidator(String languageCode,
TrainingParameters params)
|
SDCrossValidator(String languageCode,
TrainingParameters params,
SentenceDetectorEvaluationMonitor... listeners)
Deprecated.
use
SDCrossValidator(String, TrainingParameters, SentenceDetectorFactory,
SentenceDetectorEvaluationMonitor...)
instead and pass in a TrainingParameters object. |
SDCrossValidator(String languageCode,
TrainingParameters params,
SentenceDetectorFactory sdFactory,
SentenceDetectorEvaluationMonitor... listeners) |
Modifier and Type | Method and Description |
---|---|
void |
evaluate(ObjectStream<SentenceSample> samples,
int nFolds)
Starts the evaluation.
|
FMeasure |
getFMeasure() |
public SDCrossValidator(String languageCode, TrainingParameters params, SentenceDetectorFactory sdFactory, SentenceDetectorEvaluationMonitor... listeners)
public SDCrossValidator(String languageCode, TrainingParameters params)
public SDCrossValidator(String languageCode, TrainingParameters params, SentenceDetectorEvaluationMonitor... listeners)
SDCrossValidator(String, TrainingParameters, SentenceDetectorFactory,
SentenceDetectorEvaluationMonitor...)
instead and pass in a TrainingParameters object.public SDCrossValidator(String languageCode)
SDCrossValidator(String, TrainingParameters,
SentenceDetectorFactory, SentenceDetectorEvaluationMonitor...)
instead and pass in a TrainingParameters object.public void evaluate(ObjectStream<SentenceSample> samples, int nFolds) throws IOException
samples
- the data to train and testnFolds
- number of foldsIOException
public FMeasure getFMeasure()
Copyright © 2021 The Apache Software Foundation. All rights reserved.