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:
init
in SchnittstelleDataIndexer
- Parameter:
indexingParameters
- TheTrainingParameters
to be used.reportMap
- TheMap
used for reporting.
-
getContexts
public int[][] getContexts()- Angegeben von:
getContexts
in 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:
getNumTimesEventsSeen
in 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:
getOutcomeList
in SchnittstelleDataIndexer
- Gibt zurück:
- Retrieves an array indicating the outcome index for each event.
-
getPredLabels
- Angegeben von:
getPredLabels
in 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:
getOutcomeLabels
in SchnittstelleDataIndexer
- Gibt zurück:
- Retrieves an array of outcome names indexed by outcome index.
-
getPredCounts
public int[] getPredCounts()- Angegeben von:
getPredCounts
in SchnittstelleDataIndexer
- Gibt zurück:
- Retrieves an array of the count of each predicate in the events.
-
getNumEvents
public int getNumEvents()- Angegeben von:
getNumEvents
in SchnittstelleDataIndexer
- Gibt zurück:
- Retrieves the number of total events indexed.
-
getValues
public float[][] getValues()- Angegeben von:
getValues
in SchnittstelleDataIndexer
- Gibt zurück:
- Retrieves the values associated with each event context or
null
if integer values are to be used.
-