Package cc.mallet.types
Class FeatureSequenceWithBigrams
- java.lang.Object
-
- cc.mallet.types.FeatureSequence
-
- cc.mallet.types.FeatureSequenceWithBigrams
-
- All Implemented Interfaces:
AlphabetCarrying
,Sequence
,java.io.Serializable
public class FeatureSequenceWithBigrams extends FeatureSequence
A FeatureSequence with a parallel record of bigrams, kept in a separate dictionary- Author:
- Andrew McCallum
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
deletionMark
-
Constructor Summary
Constructors Constructor Description FeatureSequenceWithBigrams(Alphabet dict, Alphabet bigramDictionary, TokenSequence ts)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Alphabet
getBiAlphabet()
int
getBiIndexAtPosition(int pos)
java.lang.Object
getObjectAtPosition(int pos)
-
Methods inherited from class cc.mallet.types.FeatureSequence
add, add, addFeatureWeightsTo, addFeatureWeightsTo, alphabetsMatch, get, getAlphabet, getAlphabets, getFeatures, getIndexAtPosition, getLength, growIfNecessary, prune, prune, size, toFeatureIndexSequence, toSortedFeatureIndexSequence, toString
-
-
-
-
Field Detail
-
deletionMark
public static final java.lang.String deletionMark
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
FeatureSequenceWithBigrams
public FeatureSequenceWithBigrams(Alphabet dict, Alphabet bigramDictionary, TokenSequence ts)
-
-
Method Detail
-
getBiAlphabet
public Alphabet getBiAlphabet()
-
getBiIndexAtPosition
public final int getBiIndexAtPosition(int pos)
-
getObjectAtPosition
public java.lang.Object getObjectAtPosition(int pos)
- Overrides:
getObjectAtPosition
in classFeatureSequence
-
-