|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ChoiceElement
A choice element represents a choice between multiple typed elements that have the same type (or super-type). A choice element has the following properties:
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).
Method Summary | |
---|---|
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. |
Methods inherited from interface diva.sketch.recognition.CompositeElement |
---|
childNames, children, getConfidence, getData |
Methods inherited from interface diva.sketch.recognition.SceneElement |
---|
getBounds, parents |
Method Detail |
---|
List choices()
List choiceNames()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |