edu.umass.cs.mallet.base.types
Class LabelSequence

java.lang.Object
  extended byedu.umass.cs.mallet.base.types.FeatureSequence
      extended byedu.umass.cs.mallet.base.types.LabelSequence
All Implemented Interfaces:
Sequence, java.io.Serializable

public class LabelSequence
extends FeatureSequence
implements java.io.Serializable

See Also:
Serialized Form

Constructor Summary
LabelSequence(Alphabet dict)
           
LabelSequence(Label[] labels)
           
LabelSequence(LabelAlphabet dict, int capacity)
           
LabelSequence(LabelAlphabet dict, int[] features)
           
 
Method Summary
 LabelAlphabet getLabelAlphabet()
           
 Label getLabelAtPosition(int pos)
           
 
Methods inherited from class edu.umass.cs.mallet.base.types.FeatureSequence
add, add, addFeatureWeightsTo, addFeatureWeightsTo, get, getAlphabet, getIndexAtPosition, getLength, getObjectAtPosition, growIfNecessary, size, toFeatureIndexSequence, toSortedFeatureIndexSequence, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LabelSequence

public LabelSequence(LabelAlphabet dict,
                     int[] features)

LabelSequence

public LabelSequence(LabelAlphabet dict,
                     int capacity)

LabelSequence

public LabelSequence(Label[] labels)

LabelSequence

public LabelSequence(Alphabet dict)
Method Detail

getLabelAlphabet

public LabelAlphabet getLabelAlphabet()

getLabelAtPosition

public Label getLabelAtPosition(int pos)