calhoun.analysis.crf.test
Class TestFeatures.ExplicitHalfExponentialLengthFeature

java.lang.Object
  extended by calhoun.analysis.crf.AbstractFeatureManager<java.lang.Character>
      extended by calhoun.analysis.crf.test.TestFeatures.TestFeature
          extended by 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

Constructor Summary
TestFeatures.ExplicitHalfExponentialLengthFeature()
           
 
Method Summary
 void evaluateEdge(InputSequence<? extends java.lang.Character> seq, int pos, int prevState, int state, FeatureList result)
          Evaluates the set of features managed by this object for the given arguments.
 void evaluateNodeLength(InputSequence<? extends java.lang.Character> seq, int pos, int length, int state, FeatureList result)
           
 CacheStrategySpec getCacheStrategy()
          caching strategy that the CacheProcessor should use to cache values for this feature.
 
Methods inherited from class calhoun.analysis.crf.test.TestFeatures.TestFeature
getFeatureName, getNumFeatures, train
 
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
getFeatureName, getInputComponent, getNumFeatures, setInputComponent, train
 
Methods inherited from interface calhoun.analysis.crf.FeatureManager
getFeatureName, getInputComponent, getNumFeatures, setInputComponent, train
 

Constructor Detail

TestFeatures.ExplicitHalfExponentialLengthFeature

public TestFeatures.ExplicitHalfExponentialLengthFeature()
Method Detail

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.