From c325069291ccde5a1c967b40109d3487e1f1327d Mon Sep 17 00:00:00 2001 From: alangfel <alangfel@techfak.uni-bielefeld.de> Date: Thu, 3 Jul 2014 10:51:23 +0200 Subject: [PATCH] added ordering grammar --- ps-config/restaurant/restaurant.conf | 9 +++++++++ ps-grammar/restaurant/ordering.jsgf | 11 +++++++++++ 2 files changed, 20 insertions(+) create mode 100644 ps-grammar/restaurant/ordering.jsgf diff --git a/ps-config/restaurant/restaurant.conf b/ps-config/restaurant/restaurant.conf index 2aa8be0c..72553a19 100644 --- a/ps-config/restaurant/restaurant.conf +++ b/ps-config/restaurant/restaurant.conf @@ -40,3 +40,12 @@ jsgf=/vol/robocup/2014/share/SpeechRec/psGrammar/restaurant/object.jsgf; rsbscope=/speechrec/psa/object; bestpath=no; autoload=yes; + +[pocketsphinxinstance] +name=ordering; +hmm=/vol/robocup/2014/share/pocketsphinx/model/hmm/en_US/hub4wsj_sc_8k; +dict=/vol/robocup/2014/share/SpeechRec/psGrammar/dictionary/tobiDic.dic; +jsgf=/vol/robocup/2014/share/SpeechRec/psGrammar/restaurant/ordering.jsgf; +rsbscope=/speechrec/psa/ordering; +bestpath=no; +autoload=yes; diff --git a/ps-grammar/restaurant/ordering.jsgf b/ps-grammar/restaurant/ordering.jsgf new file mode 100644 index 00000000..68a65814 --- /dev/null +++ b/ps-grammar/restaurant/ordering.jsgf @@ -0,0 +1,11 @@ +#JSGF V1.0; +grammar restaurant_ordering; + +public <restaurant> = [tobi] [please] bring <objects> to table <deliveryLocations>; + +<deliveryLocations> = table (one | two | three); + +<objects> = <drinks> | <snacks>; + +<drinks> = (orange juice) | (fruit juice) | (ice tea) | coffee | beer; +<snacks> = chocolates | (chewing gum) | peanuts; -- GitLab