cc.mallet.types
Class LabelSequence
java.lang.Object
cc.mallet.types.FeatureSequence
cc.mallet.types.LabelSequence
- All Implemented Interfaces:
- AlphabetCarrying, Sequence, java.io.Serializable
public class LabelSequence
- extends FeatureSequence
- implements AlphabetCarrying, java.io.Serializable
- See Also:
- Serialized Form
Methods inherited from class cc.mallet.types.FeatureSequence |
add, add, addFeatureWeightsTo, addFeatureWeightsTo, alphabetsMatch, get, getAlphabet, getAlphabets, getFeatures, getIndexAtPosition, getLength, getObjectAtPosition, growIfNecessary, prune, size, toFeatureIndexSequence, toSortedFeatureIndexSequence, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
LabelSequence
public LabelSequence(LabelAlphabet dict,
int[] features)
LabelSequence
public LabelSequence(LabelAlphabet dict,
int capacity)
LabelSequence
public LabelSequence(Label[] labels)
LabelSequence
public LabelSequence(Alphabet dict)
getLabelAlphabet
public LabelAlphabet getLabelAlphabet()
getLabelAtPosition
public Label getLabelAtPosition(int pos)
iterator
public LabelSequence.Iterator iterator()