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.
  • 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:
      train in interface opennlp.tools.ml.EventModelSequenceTrainer<opennlp.tools.ml.model.Event, P extends opennlp.tools.util.Parameters>
      Throws:
      IOException