From 4418ad50e4fe711046df799b6e6f57d5a77fb562 Mon Sep 17 00:00:00 2001 From: mdiallo <mohamed.diallo@uni-bielefeld.de> Date: Thu, 7 Feb 2019 15:20:21 +0100 Subject: [PATCH] add task5 grammar and modify config --- psConfig/challenge/team2/configTeam2.conf | 7 +++++++ psGrammar/challenge/team2/task5.jsfg | 19 +++++++++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 psGrammar/challenge/team2/task5.jsfg diff --git a/psConfig/challenge/team2/configTeam2.conf b/psConfig/challenge/team2/configTeam2.conf index 4e9d010b..f4652955 100644 --- a/psConfig/challenge/team2/configTeam2.conf +++ b/psConfig/challenge/team2/configTeam2.conf @@ -25,3 +25,10 @@ jsgf=../../psGrammar/challenge/team2/table.jsgf; rsbscope= /speechrec/psa/table; bestpath=no; autoload=yes; + +[pocketsphinxinstance] +name=table; +jsgf=../../psGrammar/challenge/team2/task5.jsgf; +rsbscope= /speechrec/psa/task5; +bestpath=no; +autoload=yes; diff --git a/psGrammar/challenge/team2/task5.jsfg b/psGrammar/challenge/team2/task5.jsfg new file mode 100644 index 00000000..ebb1b346 --- /dev/null +++ b/psGrammar/challenge/team2/task5.jsfg @@ -0,0 +1,19 @@ +#JSGF V1.0; +grammar task5; + +public <command> = [yes] <robot> [please] <command1> [please]; + +<command1> = (<toBathroom> | <toCashRegister> | <toTableA> | <toTableB> | <toTableC> ) ; +<robot> = (tiago | tobi); + +<toBathroom> = ([bring me] [to] [the] <bathroom> | I want to go to the <bathroom> | where is the <bathroom> |where [can] [do] I find the <bathroom>); +<bathroom> = (bathroom | toilet); + +<toCashRegister> = ([bring me] [to] [the] <cashRegister> | I want to go to the <cashRegister> | where is the <cashRegister> | where [can] [do] I find the <cashRegister>); +<cashRegister> = (cashier | [cash] register); + +<toTableA> = ([bring me] [to] table A | I want to go to table A | where is table A | where [can] [do] I find table A); +<toTableB> = ([bring me] [to] table B | I want to go to table B | where is table B | where [can] [do] I find table B); +<toTableC> = ([bring me] [to] table C | I want to go to table C | where is table C | where [can] [do] I find table C); + + -- GitLab