public interface ChoiceElement extends CompositeElement
textLine(.9) textLine(.7) | | text("foo", .9) text("boo", .7) \ / [strokes...]can be represented as:
textLine | CHOICE(text) / \ text("foo", .9) text("boo", .7) \ / [strokes...]
This means that all interpretations of text that use the same underlying strokes are handled as one node through the rest of the parsing algorithm. This greatly improves parsing efficiency. It is up to the application to choose one of the children of a choice node (probably the highest confidence choice, or allow the user to mediate when the difference in confidences is low).
Modifier and Type | Method and Description |
---|---|
List |
choiceNames()
Return an array of the names of the children of this
element, each of which sequentially corresponds to an item in
the array returned by children().
|
List |
choices()
Return a list that contains the choices that this
element covers, from high to low confidence.
|
childNames, children, getConfidence, getData
getBounds, parents
List choices()
List choiceNames()
Copyright © 2025 Central Laboratory of the Research Councils. All Rights Reserved.