|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectopennlp.model.AbstractDataIndexer
public abstract class AbstractDataIndexer
Abstract class for collecting event and context counts used in training.
| Constructor Summary | |
|---|---|
AbstractDataIndexer()
|
|
| Method Summary | |
|---|---|
int[][] |
getContexts()
Returns the array of predicates seen in each event. |
int |
getNumEvents()
Returns the number of total events indexed. |
int[] |
getNumTimesEventsSeen()
Returns an array indicating the number of times a particular event was seen. |
String[] |
getOutcomeLabels()
Returns an array of outcome names. |
int[] |
getOutcomeList()
Returns an array indicating the outcome index for each event. |
int[] |
getPredCounts()
Returns an array of the count of each predicate in the events. |
String[] |
getPredLabels()
Returns an array of predicate/context names. |
float[][] |
getValues()
Returns the values associated with each event context or null if integer values are to be used. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractDataIndexer()
| Method Detail |
|---|
public int[][] getContexts()
DataIndexer
getContexts in interface DataIndexerpublic int[] getNumTimesEventsSeen()
DataIndexer
getNumTimesEventsSeen in interface DataIndexerpublic int[] getOutcomeList()
DataIndexer
getOutcomeList in interface DataIndexerpublic String[] getPredLabels()
DataIndexer
getPredLabels in interface DataIndexergetContexts.public String[] getOutcomeLabels()
DataIndexer
getOutcomeLabels in interface DataIndexerpublic int[] getPredCounts()
DataIndexer
getPredCounts in interface DataIndexerpublic int getNumEvents()
DataIndexer
getNumEvents in interface DataIndexerpublic float[][] getValues()
DataIndexer
getValues in interface DataIndexer
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||