Package opennlp.tools.ml

# Interface EventModelSequenceTrainer<T>

Type Parameters:
  `T` - The generic type of elements to process via a `SequenceStream`.

All Superinterfaces:
  `Trainer`

All Known Implementing Classes:
  `AbstractEventModelSequenceTrainer`, `SimplePerceptronSequenceTrainer`

public interface EventModelSequenceTrainer<T> extends Trainer
A specialized `Trainer` that is based on a 'EventModelSequence' approach.

- ## Field Summary

  Fields
  Modifier and Type
  Field
  Description
  `static final String`
  `SEQUENCE_VALUE`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `MaxentModel`
  `train(SequenceStream<T> events)`
  Trains a `MaxentModel` for given `events`.

  ### Methods inherited from interface opennlp.tools.commons.Trainer

  `init`

- ## Field Details

  - ### SEQUENCE_VALUE

    static final String SEQUENCE_VALUE
    See Also:
      - Constant Field Values

- ## Method Details

  - ### train

    MaxentModel train(SequenceStream<T> events) throws IOException
    Trains a `MaxentModel` for given `events`.
    Parameters:
      `events` - The input `events`.
    Returns:
      The trained `MaxentModel`.
    Throws:
      `IOException` - Thrown if IO errors occurred.