|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectopennlp.tools.sentdetect.SDCrossValidator
public class SDCrossValidator
Constructor Summary | |
---|---|
SDCrossValidator(String languageCode)
Deprecated. use #SDCrossValidator(String, TrainingParameters, Dictionary, SentenceDetectorEvaluationMonitor...)
instead and pass in a TrainingParameters object. |
|
SDCrossValidator(String languageCode,
int cutoff,
int iterations)
Deprecated. Use SDCrossValidator(String, TrainingParameters, SentenceDetectorFactory, SentenceDetectorEvaluationMonitor...)
and pass in a SentenceDetectorFactory . |
|
SDCrossValidator(String languageCode,
int cutoff,
int iterations,
Dictionary abbreviations)
Deprecated. use #SDCrossValidator(String, TrainingParameters, Dictionary, SentenceDetectorEvaluationMonitor...)
instead and pass in a TrainingParameters object. |
|
SDCrossValidator(String languageCode,
TrainingParameters params)
Deprecated. Use SDCrossValidator(String, TrainingParameters, SentenceDetectorFactory, SentenceDetectorEvaluationMonitor...)
and pass in a SentenceDetectorFactory . |
|
SDCrossValidator(String languageCode,
TrainingParameters params,
SentenceDetectorEvaluationMonitor... listeners)
Deprecated. use #SDCrossValidator(String, TrainingParameters, Dictionary, SentenceDetectorEvaluationMonitor...)
instead and pass in a TrainingParameters object. |
|
SDCrossValidator(String languageCode,
TrainingParameters params,
SentenceDetectorFactory sdFactory,
SentenceDetectorEvaluationMonitor... listeners)
|
Method Summary | |
---|---|
void |
evaluate(ObjectStream<SentenceSample> samples,
int nFolds)
Starts the evaluation. |
FMeasure |
getFMeasure()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SDCrossValidator(String languageCode, TrainingParameters params, SentenceDetectorFactory sdFactory, SentenceDetectorEvaluationMonitor... listeners)
public SDCrossValidator(String languageCode, int cutoff, int iterations)
SDCrossValidator(String, TrainingParameters, SentenceDetectorFactory, SentenceDetectorEvaluationMonitor...)
and pass in a SentenceDetectorFactory
.
public SDCrossValidator(String languageCode, TrainingParameters params)
SDCrossValidator(String, TrainingParameters, SentenceDetectorFactory, SentenceDetectorEvaluationMonitor...)
and pass in a SentenceDetectorFactory
.
@Deprecated public SDCrossValidator(String languageCode, int cutoff, int iterations, Dictionary abbreviations)
#SDCrossValidator(String, TrainingParameters, Dictionary, SentenceDetectorEvaluationMonitor...)
instead and pass in a TrainingParameters object.
public SDCrossValidator(String languageCode, TrainingParameters params, SentenceDetectorEvaluationMonitor... listeners)
#SDCrossValidator(String, TrainingParameters, Dictionary, SentenceDetectorEvaluationMonitor...)
instead and pass in a TrainingParameters object.
public SDCrossValidator(String languageCode)
#SDCrossValidator(String, TrainingParameters, Dictionary, SentenceDetectorEvaluationMonitor...)
instead and pass in a TrainingParameters object.
Method Detail |
---|
public void evaluate(ObjectStream<SentenceSample> samples, int nFolds) throws IOException
samples
- the data to train and testnFolds
- number of folds
IOException
public FMeasure getFMeasure()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |