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 Stringstatic final Stringstatic final Stringstatic final StringFields inherited from class opennlp.tools.ml.AbstractTrainer
ALGORITHM_PARAM, CUTOFF_DEFAULT, CUTOFF_PARAM, ITERATIONS_DEFAULT, ITERATIONS_PARAM, TRAINER_TYPE_PARAM, VERBOSE_DEFAULT, VERBOSE_PARAMFields inherited from interface opennlp.tools.ml.EventTrainer
EVENT_VALUE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract MaxentModeldoTrain(DataIndexer indexer) getDataIndexer(ObjectStream<Event> events) abstract booleanbooleanisValid()Deprecated.final MaxentModeltrain(DataIndexer indexer) final MaxentModeltrain(ObjectStream<Event> events) voidvalidate()Check parameters.Methods inherited from class opennlp.tools.ml.AbstractTrainer
getAlgorithm, getCutoff, getIterations, init, initMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:AbstractTrainerCheck parameters. If subclass overrides this, it should call super.validate();- Overrides:
validatein classAbstractTrainer
-
isValid
Deprecated.- Overrides:
isValidin classAbstractTrainer- Returns:
-
isSortAndMerge
public abstract boolean isSortAndMerge() -
getDataIndexer
- Throws:
IOException
-
doTrain
- Throws:
IOException
-
train
- Specified by:
trainin interfaceEventTrainer- Throws:
IOException
-
train
- Specified by:
trainin interfaceEventTrainer- Throws:
IOException
-