public class ChunkerCrossValidator extends Object
Constructor and Description |
---|
ChunkerCrossValidator(String languageCode,
TrainingParameters params,
ChunkerFactory factory,
ChunkerEvaluationMonitor... listeners) |
Modifier and Type | Method and Description |
---|---|
void |
evaluate(ObjectStream<ChunkSample> samples,
int nFolds)
Starts the evaluation.
|
FMeasure |
getFMeasure() |
public ChunkerCrossValidator(String languageCode, TrainingParameters params, ChunkerFactory factory, ChunkerEvaluationMonitor... listeners)
public void evaluate(ObjectStream<ChunkSample> 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.