public class TokenizerCrossValidator
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
void |
evaluate(ObjectStream<TokenSample> samples,
int nFolds)
Starts the evaluation.
|
FMeasure |
getFMeasure() |
public TokenizerCrossValidator(TrainingParameters params, TokenizerFactory factory, TokenizerEvaluationMonitor... listeners)
public TokenizerCrossValidator(java.lang.String language, Dictionary abbreviations, boolean alphaNumericOptimization, TrainingParameters params, TokenizerEvaluationMonitor... listeners)
TokenizerCrossValidator(TrainingParameters, TokenizerFactory, TokenizerEvaluationMonitor...)
instead and pass in a TokenizerFactory
public TokenizerCrossValidator(java.lang.String language, boolean alphaNumericOptimization)
TokenizerCrossValidator(TrainingParameters, TokenizerFactory, TokenizerEvaluationMonitor...)
instead and pass in a TokenizerFactory
public TokenizerCrossValidator(java.lang.String language, boolean alphaNumericOptimization, TrainingParameters params, TokenizerEvaluationMonitor... listeners)
TokenizerCrossValidator(TrainingParameters, TokenizerFactory, TokenizerEvaluationMonitor...)
instead and pass in a TokenizerFactory
public void evaluate(ObjectStream<TokenSample> samples, int nFolds) throws java.io.IOException
samples
- the data to train and testnFolds
- number of foldsjava.io.IOException
public FMeasure getFMeasure()
Copyright © 2010 - 2020 Adobe. All Rights Reserved