Invalid ChantWord DisplayText and LexicalText values for quoted strings in VoCon BNF grammars

Last reviewed: 2/26/2011

PRB Article ID: P11104

The information in this article applies to:

  • SpeechKit 6

Symptoms

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";

Cause

The DisplayText and Lexical text properties were set from hypothesis result parsing instead of word result parsing.

Status

Fixed in SpeechKit build 6.0.11.0.

Component Formats Impacted

All component formats.