|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcalhoun.analysis.crf.AbstractFeatureManager<java.lang.Object>
calhoun.analysis.crf.features.generic.StartFeatures
public class StartFeatures
indicator functions that evaluate to true for a selected set of start states at the first position in the sequence.
| Constructor Summary | |
|---|---|
StartFeatures()
|
|
| Method Summary | |
|---|---|
void |
evaluateNode(InputSequence<?> seq,
int pos,
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 |
setStates(int[] config)
|
void |
train(int startingIndex,
ModelManager modelInfo,
java.util.List data)
Start 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 StartFeatures()
| Method Detail |
|---|
public void setStates(int[] config)
public java.lang.String getFeatureName(int featureIndex)
FeatureManager
getFeatureName in interface FeatureManager<java.lang.Object>featureIndex - the index of this feature
public int getNumFeatures()
FeatureManagerFeatureManager. This number must be fixed after the call to trainFeatures is complete.
getNumFeatures in interface FeatureManager<java.lang.Object>FeatureManager
public void evaluateNode(InputSequence<?> seq,
int pos,
int state,
FeatureList result)
FeatureManagerNode
evaluateNode in interface FeatureManagerNode<java.lang.Object>
public void train(int startingIndex,
ModelManager modelInfo,
java.util.List data)
train in interface FeatureManager<java.lang.Object>startingIndex - 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 | |||||||||