switch recognized item in grxml file
I have created a grammar (in grxml format开发者_高级运维) to recognize the OMV literal (with hu-hu language settings)
This is the problematic part:
<item>oemfau</item>
nuance recognize it, and print 'oemfau', but i want that nuance say, the word is not oemfau, but OMV. How can i switch the word?
If your grammar uses tag-format="swi-semantics/1.0
, you can use ECMAScript in a <tag>
element like this:
<item>
oemfau
<tag>out.slot = "OMV"</tag>
</item>
Simply replace "slot" with whatever NL slot you'd like to use in your application.
精彩评论