Package opennlp.tools.ml.model
Class OnePassDataIndexer
java.lang.Object
opennlp.tools.ml.model.AbstractDataIndexer
opennlp.tools.ml.model.OnePassDataIndexer
- All Implemented Interfaces:
- DataIndexer
- Direct Known Subclasses:
- 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.- See Also:
- 
Field SummaryFields inherited from class opennlp.tools.ml.model.AbstractDataIndexerSORT_DEFAULT, SORT_PARAM
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidindex(ObjectStream<Event> eventStream) Performs the data indexing.Methods inherited from class opennlp.tools.ml.model.AbstractDataIndexergetContexts, getNumEvents, getNumTimesEventsSeen, getOutcomeLabels, getOutcomeList, getPredCounts, getPredLabels, getValues, init
- 
Constructor Details- 
OnePassDataIndexerpublic OnePassDataIndexer()
 
- 
- 
Method Details- 
indexPerforms the data indexing.Note: Make sure the DataIndexer.init(TrainingParameters, Map)method is called first.- Parameters:
- eventStream- A- ObjectStream<Event>of events used as input.
- Throws:
- IOException- Thrown if IO errors occurred during indexing.
 
 
-