Package cc.mallet.pipe
Class TokenSequence2FeatureSequenceWithBigrams
- java.lang.Object
-
- cc.mallet.pipe.Pipe
-
- cc.mallet.pipe.TokenSequence2FeatureSequenceWithBigrams
-
- All Implemented Interfaces:
AlphabetCarrying
,java.io.Serializable
public class TokenSequence2FeatureSequenceWithBigrams extends Pipe
Convert the token sequence in the data field of each instance to a feature sequence that preserves bigram information.- Author:
- Andrew McCallum mccallum@cs.umass.edu
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description TokenSequence2FeatureSequenceWithBigrams()
TokenSequence2FeatureSequenceWithBigrams(Alphabet dataDict)
TokenSequence2FeatureSequenceWithBigrams(Alphabet dataDict, Alphabet bigramAlphabet)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Alphabet
getBigramAlphabet()
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
-
TokenSequence2FeatureSequenceWithBigrams
public TokenSequence2FeatureSequenceWithBigrams(Alphabet dataDict, Alphabet bigramAlphabet)
-
TokenSequence2FeatureSequenceWithBigrams
public TokenSequence2FeatureSequenceWithBigrams(Alphabet dataDict)
-
TokenSequence2FeatureSequenceWithBigrams
public TokenSequence2FeatureSequenceWithBigrams()
-
-