|
||||||||||
| 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.CompositeFeatureManager
public class CompositeFeatureManager
a feature manager that combines feature types together.
| Constructor Summary | |
|---|---|
CompositeFeatureManager()
|
|
| Method Summary | |
|---|---|
void |
addFeatureManager(FeatureManager fm)
|
void |
addFeatureManager(java.lang.String name,
java.lang.String inputParams,
FeatureManager fm)
|
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. |
void |
evaluateEdgeLength(InputSequence seq,
int pos,
int length,
int prevState,
int state,
FeatureList result)
|
void |
evaluateNode(InputSequence seq,
int pos,
int state,
FeatureList result)
Evaluates the set of features managed by this object for the given arguments. |
void |
evaluateNodeLength(InputSequence seq,
int pos,
int length,
int state,
FeatureList result)
|
CacheStrategySpec |
getCacheStrategy()
caching strategy that the CacheProcessor should use to cache values for this feature. |
java.util.List<FeatureManager> |
getComponentFeatures()
|
java.lang.String |
getFeatureName(int featureIndex)
Returns a human identifiable name for the feature referenced by a given index. |
int |
getFeatureOffset(int featureIndex)
|
int |
getNumFeatures()
Returns the number of features maintained by this FeatureManager. |
void |
setComponentFeatures(java.util.List<FeatureManager> components)
|
void |
train(int startingIndex,
ModelManager modelInfo,
java.util.List data)
Provides access to the entire training set so that FeatureManager can compute global properties and assign feature indices. |
| Methods inherited from class calhoun.analysis.crf.AbstractFeatureManager |
|---|
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 |
|---|
getInputComponent, setInputComponent |
| Methods inherited from interface calhoun.analysis.crf.FeatureManager |
|---|
getInputComponent, setInputComponent |
| Methods inherited from interface calhoun.analysis.crf.FeatureManager |
|---|
getInputComponent, setInputComponent |
| Methods inherited from interface calhoun.analysis.crf.FeatureManager |
|---|
getInputComponent, setInputComponent |
| Constructor Detail |
|---|
public CompositeFeatureManager()
| Method Detail |
|---|
public java.util.List<FeatureManager> getComponentFeatures()
public void setComponentFeatures(java.util.List<FeatureManager> components)
public void addFeatureManager(FeatureManager fm)
public void addFeatureManager(java.lang.String name,
java.lang.String inputParams,
FeatureManager fm)
public int getNumFeatures()
FeatureManagerFeatureManager. This number must be fixed after the call to trainFeatures is complete.
getNumFeatures in interface FeatureManagerFeatureManagerpublic java.lang.String getFeatureName(int featureIndex)
FeatureManager
getFeatureName in interface FeatureManagerfeatureIndex - the index of this feature
public int getFeatureOffset(int featureIndex)
public void train(int startingIndex,
ModelManager modelInfo,
java.util.List data)
FeatureManager
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
public void evaluateNode(InputSequence seq,
int pos,
int state,
FeatureList result)
FeatureManagerNode
evaluateNode in interface FeatureManagerNode
public void evaluateEdge(InputSequence seq,
int pos,
int prevState,
int state,
FeatureList result)
FeatureManagerEdge
evaluateEdge in interface FeatureManagerEdge
public void evaluateNodeLength(InputSequence seq,
int pos,
int length,
int state,
FeatureList result)
evaluateNodeLength in interface FeatureManagerNodeExplicitLength
public void evaluateEdgeLength(InputSequence seq,
int pos,
int length,
int prevState,
int state,
FeatureList result)
evaluateEdgeLength in interface FeatureManagerEdgeExplicitLengthpublic CacheStrategySpec getCacheStrategy()
FeatureManagerCacheProcessor should use to cache values for this feature.
This is only a hint, the cache processor is not required to use this (or any) caching strategy. This base class defaults
to the UNSPECIFIED cache strategy.
getCacheStrategy in interface FeatureManagergetCacheStrategy in class AbstractFeatureManager
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||