Use a loaded grammar object to parse a sentence.
- int ParseSentence(const char* sentence)
The sentence to parse.
The sentence is not covered by the grammar.
The number of distinct parses.
Assume a grammar was defined as:
#ABNF 1.0 UTF-8;
$yes_no = $yes | $no;
$yes = yes [please];
$no = no [thank you];
You can use this grammar to validate sentences as follows:
With this function, you can identify how well a grammar covers your targeted transcript set.