public interface MutablePatternRecognizerLite extends PatternRecognizerLite
Modifier and Type | Method and Description |
---|---|
void |
addNode(SemanticLabel label)
Adds a node to the pattern recognizer.
|
void |
removeNode(SemanticLabel label)
Removes a node and all links associated with that node from the pattern
recognizer.
|
void |
setAssociation(SemanticLabel from,
SemanticLabel to,
double weight)
Sets the association between nodes in the recognizer.
|
boolean |
trySetInputLabel(SemanticLabel label,
boolean inputLabel)
Attempts to set whether or not the given label is an input label.
|
boolean |
trySetOutputLabel(SemanticLabel label,
boolean outputLabel)
Attempts to set whether or not the given label is an output label.
|
clone, createEmptyInputVector, getAllLabels, getInputDimensionality, getInputLabels, getNetwork, getOutputDimensionality, getOutputLabels, initialState, isInputLabel, isLabel, isOutputLabel, recognize
void addNode(SemanticLabel label)
label
- The label for the node to add.void removeNode(SemanticLabel label)
label
- The label of the node to remove.void setAssociation(SemanticLabel from, SemanticLabel to, double weight)
from
- The label of the node the assocation is from.to
- The label of the node the assocation is to.weight
- The weight of the association.boolean trySetInputLabel(SemanticLabel label, boolean inputLabel)
label
- The label to set whether or not it is input label.inputLabel
- Whether or not the label is an input label.boolean trySetOutputLabel(SemanticLabel label, boolean outputLabel)
label
- The label to set whether or not it is output label.outputLabel
- Whether or not the label is an output label.