public class TokenNameFinderCrossValidator
extends java.lang.Object
Constructor and Description |
---|
TokenNameFinderCrossValidator(java.lang.String languageCode,
java.lang.String type,
TrainingParameters trainParams,
byte[] featureGeneratorBytes,
java.util.Map<java.lang.String,java.lang.Object> resources,
SequenceCodec<java.lang.String> codec,
TokenNameFinderEvaluationMonitor... listeners)
Name finder cross validator
|
TokenNameFinderCrossValidator(java.lang.String languageCode,
java.lang.String type,
TrainingParameters trainParams,
byte[] featureGeneratorBytes,
java.util.Map<java.lang.String,java.lang.Object> resources,
TokenNameFinderEvaluationMonitor... listeners) |
TokenNameFinderCrossValidator(java.lang.String languageCode,
java.lang.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(java.lang.String languageCode, java.lang.String type, TrainingParameters trainParams, byte[] featureGeneratorBytes, java.util.Map<java.lang.String,java.lang.Object> resources, SequenceCodec<java.lang.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(java.lang.String languageCode, java.lang.String type, TrainingParameters trainParams, byte[] featureGeneratorBytes, java.util.Map<java.lang.String,java.lang.Object> resources, TokenNameFinderEvaluationMonitor... listeners)
public TokenNameFinderCrossValidator(java.lang.String languageCode, java.lang.String type, TrainingParameters trainParams, TokenNameFinderFactory factory, TokenNameFinderEvaluationMonitor... listeners)
public void evaluate(ObjectStream<NameSample> 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