calhoun.analysis.crf.test
Class TestFeatures.GaussianLengthFeature

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.GaussianLengthFeature
All Implemented Interfaces:
FeatureManager<java.lang.Character>, FeatureManagerNodeExplicitLength<java.lang.Character>, java.io.Serializable
Enclosing class:
TestFeatures

public static class TestFeatures.GaussianLengthFeature
extends TestFeatures.TestFeature
implements FeatureManagerNodeExplicitLength<java.lang.Character>

See Also:
Serialized Form

Constructor Summary
TestFeatures.GaussianLengthFeature()
           
 
Method Summary
 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
 

Constructor Detail

TestFeatures.GaussianLengthFeature

public TestFeatures.GaussianLengthFeature()
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>

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.