contextFold.features
Class ContextFeatureExtractor

java.lang.Object
  extended by contextFold.features.FeatureExtractor
      extended by contextFold.features.ContextFeatureExtractor
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
DoublePosContext, SinglePosContext

public abstract class ContextFeatureExtractor
extends FeatureExtractor
implements java.io.Serializable

See Also:
Serialized Form

Field Summary
protected  int length
           
protected  ContextFeatureExtractor reversedContext
           
 
Fields inherited from class contextFold.features.FeatureExtractor
cardinality, currProcessedSeq, FEATURE_1_EXTRACTOR, seqFeatures
 
Constructor Summary
protected ContextFeatureExtractor(int length, int cardinality)
           
 
Method Summary
 boolean contained(ContextFeatureExtractor context)
           
abstract  java.lang.Integer[][] getFeaturesMap(ContextFeatureExtractor other)
           
 int getLength()
           
 ContextFeatureExtractor getReversedContext()
           
abstract  ContextFeatureExtractor getSuperContext(ContextFeatureExtractor other)
           
 
Methods inherited from class contextFold.features.FeatureExtractor
getCardinality, getEffectiveCardinality, getFeature, getFeature, getFeatureName, getFeatures, preprocess, setSequence
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

length

protected int length

reversedContext

protected ContextFeatureExtractor reversedContext
Constructor Detail

ContextFeatureExtractor

protected ContextFeatureExtractor(int length,
                                  int cardinality)
Method Detail

getLength

public int getLength()

getReversedContext

public ContextFeatureExtractor getReversedContext()

getFeaturesMap

public abstract java.lang.Integer[][] getFeaturesMap(ContextFeatureExtractor other)

contained

public boolean contained(ContextFeatureExtractor context)
Parameters:
context -
Returns:

getSuperContext

public abstract ContextFeatureExtractor getSuperContext(ContextFeatureExtractor other)
Parameters:
second -
Returns: