public interface PatternRecognizerLite extends CognitiveModuleSettings
Modifier and Type | Method and Description |
---|---|
PatternRecognizerLite |
clone()
Creates a deep copy of the pattern recognizer.
|
Vector |
createEmptyInputVector()
Creates an empty vector to use for input.
|
java.util.Collection<SemanticLabel> |
getAllLabels()
Gets the collection of all the labels used in the recognizer.
|
int |
getInputDimensionality()
Gets the dimensionality of the input vector to the pattern recognizer.
|
java.util.Collection<SemanticLabel> |
getInputLabels()
Gets the labels for the dimensions of the input vector.
|
SemanticNetwork |
getNetwork()
Gets the SemanticNetwork describing the structure of the pattern
recognizer.
|
int |
getOutputDimensionality()
Gets the dimensionality of the output vector to the pattern recognizer.
|
java.util.Collection<SemanticLabel> |
getOutputLabels()
Gets the labels for the dimensions of the output vector.
|
CognitiveModuleState |
initialState()
Creates a new initial state for the recognizer.
|
boolean |
isInputLabel(SemanticLabel label)
Takes a SemanticLabel and returns true if it is a label used to
provide input to the PatternRecognizerLite.
|
boolean |
isLabel(SemanticLabel label)
Takes a SemanticLabel and returns true if the PatternRecognizer
uses it.
|
boolean |
isOutputLabel(SemanticLabel label)
Takes a SemanticLabel and returns true if it is a label used as
output from the PatternRecognizerLite.
|
Vector |
recognize(CognitiveModuleState state,
Vector inputs)
Computes the recognition.
|
PatternRecognizerLite clone()
clone
in interface CloneableSerializable
CognitiveModuleState initialState()
Vector recognize(CognitiveModuleState state, Vector inputs)
state
- The previous state of the module.inputs
- The vector of inputs to the recognizer.boolean isLabel(SemanticLabel label)
label
- The label to determine if the recognizer uses.boolean isInputLabel(SemanticLabel label)
label
- The label to determine if it is an input label.boolean isOutputLabel(SemanticLabel label)
label
- The label to determine if it is an output label.Vector createEmptyInputVector()
int getInputDimensionality()
int getOutputDimensionality()
java.util.Collection<SemanticLabel> getAllLabels()
java.util.Collection<SemanticLabel> getInputLabels()
java.util.Collection<SemanticLabel> getOutputLabels()
SemanticNetwork getNetwork()