Package cc.mallet.types
Class Labels
- java.lang.Object
-
- cc.mallet.types.Labels
-
- All Implemented Interfaces:
AlphabetCarrying,java.io.Serializable
public class Labels extends java.lang.Object implements AlphabetCarrying, java.io.Serializable
Usually some distribution over possible labels for an instance.- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Labelget(int i)AlphabetgetAlphabet()Alphabet[]getAlphabets()voidset(int i, Label l)intsize()java.lang.StringtoString()
-
-
-
Constructor Detail
-
Labels
public Labels(Label[] labels)
-
-
Method Detail
-
size
public int size()
-
get
public Label get(int i)
-
set
public void set(int i, Label l)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
getAlphabet
public Alphabet getAlphabet()
- Specified by:
getAlphabetin interfaceAlphabetCarrying
-
getAlphabets
public Alphabet[] getAlphabets()
- Specified by:
getAlphabetsin interfaceAlphabetCarrying
-
-