Class OnePassDataIndexer

java.lang.Object
opennlp.tools.ml.model.AbstractDataIndexer
opennlp.tools.ml.model.OnePassDataIndexer
All Implemented Interfaces:
DataIndexer
Direct Known Subclasses:
OnePassRealValueDataIndexer

public class OnePassDataIndexer extends AbstractDataIndexer
An indexer for maxent model data which handles cutoffs for uncommon contextual predicates and provides a unique integer index for each of the predicates.
  • Constructor Details

    • OnePassDataIndexer

      public OnePassDataIndexer()
  • Method Details

    • index

      public void index(ObjectStream<Event> eventStream) throws IOException
      Description copied from interface: DataIndexer
      Performs the data indexing. Make sure the init(...) method is called first.
      Parameters:
      eventStream - a stream of events
      Throws:
      IOException