calhoun.analysis.crf.test
Class TestFeatures.ExplicitHalfExponentialLengthFeature
java.lang.Object
calhoun.analysis.crf.AbstractFeatureManager<java.lang.Character>
calhoun.analysis.crf.test.TestFeatures.TestFeature
calhoun.analysis.crf.test.TestFeatures.ExplicitHalfExponentialLengthFeature
- All Implemented Interfaces:
- FeatureManager<java.lang.Character>, FeatureManagerEdge<java.lang.Character>, FeatureManagerNodeExplicitLength<java.lang.Character>, java.io.Serializable
- Enclosing class:
- TestFeatures
public static class TestFeatures.ExplicitHalfExponentialLengthFeature
- extends TestFeatures.TestFeature
- implements FeatureManagerNodeExplicitLength<java.lang.Character>, FeatureManagerEdge<java.lang.Character>
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TestFeatures.ExplicitHalfExponentialLengthFeature
public TestFeatures.ExplicitHalfExponentialLengthFeature()
evaluateNodeLength
public void evaluateNodeLength(InputSequence<? extends java.lang.Character> seq,
int pos,
int length,
int state,
FeatureList result)
- Specified by:
evaluateNodeLength in interface FeatureManagerNodeExplicitLength<java.lang.Character>
evaluateEdge
public void evaluateEdge(InputSequence<? extends java.lang.Character> seq,
int pos,
int prevState,
int state,
FeatureList result)
- Description copied from interface:
FeatureManagerEdge
- Evaluates the set of features managed by this object for the given arguments.
- Specified by:
evaluateEdge in interface FeatureManagerEdge<java.lang.Character>
getCacheStrategy
public CacheStrategySpec getCacheStrategy()
- Description copied from interface:
FeatureManager
- caching strategy that the
CacheProcessor 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.
- Specified by:
getCacheStrategy in interface FeatureManager<java.lang.Character>- Overrides:
getCacheStrategy in class AbstractFeatureManager<java.lang.Character>
- Returns:
- cache strategy specification appropriate for this feature.