# Uses of Interface
opennlp.tools.ml.model.DataIndexer

Packages that use DataIndexer
Package
Description
opennlp.tools.ml
Package related to Machine Learning (ML) features of OpenNLP, the related ML models, and trainers.
opennlp.tools.ml.maxent
Package related to ML by means of the Maximum Entropy (ME) algorithm.
opennlp.tools.ml.maxent.quasinewton
Package related to ML by means of the Quasi Newton (QN) algorithm.
opennlp.tools.ml.model
Package related to ML models and feature selection techniques.
opennlp.tools.ml.naivebayes
Package related to ML by means of the Naive Bayes algorithm.
opennlp.tools.ml.perceptron
Package related to ML by means of the perceptron algorithm.

- ## Uses of DataIndexer in opennlp.tools.ml

  Methods in opennlp.tools.ml that return DataIndexer
  Modifier and Type
  Method
  Description
  `DataIndexer`
  AbstractEventTrainer.`getDataIndexer(ObjectStream<Event> events)`
  Methods in opennlp.tools.ml with parameters of type DataIndexer
  Modifier and Type
  Method
  Description
  `abstract MaxentModel`
  AbstractEventTrainer.`doTrain(DataIndexer indexer)`
  `final MaxentModel`
  AbstractEventTrainer.`train(DataIndexer indexer)`
  `MaxentModel`
  EventTrainer.`train(DataIndexer indexer)`
  Trains a `MaxentModel` for given `events`.

- ## Uses of DataIndexer in opennlp.tools.ml.maxent

  Methods in opennlp.tools.ml.maxent with parameters of type DataIndexer
  Modifier and Type
  Method
  Description
  `MaxentModel`
  GISTrainer.`doTrain(DataIndexer indexer)`
  `GISModel`
  GISTrainer.`trainModel(int iterations, DataIndexer di)`
  Trains a model using the GIS algorithm.
  `GISModel`
  GISTrainer.`trainModel(int iterations, DataIndexer di, int threads)`
  Trains a model using the GIS algorithm.
  `GISModel`
  GISTrainer.`trainModel(int iterations, DataIndexer di, Prior modelPrior, int threads)`
  Trains a model using the GIS algorithm.

- ## Uses of DataIndexer in opennlp.tools.ml.maxent.quasinewton

  Methods in opennlp.tools.ml.maxent.quasinewton with parameters of type DataIndexer
  Modifier and Type
  Method
  Description
  `AbstractModel`
  QNTrainer.`doTrain(DataIndexer indexer)`
  `QNModel`
  QNTrainer.`trainModel(int iterations, DataIndexer indexer)`
  Trains a `model` using the QN algorithm.
  Constructors in opennlp.tools.ml.maxent.quasinewton with parameters of type DataIndexer
  Modifier
  Constructor
  Description
  ``
  `NegLogLikelihood(DataIndexer indexer)`
  ``
  `ParallelNegLogLikelihood(DataIndexer indexer, int threads)`

- ## Uses of DataIndexer in opennlp.tools.ml.model

  Classes in opennlp.tools.ml.model that implement DataIndexer
  Modifier and Type
  Class
  Description
  `class`
  `AbstractDataIndexer`
  Abstract `DataIndexer` implementation for collecting event and context counts used in training.
  `class`
  `OnePassDataIndexer`
  A `DataIndexer` for maxent model data which handles cutoffs for uncommon contextual predicates and provides a unique integer index for each of the predicates.
  `class`
  `OnePassRealValueDataIndexer`
  A `DataIndexer` for maxent model data which handles cutoffs for uncommon contextual predicates and provides a unique integer index for each of the predicates and maintains event values.
  `class`
  `TwoPassDataIndexer`
  Collecting event and context counts by making two passes over the events.
  Methods in opennlp.tools.ml.model that return DataIndexer
  Modifier and Type
  Method
  Description
  `static DataIndexer`
  DataIndexerFactory.`getDataIndexer(TrainingParameters parameters, Map<String,String> reportMap)`
  Instantiates a `DataIndexer` configured via `TrainingParameters`.

- ## Uses of DataIndexer in opennlp.tools.ml.naivebayes

  Methods in opennlp.tools.ml.naivebayes with parameters of type DataIndexer
  Modifier and Type
  Method
  Description
  `AbstractModel`
  NaiveBayesTrainer.`doTrain(DataIndexer indexer)`
  `AbstractModel`
  NaiveBayesTrainer.`trainModel(DataIndexer di)`
  Trains a `NaiveBayesModel` with given parameters.

- ## Uses of DataIndexer in opennlp.tools.ml.perceptron

  Methods in opennlp.tools.ml.perceptron with parameters of type DataIndexer
  Modifier and Type
  Method
  Description
  `AbstractModel`
  PerceptronTrainer.`doTrain(DataIndexer indexer)`
  `AbstractModel`
  PerceptronTrainer.`trainModel(int iterations, DataIndexer di, int cutoff)`
  Trains a `PerceptronModel` with given parameters.
  `AbstractModel`
  PerceptronTrainer.`trainModel(int iterations, DataIndexer di, int cutoff, boolean useAverage)`
  Trains a `PerceptronModel` with given parameters.