diff --git a/psGrammar/tasks/gpsr/gpsr_Narrow.jsgf b/psGrammar/tasks/gpsr/gpsr_Narrow.jsgf new file mode 100644 index 0000000000000000000000000000000000000000..25a15161de0beb5d56826f09bfe045b3a7da2f6e --- /dev/null +++ b/psGrammar/tasks/gpsr/gpsr_Narrow.jsgf @@ -0,0 +1,60 @@ +#JSGF V1.0; +grammar speechRecognition; + +public <sentence> = ([tobi | biron] <VP> [([and|then] <VP>)] [([and|then] <VP>)]); + + +<VP> = (<VP_tritrans> | <VP_bitrans> | <VP_trans> ); +<VP_repeat> = (and <VP> [<VP_repeat>]) | (then <VP> [<VP_repeat>]) | (<VP> [<VP_repeat>]); + +<VP_trans> = <findObj> | <findPrs> | <followPrs> | <gotoLoc> | <speakInfo> | <answer>; +<VP_bitrans> = <deliverObjToLoc> | <deliverObjToPrs> | <findObjInLoc> | <findPrsInLoc> | <followPrsToLoc> | <takeObjFromLoc>; +<VP_tritrans> = <deliverObjToPrsInLoc>; + +<findObj> = <V_find> (<NP_object> | <NP_objectpron>); +<findPrs> = <V_find> (<NP_person> | <NP_personalpron>); +<followPrs> = <V_follow> (<NP_person> | <NP_personalpron>); +<gotoLoc> = (<V_goto> <Prep> <NP_place>) | (<V_goto> <NP_place>); +<speakInfo> = <V_speak> <NP_talk>; +<answer> = <V_answer> <NP_answer>; + +<deliverObjToLoc> = <V_deliver> (<NP_object> | <NP_objectpron>) <deliverPrep> <NP_place>; +<deliverObjToPrs> = <V_deliver> (<NP_object> | <NP_objectpron>) <deliverPrep> (<NP_person> | <NP_personalpron>); +<findObjInLoc> = <V_find> (<NP_object> | <NP_objectpron>) <Prep> <NP_place>; +<findPrsInLoc> = <V_find> (<NP_person> | <NP_personalpron>) <Prep> <NP_place>; +<followPrsToLoc> = <V_follow> (<NP_person> | <NP_personalpron>) <Prep> <NP_place>; +<takeObjFromLoc> = <V_take> (<NP_object> | <NP_objectpron>) <takePrep> <NP_place>; + +<deliverObjToPrsInLoc> = <V_deliver> (<NP_object> | <NP_objectpron>) <deliverPrep> (<NP_person> | <NP_personalpron>) <Prep> <NP_place>; + +<V_deliver> = (bring | bear | carry | deliver | fetch | transport | take); +<V_find> = (find | (look for) | search); +<V_follow> = (follow); +<V_goto> = ((go) | (navigate) | reach | (get) | (move) | (drive)); +<V_take> = (take | grasp | get | pick | grab); +<V_speak> = (tell | say | speak); +<V_answer> = (answer); + +<NP_place> = (the <N_place>) | (a <N_place>) | (an <N_place>) | (<N_place>); +<NP_object> = (the <N_object>) | (a <N_object>) | (an <N_object>) | (<N_object>); +<NP_person> = (a <N_names>)|( the <N_names>) | (<N_names>); +<NP_objectpron> = <N_objectpron>; +<NP_personalpron> = <N_personalpron>; +<NP_talk> = <N_talk>; +<NP_answer> = <N_answer>; + + +<N_place> = (bedroom | chair | bin | bed | (bathroom locker) | bathroom | (dining room) | shelf | (dinner table) | hall | (kitchen table) | kitchen | corridor); +<N_object> = (milk | coke | (orange juice) | beer | apple | banana | orange | pear | lays | crackers | pringles | chocolate | cloth | detergent | sponge | brush); + + +<Prep> = from | at | (which is in) | (who is in) | in | to | into; +<deliverPrep> = to; +<takePrep> = from | (which is in); + + +<N_personalpron> = her | him | his | me | them | their; +<N_objectpron> = it; +<N_names> = (anna | beth | carmen | jennifer | jessica | kimberly | kristina | laura | mary | sarah | alfred | charles | daniel | james | john | luis | paul | richard | robert | steve | person |(calling person) ); +<N_talk> = (your name) | (the name of your team) | (the time) | (what time is it) | (the date) | (what day is today) | (what day is tomorrow) | (the day of the month) | (the day of the week); +<N_answer> = (a question) | (question);