Package cc.mallet.pipe.tsf
Class OffsetFeatureConjunction
- java.lang.Object
-
- cc.mallet.pipe.Pipe
-
- 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
Constructors Constructor Description 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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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
-
-
-
-
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)
-
-