Reply To: Returned hypothesis and obtaining the rule that was triggered

Home Forums OpenEars Returned hypothesis and obtaining the rule that was triggered Reply To: Returned hypothesis and obtaining the rule that was triggered

#1027309
Halle Winkler
Politepix

Welcome,

I think this would probably be quite easy to do if you used OpenEars’ dynamic grammar language rather than writing JSGF directly, since you’d then have all of your rules in a dictionary and you can easily enumerate through it to find the match. Additionally, it will make dynamic JSGF generation easier to do programmatically at runtime. Here is a blog post about it, there is a bit more info in the docs: https://www.politepix.com/2014/04/10/openears-1-7-introducing-dynamic-grammar-generation/