public class RetypingRecognizer extends Object implements StrokeRecognizer
Constructor and Description |
---|
RetypingRecognizer(StrokeRecognizer llr)
Construct a filter recognizer which uses the given recognizer to
perform its low-level recognition.
|
Modifier and Type | Method and Description |
---|---|
void |
addAllowedType(String allowedType)
Add a type that is allowed through by this filter
recognizer.
|
void |
addAllowedType(String allowedType,
String mappedType)
Add a type that is allowed through by this filter
recognizer.
|
protected RecognitionSet |
filterTypes(RecognitionSet in)
Take a recognition set generated by the LLR and see whether or
not it contains some allowed types with non-zero confidences.
|
void |
removeAllowedType(String typeID)
Remove a type that is allowed through by this filter
recognizer.
|
RecognitionSet |
strokeCompleted(TimedStroke s)
Perform filtered recognition based on the LLR's
recognition on the stroke.
|
RecognitionSet |
strokeModified(TimedStroke s)
Perform filtered recognition based on the LLR's
recognition on the stroke.
|
RecognitionSet |
strokeStarted(TimedStroke s)
Perform filtered recognition based on the LLR's
recognition on the stroke.
|
public RetypingRecognizer(StrokeRecognizer llr)
public void addAllowedType(String allowedType, String mappedType)
public void addAllowedType(String allowedType)
protected RecognitionSet filterTypes(RecognitionSet in)
public void removeAllowedType(String typeID)
public RecognitionSet strokeCompleted(TimedStroke s)
strokeCompleted
in interface StrokeRecognizer
public RecognitionSet strokeModified(TimedStroke s)
strokeModified
in interface StrokeRecognizer
public RecognitionSet strokeStarted(TimedStroke s)
strokeStarted
in interface StrokeRecognizer
Copyright © 2024 Central Laboratory of the Research Councils. All Rights Reserved.