public class TokenizerCrossValidator extends Object
Constructor and Description |
---|
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 void evaluate(ObjectStream<TokenSample> samples, int nFolds) throws IOException
samples
- the data to train and testnFolds
- number of foldsIOException
public FMeasure getFMeasure()
Copyright © 2020 The Apache Software Foundation. All rights reserved.