Package cc.mallet.types
Class NullLabel
- java.lang.Object
-
- cc.mallet.types.NullLabel
-
- All Implemented Interfaces:
AlphabetCarrying
public class NullLabel extends java.lang.Object implements AlphabetCarrying
Object that carries a LabelAlphabet. Can be used in place of a null target for unlabeled instances, which avoids issues with alphabet checks.- Author:
- Gregory Druck gdruck@cs.umass.edu
-
-
Constructor Summary
Constructors Constructor Description NullLabel(LabelAlphabet alphabet)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Alphabet
getAlphabet()
Alphabet[]
getAlphabets()
-
-
-
Constructor Detail
-
NullLabel
public NullLabel(LabelAlphabet alphabet)
-
-
Method Detail
-
getAlphabet
public Alphabet getAlphabet()
- Specified by:
getAlphabet
in interfaceAlphabetCarrying
-
getAlphabets
public Alphabet[] getAlphabets()
- Specified by:
getAlphabets
in interfaceAlphabetCarrying
-
-