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