diff --git a/psConfig/challenge/pollen/pollen.conf b/psConfig/challenge/pollen/pollen.conf index 63aef54bc55b377bd2acf022d2c3557ed1ebcc8b..992c8d3cff9cea876955d9647c795c3094f43857 100644 --- a/psConfig/challenge/pollen/pollen.conf +++ b/psConfig/challenge/pollen/pollen.conf @@ -8,7 +8,7 @@ alsadevice=sysdefault; [pocketsphinxinstance] name=confirm; -jsgf=../../../psGrammar/confirm/confirm.jsgf; +jsgf=../../../psGrammar/challenge/pollen/confirm.jsgf; rsbscope=/speechrec/psa/confirm; bestpath=no; autoload=yes; diff --git a/psConfig/challenge/team2/configTeam2.conf b/psConfig/challenge/team2/configTeam2.conf index b1dfa6e092e08d7e6e7536f5cb1abf0d041122f1..91426d0f0b41631886f8b365e0e8cf1cce9e8590 100644 --- a/psConfig/challenge/team2/configTeam2.conf +++ b/psConfig/challenge/team2/configTeam2.conf @@ -27,8 +27,15 @@ bestpath=no; autoload=yes; [pocketsphinxinstance] -name=table; -jsgf=../../psGrammar/challenge/team2/task5.jsgf; +name=bill; +jsgf=../../../psGrammar/challenge/team2/bill.jsgf; +rsbscope= /speechrec/psa/bill; +bestpath=no; +autoload=yes; + +[pocketsphinxinstance] +name=task5; +jsgf=../../../psGrammar/challenge/team2/task5.jsgf; rsbscope= /speechrec/psa/task5; bestpath=no; autoload=yes; diff --git a/psGrammar/challenge/pollen/challenge.jsgf b/psGrammar/challenge/pollen/challenge.jsgf index 021418cca92d30f5af83c53cd7793397a34cd2b6..e4457fc1bfa3c7e42cd562e538bdbf45e883ec8a 100644 --- a/psGrammar/challenge/pollen/challenge.jsgf +++ b/psGrammar/challenge/pollen/challenge.jsgf @@ -1,8 +1,8 @@ #JSGF V1.0; grammar pollen; -public <orderstring> = [<robot>] <receiveorderstring>; +public <orderstring> = [<robot>] [please] <receiveorderstring> [please]; -<receiveorderstring> = bring [me] [a] <drink>; +<receiveorderstring> = [bring] [me] [a] <drink>; <drink> = (coke | malz | lemonade | water | ice tea | coffee); diff --git a/psGrammar/challenge/pollen/confirm.jsgf b/psGrammar/challenge/pollen/confirm.jsgf new file mode 100644 index 0000000000000000000000000000000000000000..046acdaa71382ecfcdfade694ac3945a1ef5d0ba --- /dev/null +++ b/psGrammar/challenge/pollen/confirm.jsgf @@ -0,0 +1,10 @@ +#JSGF V1.0; +grammar ToBI_confirm; +public <confirm> = <confirm_yes> | <confirm_no>; + +<confirm_yes> = [<robot>] <yes_words>; +<confirm_no> = [<robot>] <no_words>; + +<yes_words> = (yes) | (confirmed); +<no_words> = (no); +<robot> = (tobi) | (robot) | (biron) | (pepper); diff --git a/psGrammar/challenge/pollen/newGuest.jsgf b/psGrammar/challenge/pollen/newGuest.jsgf index 568060774c160b6dba5413ee16fe48f5adbf0bd9..0e28eb8961b59f0aae2e6e482dc7f5efb5820ae0 100644 --- a/psGrammar/challenge/pollen/newGuest.jsgf +++ b/psGrammar/challenge/pollen/newGuest.jsgf @@ -2,7 +2,7 @@ grammar newGuest; public <newGuestString> = [<robot>] [please] <bringme> [please]; -<bringme> = bring [me] [to] <location>; +<bringme> = [bring] [me] [to] <location>; <location> = (<registerloc> | <bathroomloc> | <tableloc>); diff --git a/psGrammar/challenge/pollen/setUpBill.jsgf b/psGrammar/challenge/pollen/setUpBill.jsgf index 0ea9b87d1d88aa3401b8ed598f81dcf4737ef040..4de1d1572d12be285994fac507240ef56607b5f0 100644 --- a/psGrammar/challenge/pollen/setUpBill.jsgf +++ b/psGrammar/challenge/pollen/setUpBill.jsgf @@ -2,13 +2,13 @@ grammar setUpBill; public <setUpBillString> = [<robot>] (<setUpBill>|<correctDrinks>|<additionalDrink>); -<setUpBill> = set up [the] bill [please]; +<setUpBill> = [please] [set] [up] [the] bill [please]; -<correctDrinks> = [the] drinks [are] <drinks>; +<correctDrinks> = [the] [drinks] [are] <drinks>; <drinks> = <drink> <drink> [and] <drink>; -<additionalDrink> = [i] [also] (<drank>|<had>) [a] <drink>; +<additionalDrink> = [i] [also] [<drank>|<had>] [a] <drink>; <had> = had; diff --git a/psGrammar/challenge/team2/bill.jsgf b/psGrammar/challenge/team2/bill.jsgf index 2a4d70629a25d3b48461cb6372450c5bec7594aa..3d3ad615f1c8a4c41ea1aa46551cf3148afaf165 100644 --- a/psGrammar/challenge/team2/bill.jsgf +++ b/psGrammar/challenge/team2/bill.jsgf @@ -1,8 +1,8 @@ #JSGF V1.0; grammar bill; -public <setupbill> = [tiago] [please] (set up the ( bill | check ) | could I have the ( bill | check ) | I ( would like | want ) to pay | can I pay | bill ) [now] [please] -public <thatscorrect> = ( yes | [yes] you got that ( right | correct ) | [yes] that is ( right | correct ) ) -public <correction> = No I ordered <drink> [and] [<drink>] [and] [<drink>] +public <command> = ( <setupbill> | <thatscorrect> | <correction> ); +<setupbill> = [tiago] [please] (set up the ( bill | check ) | could i have the ( bill | check ) | i ( would like | want ) to pay | can i pay | bill ) [now] [please]; +<thatscorrect> = ( yes | [yes] you got that ( right | correct ) | [yes] that is ( right | correct ) ); +<correction> = [ [no] i ordered | there are ] <drink> [ [and] <drink>] [ [and] <drink>]; -<drink> = [ a | one | two | three ] [ bottle of | bottles of | cup of | cups of | can of | cans of] ( coke | malz | lemonade | water | icetea | coffee ) -<drinkold> = [ a | one ] ( coconut milk | tea | coke | fanta | water | orangedrink ) +<drink> = [ a | one | two | three ] [ bottle of | bottles of | cup of | cups of | can of | cans of] ( coke | malz | lemonade | water | ice tea | coffee ); diff --git a/psGrammar/challenge/team2/task5.jsfg b/psGrammar/challenge/team2/task5.jsfg deleted file mode 100644 index ebb1b34662adbf6680e4eabede6b24a2e11b52ef..0000000000000000000000000000000000000000 --- a/psGrammar/challenge/team2/task5.jsfg +++ /dev/null @@ -1,19 +0,0 @@ -#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); - - diff --git a/psGrammar/challenge/team2/task5.jsgf b/psGrammar/challenge/team2/task5.jsgf new file mode 100644 index 0000000000000000000000000000000000000000..3da6b51941a6fd01a9b6b2b34cc64f8f06b13a7b --- /dev/null +++ b/psGrammar/challenge/team2/task5.jsgf @@ -0,0 +1,15 @@ +#JSGF V1.0; +grammar task5; + +public <command> = [please] <verb> <location> [please]; + +<robot> = (tiago | tobi); + +<verb> = bring [me] [to] | take me [to] | where is | i want [to go to] | where [(can|do) i] [find] ; + +<location> = [the] <bathroom> | table <table> | [the] <cashRegister> ; +<bathroom> = (bathroom | toilet); +<cashRegister> = (cashier | [cash] register); + +<table> = a | b | c ; +