public class LabelDictionary
extends java.lang.Object
implements java.io.Serializable
| Constructor and Description |
|---|
LabelDictionary()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
int[] |
getConstrainedSet(java.lang.String observation)
Get the allowed label set for an observation.
|
void |
increment(java.lang.String observation,
java.lang.String label)
Increment counts for an observation/label pair.
|
boolean |
isConstrained(java.lang.String observation)
True if this observation is constrained, and false otherwise.
|
void |
lock(int threshold,
Index<java.lang.String> labelIndex)
Setup the constrained label sets and free bookkeeping resources.
|
public void increment(java.lang.String observation,
java.lang.String label)
observation - label - public boolean isConstrained(java.lang.String observation)
public int[] getConstrainedSet(java.lang.String observation)
observation - public void lock(int threshold,
Index<java.lang.String> labelIndex)
threshold - labelIndex -