background image
C H A P T E R 1 0
Recognition: Advanced Topics
Summary of Advanced Topics in Recognition
10-53
ProtoWordInfo
10
aWordInfoFrame :=
{
// ID of view that owns this data; returned by GetViewID
id:
int
,
// first char's offset into clParagraphView view
Start:
int
,
// last char's offset into clParagraphView view
Stop:
int
,
flags:
forSystemUseOnly
, // do not use this slot
unitID:
forSystemUseOnly
, // do not use this slot
// array of wordInterp frames; see page 10-53
words: [
wordInterp1
,
wordInterp2
, ...
wordInterpN
]
// stroke data from original input
strokes:
strokeBundleFrame
, // see page 10-49
unitData:
forSystemUseOnly
, // do not use this slot
// sets list of words held by this wordInfo frame
SetWords:
function
,
// returns array of strings held by wordInterp frames
GetWords:
function
,
// Adds first word in this word list to auto-add and user dicts
AutoAdd:
function
,
// Removes first word in this list from auto-add and user dicts
AutoRemove:
function
,
}
protoWordInterp
10
aWordInterpFrame :=
{
// one interpretation of input strokes
word:
string
,
// recognizer's confidence in this interpretation
score:
int
, // 0 is good score, 1000 is bad score
// dictionary id of recognized word
label:
int
, // internal use only
// this word's rank in orig list of interpretations
index:
int
, // internal use only
}
© 2007-2017, o7 studio » при воспроизведении материала сайта ссылка обязательна