contextFold.features
Class DoublePosContext
java.lang.Object
contextFold.features.FeatureExtractor
contextFold.features.ContextFeatureExtractor
contextFold.features.DoublePosContext
- All Implemented Interfaces:
- java.io.Serializable
public class DoublePosContext
- extends ContextFeatureExtractor
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
firstPosContext
protected ContextFeatureExtractor firstPosContext
secondPosContext
protected ContextFeatureExtractor secondPosContext
DoublePosContext
public DoublePosContext(ContextFeatureExtractor firstPosContext,
ContextFeatureExtractor secondPosContext)
preprocess
protected void preprocess(byte[] seq)
- Specified by:
preprocess
in class FeatureExtractor
getFeature
public int getFeature(byte[] seq,
int val)
- Specified by:
getFeature
in class FeatureExtractor
getFeaturesMap
public java.lang.Integer[][] getFeaturesMap(ContextFeatureExtractor specificContext)
- Specified by:
getFeaturesMap
in class ContextFeatureExtractor
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
getEffectiveCardinality
public int getEffectiveCardinality()
- Overrides:
getEffectiveCardinality
in class FeatureExtractor
getFeatureName
public java.lang.String getFeatureName(int featureIx)
- Overrides:
getFeatureName
in class FeatureExtractor
getFirstPosContext
public ContextFeatureExtractor getFirstPosContext()
getSecondPosContext
public ContextFeatureExtractor getSecondPosContext()
getSuperContext
public ContextFeatureExtractor getSuperContext(ContextFeatureExtractor other)
- Specified by:
getSuperContext
in class ContextFeatureExtractor
- Returns: