public class TokenNameFinderCrossValidator extends Object
Constructor and Description |
---|
TokenNameFinderCrossValidator(String languageCode,
String type,
TrainingParameters trainParams,
byte[] featureGeneratorBytes,
Map<String,Object> resources,
SequenceCodec<String> codec,
TokenNameFinderEvaluationMonitor... listeners)
Name finder cross validator
|
TokenNameFinderCrossValidator(String languageCode,
String type,
TrainingParameters trainParams,
byte[] featureGeneratorBytes,
Map<String,Object> resources,
TokenNameFinderEvaluationMonitor... listeners) |
TokenNameFinderCrossValidator(String languageCode,
String type,
TrainingParameters trainParams,
TokenNameFinderFactory factory,
TokenNameFinderEvaluationMonitor... listeners) |
Modifier and Type | Method and Description |
---|---|
void |
evaluate(ObjectStream<NameSample> samples,
int nFolds)
Starts the evaluation.
|
FMeasure |
getFMeasure() |
public TokenNameFinderCrossValidator(String languageCode, String type, TrainingParameters trainParams, byte[] featureGeneratorBytes, Map<String,Object> resources, SequenceCodec<String> codec, TokenNameFinderEvaluationMonitor... listeners)
languageCode
- the language of the training datatype
- null or an override type for all types in the training datatrainParams
- machine learning train parametersfeatureGeneratorBytes
- descriptor to configure the feature generation or nulllisteners
- a list of listenersresources
- the resources for the name finder or null if nonepublic TokenNameFinderCrossValidator(String languageCode, String type, TrainingParameters trainParams, byte[] featureGeneratorBytes, Map<String,Object> resources, TokenNameFinderEvaluationMonitor... listeners)
public TokenNameFinderCrossValidator(String languageCode, String type, TrainingParameters trainParams, TokenNameFinderFactory factory, TokenNameFinderEvaluationMonitor... listeners)
public void evaluate(ObjectStream<NameSample> 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.