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 Label
get(int i)
Alphabet
getAlphabet()
Alphabet[]
getAlphabets()
void
set(int i, Label l)
int
size()
java.lang.String
toString()
-
-
-
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:
toString
in classjava.lang.Object
-
getAlphabet
public Alphabet getAlphabet()
- Specified by:
getAlphabet
in interfaceAlphabetCarrying
-
getAlphabets
public Alphabet[] getAlphabets()
- Specified by:
getAlphabets
in interfaceAlphabetCarrying
-
-