From 30705ecb23a83319127788b8c126d3ba592e4ba0 Mon Sep 17 00:00:00 2001 From: alangfel <alangfel@techfak.uni-bielefeld.de> Date: Fri, 4 Jul 2014 13:54:15 +0200 Subject: [PATCH] added save grammar --- ps-config/restaurant/restaurant.conf | 9 +++++++++ ps-grammar/restaurant/saveCommand.jsgf | 8 ++++++++ 2 files changed, 17 insertions(+) create mode 100644 ps-grammar/restaurant/saveCommand.jsgf diff --git a/ps-config/restaurant/restaurant.conf b/ps-config/restaurant/restaurant.conf index 72553a19..1a0b1c5e 100644 --- a/ps-config/restaurant/restaurant.conf +++ b/ps-config/restaurant/restaurant.conf @@ -49,3 +49,12 @@ jsgf=/vol/robocup/2014/share/SpeechRec/psGrammar/restaurant/ordering.jsgf; rsbscope=/speechrec/psa/ordering; bestpath=no; autoload=yes; + +[pocketsphinxinstance] +name=saveCommand; +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/saveCommand.jsgf; +rsbscope=/speechrec/psa/saveCommand; +bestpath=no; +autoload=yes; diff --git a/ps-grammar/restaurant/saveCommand.jsgf b/ps-grammar/restaurant/saveCommand.jsgf new file mode 100644 index 00000000..472b0847 --- /dev/null +++ b/ps-grammar/restaurant/saveCommand.jsgf @@ -0,0 +1,8 @@ +#JSGF V1.0; +grammar restaurant_save_command; + +public <restaurant> = [tobi] [please] save ( <deliveryLocations> | <objectCategory> ) [[to | on] [the | my] ( <savePlaceLeft> | <savePlaceRight> )]; +<savePlaceLeft> = left; +<savePlaceRight> = right; +<deliveryLocations> = table (one | two | three); +<objectCategory> = drinks | snacks; -- GitLab