public class TokenizerCrossValidator extends Object
Constructor and Description |
---|
TokenizerCrossValidator(String language,
boolean alphaNumericOptimization)
Deprecated.
use
TokenizerCrossValidator(TrainingParameters, TokenizerFactory, TokenizerEvaluationMonitor...)
instead and pass in a TokenizerFactory |
TokenizerCrossValidator(String language,
boolean alphaNumericOptimization,
TrainingParameters params,
TokenizerEvaluationMonitor... listeners)
Deprecated.
use
TokenizerCrossValidator(TrainingParameters, TokenizerFactory, TokenizerEvaluationMonitor...)
instead and pass in a TokenizerFactory |
TokenizerCrossValidator(String language,
Dictionary abbreviations,
boolean alphaNumericOptimization,
TrainingParameters params,
TokenizerEvaluationMonitor... listeners)
Deprecated.
use
TokenizerCrossValidator(TrainingParameters, TokenizerFactory, TokenizerEvaluationMonitor...)
instead and pass in a TokenizerFactory |
TokenizerCrossValidator(TrainingParameters params,
TokenizerFactory factory,
TokenizerEvaluationMonitor... listeners) |
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(String language, Dictionary abbreviations, boolean alphaNumericOptimization, TrainingParameters params, TokenizerEvaluationMonitor... listeners)
TokenizerCrossValidator(TrainingParameters, TokenizerFactory, TokenizerEvaluationMonitor...)
instead and pass in a TokenizerFactory
public TokenizerCrossValidator(String language, boolean alphaNumericOptimization)
TokenizerCrossValidator(TrainingParameters, TokenizerFactory, TokenizerEvaluationMonitor...)
instead and pass in a TokenizerFactory
public TokenizerCrossValidator(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 IOException
samples
- the data to train and testnFolds
- number of foldsIOException
public FMeasure getFMeasure()
Copyright © 2015 The Apache Software Foundation. All rights reserved.