|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcalhoun.analysis.crf.AbstractFeatureManager
calhoun.analysis.crf.features.generic.IndicatorEdges
public class IndicatorEdges
a set of indicator features for the valid transitions in the model.
Notes:
| Constructor Summary | |
|---|---|
IndicatorEdges()
|
|
| Method Summary | |
|---|---|
void |
evaluateEdge(InputSequence seq,
int pos,
int prevState,
int state,
FeatureList result)
Evaluates the set of features managed by this object for the given arguments. |
java.lang.String |
getFeatureName(int featureIndex)
Returns a human identifiable name for the feature referenced by a given index. |
int |
getNumFeatures()
Returns the number of features maintained by this FeatureManager. |
void |
train(int startingIndex,
ModelManager modelInfo,
java.util.List data)
Edge features don't train based on the data. |
| Methods inherited from class calhoun.analysis.crf.AbstractFeatureManager |
|---|
getCacheStrategy, getInputComponent, setInputComponent |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface calhoun.analysis.crf.FeatureManager |
|---|
getCacheStrategy, getInputComponent, setInputComponent |
| Constructor Detail |
|---|
public IndicatorEdges()
| Method Detail |
|---|
public java.lang.String getFeatureName(int featureIndex)
FeatureManager
getFeatureName in interface FeatureManagerfeatureIndex - the index of this feature
public int getNumFeatures()
FeatureManagerFeatureManager. This number must be fixed after the call to trainFeatures is complete.
getNumFeatures in interface FeatureManagerFeatureManager
public void evaluateEdge(InputSequence seq,
int pos,
int prevState,
int state,
FeatureList result)
FeatureManagerEdge
evaluateEdge in interface FeatureManagerEdge
public void train(int startingIndex,
ModelManager modelInfo,
java.util.List data)
train in interface FeatureManagerstartingIndex - the feature index of the first feature owned by this FeatureManager. Each FeatureManager
must use up consecutive indexes, so the last index used will be startingIndex + numFeatures - 1.modelInfo - the model that contains this featuredata - the full list of training sequences to use to train the feature
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||