OnePassDataIndexer (Apache OpenNLP :: Core :: ML :: Commons 3.0.0-M4 API)
Description: declaration: package: opennlp.tools.ml.model, class: OnePassDataIndexer

Package opennlp.tools.ml.model

# Class OnePassDataIndexer

java.lang.Object
opennlp.tools.ml.model.AbstractDataIndexer<TrainingParameters>
opennlp.tools.ml.model.OnePassDataIndexer

All Implemented Interfaces:
  `opennlp.tools.ml.model.DataIndexer<TrainingParameters>`

Direct Known Subclasses:
  `OnePassRealValueDataIndexer`

public class OnePassDataIndexer extends AbstractDataIndexer<TrainingParameters>
A `DataIndexer` for maxent model data which handles cutoffs for uncommon contextual predicates and provides a unique integer index for each of the predicates.

See Also:
  - `DataIndexer`
  - `AbstractDataIndexer`

- ## Field Summary

  ### Fields inherited from class opennlp.tools.ml.model.AbstractDataIndexer

  `SORT_DEFAULT, SORT_PARAM`

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `OnePassDataIndexer()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `index(opennlp.tools.util.ObjectStream<opennlp.tools.ml.model.Event> eventStream)`

  ### Methods inherited from class opennlp.tools.ml.model.AbstractDataIndexer

  `getContexts, getNumEvents, getNumTimesEventsSeen, getOutcomeLabels, getOutcomeList, getPredCounts, getPredLabels, getValues, init`

  ### Methods inherited from class java.lang.Object

  `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### OnePassDataIndexer

    public OnePassDataIndexer()

- ## Method Details

  - ### index

    public void index(opennlp.tools.util.ObjectStream<opennlp.tools.ml.model.Event> eventStream) throws IOException
    Throws:
      `IOException`