contextFold.models
Class FeatureSetter

java.lang.Object
  extended by contextFold.models.FeatureSetter
Direct Known Subclasses:
Baseline, StHighCoHigh, StHighCoMed, StMedCoHigh, StMedCoMed

public abstract class FeatureSetter
extends java.lang.Object


Field Summary
protected  StructureRecognizerImpl csr
           
protected  FeatureManager featureManager
           
protected static int LONG
           
protected static int SHORT
           
 
Constructor Summary
protected FeatureSetter()
           
protected FeatureSetter(int hpShortMaxLength, int[] ilLong, int[] ilMedium)
           
 
Method Summary
protected  void addAndBindLengthTemplates(int... lengthTypes)
           
protected  java.util.Collection<FeatureTemplate> addTemplates(java.lang.String templatePrefix, ContextFeatureExtractor[] contexts, int... types)
           
protected abstract  void bindFeatures()
           
protected  void bindHpTypesToTemplates(java.util.Collection<FeatureTemplate> templates)
           
protected  void bindIlTypesToTemplates(java.util.Collection<FeatureTemplate> templates)
           
protected  void bindTemplates(java.util.Collection<FeatureTemplate> templates, int... types)
           
 FeatureManager setFeatures()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

csr

protected StructureRecognizerImpl csr

featureManager

protected FeatureManager featureManager

SHORT

protected static final int SHORT
See Also:
Constant Field Values

LONG

protected static final int LONG
See Also:
Constant Field Values
Constructor Detail

FeatureSetter

protected FeatureSetter()

FeatureSetter

protected FeatureSetter(int hpShortMaxLength,
                        int[] ilLong,
                        int[] ilMedium)
Method Detail

setFeatures

public FeatureManager setFeatures()

bindFeatures

protected abstract void bindFeatures()

bindIlTypesToTemplates

protected void bindIlTypesToTemplates(java.util.Collection<FeatureTemplate> templates)

bindHpTypesToTemplates

protected void bindHpTypesToTemplates(java.util.Collection<FeatureTemplate> templates)

addAndBindLengthTemplates

protected void addAndBindLengthTemplates(int... lengthTypes)

addTemplates

protected java.util.Collection<FeatureTemplate> addTemplates(java.lang.String templatePrefix,
                                                             ContextFeatureExtractor[] contexts,
                                                             int... types)

bindTemplates

protected void bindTemplates(java.util.Collection<FeatureTemplate> templates,
                             int... types)