Invalid ChantWord DisplayText and LexicalText values for quoted strings in VoCon BNF grammars
Last reviewed: 2/26/2011
PRB Article ID: P111004
The information in this article applies to:
- SpeechKit 6
L&H BNF grammar syntax supports quoted strings to be treated as single words in terms of properties. ChantWord DisplayText and LexiconText properties contained the wrong values quoted strings.
Consider the following grammar:
#BNF+EM V1.0; !grammar fruits; !start <fruits>; // list of fruit choices <fruits>: "red apples" | "blue blueberries" | "green grapes";
The ChantSREvent for a match for "red apple" would return DisplayText and LexicalText as "red" instead of "red apple";
The DisplayText and Lexical text properties were set from hypothesis result parsing instead of word result parsing.
Fixed in SpeechKit build 220.127.116.11.
Component Formats Impacted
All component formats.