From d9a6cd71ab027e73f10d06dc2c594f4d7d64fa73 Mon Sep 17 00:00:00 2001 From: skoester <skoester@techfak.uni-bielefeld.de> Date: Wed, 22 Apr 2015 17:06:32 +0200 Subject: [PATCH] gpsr config/grammar added --- ps-config/gpsr/gpsr.conf | 15 +++++++++++++++ ps-grammar/gpsr/gpsr.jsgf | 33 +++++++++++++++++++++++++++++++++ 2 files changed, 48 insertions(+) create mode 100644 ps-config/gpsr/gpsr.conf create mode 100644 ps-grammar/gpsr/gpsr.jsgf diff --git a/ps-config/gpsr/gpsr.conf b/ps-config/gpsr/gpsr.conf new file mode 100644 index 00000000..a90a52c9 --- /dev/null +++ b/ps-config/gpsr/gpsr.conf @@ -0,0 +1,15 @@ +[main] +startdb=43; +uttdb=47; +silence=400; +timeout=8; +openDeviceDirectly=yes; + +[pocketsphinxinstance] +name=gpsr; +hmm=../../../pocketsphinx/model/en-us/en-us; +dict=../../psGrammar/dictionary/tobiDic.dic; +jsgf=../../psGrammar/gpsr/gpsr.jsfg; +rsbscope=/speechrec/psa/gpsr; +bestpath=no; +autoload=yes; diff --git a/ps-grammar/gpsr/gpsr.jsgf b/ps-grammar/gpsr/gpsr.jsgf new file mode 100644 index 00000000..7e314bc6 --- /dev/null +++ b/ps-grammar/gpsr/gpsr.jsgf @@ -0,0 +1,33 @@ +#JSGF V1.0; +grammar ToBI_GPSR; + +public <task> = (<location_task> | <item_task> | <interact_task>); + + +<location_task> = (<nav_commands> [the] (<locations> | <objects>) [[(and | then)] <task>]); + +<locations> = (kitchen | bathroom); +<nav_commands> = (((move | go | navigate) to) | exit | leave); +<objects> = (shelf); + + +<item_task> = ((<interact_item> | <move_item> | <transport_item>) [[(and | then)] <task>]); + +<interact_item> = (<search_commands> [the] <items> [[and] <move_item>]); +<move_item> = (<move_commands> (([the | this] <items>) | it | them )); +<transport_item> = ([and] <transport_commands> [it | them] [<item_destination>]); +<item_destination> = ([to] [the] ((<person> [(at the <locations>)])| <locations>)); + +<items> = (coffee); +<search_commands> = (identify | detect | find | count); +<move_commands> = (get | take | grasp ); +<transport_commands> = (bring | carry | retrieve); + + +<interact_task> = ((<talk_commands> | <interact_with_person>) [[(and | then)] <task>]); + +<interact_with_person> = (<memory_commands> [the | a | it] <person> [(in front of you) | to | (a question)]); + +<person> = (tobi | yourself); +<talk_commands> = ((introduce | (tell something about)) <person>); +<memory_commands> = (tell | follow | memorize | find | report | answer); -- GitLab