|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectopennlp.maxent.AbstractDataIndexer
opennlp.maxent.OnePassDataIndexer
public class OnePassDataIndexer
An indexer for maxent model data which handles cutoffs for uncommon contextual predicates and provides a unique integer index for each of the predicates.
Field Summary |
---|
Fields inherited from class opennlp.maxent.AbstractDataIndexer |
---|
contexts, numTimesEventsSeen, outcomeLabels, outcomeList, predCounts, predLabels |
Constructor Summary | |
---|---|
OnePassDataIndexer(EventStream eventStream)
One argument constructor for DataIndexer which calls the two argument constructor assuming no cutoff. |
|
OnePassDataIndexer(EventStream eventStream,
int cutoff)
Two argument constructor for DataIndexer. |
Method Summary | |
---|---|
protected java.util.List |
index(gnu.trove.TLinkedList events,
gnu.trove.TObjectIntHashMap predicateIndex)
|
Methods inherited from class opennlp.maxent.AbstractDataIndexer |
---|
getContexts, getNumTimesEventsSeen, getOutcomeLabels, getOutcomeList, getPredCounts, getPredLabels, getValues, sortAndMerge, toIndexedStringArray, update |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OnePassDataIndexer(EventStream eventStream)
eventStream
- An Event[] which contains the a list of all the Events
seen in the training data.public OnePassDataIndexer(EventStream eventStream, int cutoff)
eventStream
- An Event[] which contains the a list of all the Events
seen in the training data.cutoff
- The minimum number of times a predicate must have been
observed in order to be included in the model.Method Detail |
---|
protected java.util.List index(gnu.trove.TLinkedList events, gnu.trove.TObjectIntHashMap predicateIndex)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |