Package opennlp.tools.ml
Class AbstractEventTrainer
java.lang.Object
opennlp.tools.ml.AbstractTrainer
opennlp.tools.ml.AbstractEventTrainer
- All Implemented Interfaces:
EventTrainer
- Direct Known Subclasses:
GISTrainer
,PerceptronTrainer
,QNTrainer
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
static final String
static final String
static final String
Fields inherited from class opennlp.tools.ml.AbstractTrainer
ALGORITHM_PARAM, CUTOFF_DEFAULT, CUTOFF_PARAM, ITERATIONS_DEFAULT, ITERATIONS_PARAM, TRAINER_TYPE_PARAM, VERBOSE_DEFAULT, VERBOSE_PARAM
Fields inherited from interface opennlp.tools.ml.EventTrainer
EVENT_VALUE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract MaxentModel
doTrain
(DataIndexer indexer) getDataIndexer
(ObjectStream<Event> events) abstract boolean
boolean
isValid()
Deprecated.final MaxentModel
train
(DataIndexer indexer) final MaxentModel
train
(ObjectStream<Event> events) void
validate()
Check parameters.Methods inherited from class opennlp.tools.ml.AbstractTrainer
getAlgorithm, getCutoff, getIterations, init, init
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface opennlp.tools.ml.EventTrainer
init, init
-
Field Details
-
DATA_INDEXER_PARAM
- See Also:
-
DATA_INDEXER_ONE_PASS_VALUE
- See Also:
-
DATA_INDEXER_TWO_PASS_VALUE
- See Also:
-
DATA_INDEXER_ONE_PASS_REAL_VALUE
- See Also:
-
-
Constructor Details
-
AbstractEventTrainer
public AbstractEventTrainer() -
AbstractEventTrainer
-
-
Method Details
-
validate
public void validate()Description copied from class:AbstractTrainer
Check parameters. If subclass overrides this, it should call super.validate();- Overrides:
validate
in classAbstractTrainer
-
isValid
Deprecated.- Overrides:
isValid
in classAbstractTrainer
- Returns:
-
isSortAndMerge
public abstract boolean isSortAndMerge() -
getDataIndexer
- Throws:
IOException
-
doTrain
- Throws:
IOException
-
train
- Specified by:
train
in interfaceEventTrainer
- Throws:
IOException
-
train
- Specified by:
train
in interfaceEventTrainer
- Throws:
IOException
-