calhoun.analysis.crf.test
Class TestFeatures.EmissionFeature

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

public static class TestFeatures.EmissionFeature
extends TestFeatures.TestFeature
implements FeatureManagerNode<java.lang.Character>

See Also:
Serialized Form

Constructor Summary
TestFeatures.EmissionFeature()
           
 
Method Summary
 void evaluateNode(InputSequence<? extends java.lang.Character> seq, int pos, int state, FeatureList result)
          Evaluates the set of features managed by this object for the given arguments.
 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.EmissionFeature

public TestFeatures.EmissionFeature()
Method Detail

evaluateNode

public void evaluateNode(InputSequence<? extends java.lang.Character> seq,
                         int pos,
                         int state,
                         FeatureList result)
Description copied from interface: FeatureManagerNode
Evaluates the set of features managed by this object for the given arguments.

Specified by:
evaluateNode in interface FeatureManagerNode<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.