cc.mallet.types
Interface Labeling
- All Superinterfaces:
- AlphabetCarrying
- All Known Implementing Classes:
- Label, LabelVector
public interface Labeling
- extends AlphabetCarrying
A distribution over possible labels for an instance.
getLabelAlphabet
LabelAlphabet getLabelAlphabet()
getBestLabel
Label getBestLabel()
getBestValue
double getBestValue()
getBestIndex
int getBestIndex()
value
double value(Label label)
value
double value(int labelIndex)
getRank
int getRank(Label label)
getRank
int getRank(int labelIndex)
getLabelAtRank
Label getLabelAtRank(int rank)
getValueAtRank
double getValueAtRank(int rank)
addTo
void addTo(double[] values)
addTo
void addTo(double[] values,
double scale)
numLocations
int numLocations()
indexAtLocation
int indexAtLocation(int pos)
labelAtLocation
Label labelAtLocation(int pos)
valueAtLocation
double valueAtLocation(int pos)
toLabelVector
LabelVector toLabelVector()