Package opennlp.tools.ml.model
Klasse AbstractDataIndexer
java.lang.Object
opennlp.tools.ml.model.AbstractDataIndexer
- Alle implementierten Schnittstellen:
DataIndexer
- Bekannte direkte Unterklassen:
OnePassDataIndexer,TwoPassDataIndexer
Abstract
DataIndexer implementation for collecting
event and context counts used in training.- Siehe auch:
-
Felddetails
-
SORT_PARAM
- Siehe auch:
-
SORT_DEFAULT
public static final boolean SORT_DEFAULT- Siehe auch:
-
-
Konstruktordetails
-
AbstractDataIndexer
public AbstractDataIndexer()
-
-
Methodendetails
-
init
Sets parameters used during the data indexing.- Angegeben von:
initin SchnittstelleDataIndexer- Parameter:
indexingParameters- TheTrainingParametersto be used.reportMap- TheMapused for reporting.
-
getContexts
public int[][] getContexts()- Angegeben von:
getContextsin SchnittstelleDataIndexer- Gibt zurück:
- Retrieves a 2-dimensional array whose first dimension is the event index and array this refers to contains the contexts for that event.
-
getNumTimesEventsSeen
public int[] getNumTimesEventsSeen()- Angegeben von:
getNumTimesEventsSeenin SchnittstelleDataIndexer- Gibt zurück:
- Retrieves an array indexed by the event index indicating the number of times a particular event was seen.
-
getOutcomeList
public int[] getOutcomeList()- Angegeben von:
getOutcomeListin SchnittstelleDataIndexer- Gibt zurück:
- Retrieves an array indicating the outcome index for each event.
-
getPredLabels
- Angegeben von:
getPredLabelsin SchnittstelleDataIndexer- Gibt zurück:
- Retrieves an array of predicate/context names indexed by context index.
These indices are the value of the array returned by
DataIndexer.getContexts().
-
getOutcomeLabels
- Angegeben von:
getOutcomeLabelsin SchnittstelleDataIndexer- Gibt zurück:
- Retrieves an array of outcome names indexed by outcome index.
-
getPredCounts
public int[] getPredCounts()- Angegeben von:
getPredCountsin SchnittstelleDataIndexer- Gibt zurück:
- Retrieves an array of the count of each predicate in the events.
-
getNumEvents
public int getNumEvents()- Angegeben von:
getNumEventsin SchnittstelleDataIndexer- Gibt zurück:
- Retrieves the number of total events indexed.
-
getValues
public float[][] getValues()- Angegeben von:
getValuesin SchnittstelleDataIndexer- Gibt zurück:
- Retrieves the values associated with each event context or
nullif integer values are to be used.
-