|
|
Tags
Reference Number: AA-01077 Views: 12145 |
0 Rating/ Voters
|
|
Tags are special tokens in a grammar that are automatically recognized whenever they are seen by the Speech Engine. They are usually filled with information useful to the author of the grammar, or to an application using a grammar. Tags may appear in the header or the body of a grammar. When the engine recognizes a rule containing a tag, it returns the tag information along with the rule.
Filling tags with snippets of JavaScript is the basis of the semantic interpretation process.
ABNF
{!{ tag information }!};
$rule = some text {!{ tag information }!} more text;
XML
<tag> tag information </tag>
<rule id="rule"> some text
<tag> tag information more text <rule>
|
|
|