Skip to content
Snippets Groups Projects
Commit 45a6ee93 authored by Henri's avatar Henri
Browse files

first version of gpsr2 grammar

parent ff311d67
No related branches found
No related tags found
No related merge requests found
...@@ -12,3 +12,10 @@ rsbscope=/speechrec/psa/gpsrMain; ...@@ -12,3 +12,10 @@ rsbscope=/speechrec/psa/gpsrMain;
bestpath=no; bestpath=no;
autoload=yes; autoload=yes;
[pocketsphinxinstance]
name=speechRecognition;
dict=../../../psGrammar/dictionary/tobiDic.dic;
jsgf=../../../psGrammar/tasks/speechRecognition/speechRecognition.jsgf;
rsbscope=/speechrec/psa/speechRecognition;
bestpath=no;
autoload=yes;
#JSGF V1.0;
grammar speechRecognition;
public <sentence> = ([tobi | biron] <VP1> [([and|then] <VP2>)] [([and|then] <VP3>)]);
<VP1> = (<VP_tritrans> | <VP_bitrans> | <VP_trans> );
<VP2> = (<VP_tritrans> | <VP_bitrans> | <VP_trans> );
<VP3> = (<VP_tritrans> | <VP_bitrans> | <VP_trans> );
<VP_trans> = <findObj> | <findPrs> | <followPrs> | <gotoLoc> | <speakInfo> | <answer> ;
<VP_bitrans> = <deliverObjToLoc> | <deliverObjToPrs> | <findObjInLoc> | <findPrsInLoc> | <followPrsToLoc> | <takeObjFromLoc> | <guideToLoc>;
<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> <NP_place>;
<speakInfo> = <V_speak> <NP_talk>;
<answer> = <V_answer> <NP_answer>;
<guideToLoc> = <V_guide> (<NP_object> | <NP_objectpron>) <deliverPrep> <NP_place>;
<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 (to|into)) | (navigate (to|into)) | reach | (get (to|into)) | (move (to|into)) | (drive (to|into)));
<V_take> = (take | grasp | get | pick | grab);
<V_speak> = (tell | say | speak);
<V_answer> = (answer);
<V_guide> = guide | take | bring;
<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 | <N_random_object> );
<N_random_object> = (<color> <object> | <shape> <object> | <color> <shape> <object> | <shape> <color> <object>);
<color> = (green | red | blue | black | white | yellow | purple | pink | brown | orange);
<shape> = (round | angular | edgy | little | small | big | huge);
<Prep> = from | at | (which is in) | (who is in) | in | to | into;
<deliverPrep> = to;
<takePrep> = from | (which is in);
<N_personalpron> = her | him | his | 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) | me);
<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);
#JSGF V1.0;
grammar speechRecognition;
public <sentence> = blablas;
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment