cc.mallet.types
Class NullLabel

java.lang.Object
  extended by 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
NullLabel(LabelAlphabet alphabet)
           
 
Method Summary
 Alphabet getAlphabet()
           
 Alphabet[] getAlphabets()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NullLabel

public NullLabel(LabelAlphabet alphabet)
Method Detail

getAlphabet

public Alphabet getAlphabet()
Specified by:
getAlphabet in interface AlphabetCarrying

getAlphabets

public Alphabet[] getAlphabets()
Specified by:
getAlphabets in interface AlphabetCarrying