Class AbstractEventModelSequenceTrainer<P extends opennlp.tools.util.Parameters>
java.lang.Object
opennlp.tools.ml.AbstractTrainer<P>
opennlp.tools.ml.AbstractEventModelSequenceTrainer<P>
- All Implemented Interfaces:
opennlp.tools.commons.Trainer<P>, opennlp.tools.ml.EventModelSequenceTrainer<opennlp.tools.ml.model.Event, P>
public abstract class AbstractEventModelSequenceTrainer<P extends opennlp.tools.util.Parameters>
extends AbstractTrainer<P>
implements opennlp.tools.ml.EventModelSequenceTrainer<opennlp.tools.ml.model.Event, P>
A basic
EventModelSequenceTrainer implementation that processes events.-
Field Summary
Fields inherited from interface opennlp.tools.ml.EventModelSequenceTrainer
SEQUENCE_VALUE -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class AbstractTrainer
getAlgorithm, getCutoff, getIterations, getTrainingConfiguration, init, init, validateMethods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface opennlp.tools.commons.Trainer
init, init
-
Constructor Details
-
AbstractEventModelSequenceTrainer
public AbstractEventModelSequenceTrainer()
-
-
Method Details
-
doTrain
public abstract opennlp.tools.ml.model.MaxentModel doTrain(opennlp.tools.ml.model.SequenceStream<opennlp.tools.ml.model.Event> events) throws IOException - Throws:
IOException
-
train
public final opennlp.tools.ml.model.MaxentModel train(opennlp.tools.ml.model.SequenceStream<opennlp.tools.ml.model.Event> events) throws IOException - Specified by:
trainin interfaceopennlp.tools.ml.EventModelSequenceTrainer<opennlp.tools.ml.model.Event, P extends opennlp.tools.util.Parameters>- Throws:
IOException
-