cc.mallet.pipe.tsf
Class OffsetFeatureConjunction

java.lang.Object
  extended by cc.mallet.pipe.Pipe
      extended by cc.mallet.pipe.tsf.OffsetFeatureConjunction
All Implemented Interfaces:
AlphabetCarrying, java.io.Serializable

public class OffsetFeatureConjunction
extends Pipe
implements java.io.Serializable

See Also:
Serialized Form

Constructor Summary
OffsetFeatureConjunction(java.lang.String thisFeatureName, java.lang.String[] featureNames, int[] offsets)
           
OffsetFeatureConjunction(java.lang.String thisFeatureName, java.lang.String[] featureNames, int[] offsets, boolean tagAllTimesteps)
           
OffsetFeatureConjunction(java.lang.String thisFeatureName, java.lang.String[] featureNames, int[] offsets, boolean[] isNonNegated, boolean tagAllTimesteps)
          Create a Pipe for adding conjunctions of specified features.
 
Method Summary
 java.lang.String getFeatureName()
           
 java.util.regex.Pattern[] getFeaturePatterns()
           
 boolean[] getNonNegated()
           
 int[] getOffsets()
           
 boolean isTagAllTimesteps()
           
 Instance pipe(Instance carrier)
          Really this should be 'protected', but isn't for historical reasons.
 
Methods inherited from class cc.mallet.pipe.Pipe
alphabetsMatch, getAlphabet, getAlphabets, getDataAlphabet, getInstanceId, getTargetAlphabet, instanceFrom, instancesFrom, instancesFrom, isDataAlphabetSet, isTargetProcessing, newIteratorFrom, preceedingPipeDataAlphabetNotification, preceedingPipeTargetAlphabetNotification, precondition, readResolve, setDataAlphabet, setOrCheckDataAlphabet, setOrCheckTargetAlphabet, setTargetAlphabet, setTargetProcessing
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OffsetFeatureConjunction

public OffsetFeatureConjunction(java.lang.String thisFeatureName,
                                java.lang.String[] featureNames,
                                int[] offsets,
                                boolean[] isNonNegated,
                                boolean tagAllTimesteps)
Create a Pipe for adding conjunctions of specified features.

Parameters:
thisFeatureName - Name of this conjunction feature.
featureNames - String giving name for each subfeature i.
offsets - For each subfeature i, which offset from the current timestep must i appear at.
isNonNegated - If element i is false, then the negation of the feature is added to the conjuction.

OffsetFeatureConjunction

public OffsetFeatureConjunction(java.lang.String thisFeatureName,
                                java.lang.String[] featureNames,
                                int[] offsets,
                                boolean tagAllTimesteps)

OffsetFeatureConjunction

public OffsetFeatureConjunction(java.lang.String thisFeatureName,
                                java.lang.String[] featureNames,
                                int[] offsets)
Method Detail

isTagAllTimesteps

public boolean isTagAllTimesteps()

getFeatureName

public java.lang.String getFeatureName()

getFeaturePatterns

public java.util.regex.Pattern[] getFeaturePatterns()

getOffsets

public int[] getOffsets()

getNonNegated

public boolean[] getNonNegated()

pipe

public Instance pipe(Instance carrier)
Description copied from class: Pipe
Really this should be 'protected', but isn't for historical reasons.

Overrides:
pipe in class Pipe