Skip to content
Snippets Groups Projects
Commit 32d65a65 authored by Leon Ziegler's avatar Leon Ziegler
Browse files

moved ps grammar and config from ps-adapter project to here

parent 2a409c82
No related branches found
No related tags found
No related merge requests found
Showing
with 203 additions and 0 deletions
#JSGF V1.0;
grammar kharmening;
public <statement> = <start_tobi> | <start_biron>
<start_tobi> = tobi <tobi_say>;
<start_biron> = biron <biron_say>;
<tobi_say> = <sink> | <joke>;
<biron_say> = <joke>;
<sink> = go to the sink;
<joke> = tell me a joke;
#JSGF V1.0;
grammar GRAMMAR_NAME;
public <statement> = <start_tobi> | <start_biron>
<start_tobi> = tobi <tobi_say>;
<start_biron> = biron <biron_say>;
<tobi_say> = <sink> | <joke>;
<biron_say> = <joke>;
<sink> = go to the sink;
<joke> = tell me a joke;
#JSGF V1.0;
grammar lruegeme;
public <statement> = ((biron <sink>) | (tobi (<sink> | <joke>)));
<sink> = go to the sink;
<joke> = tell me a joke;
#JSGF V1.0;
grammar mholland;
public <statement> = (<go_to> | <tell_joke>);
<name> = (tobi | brion);
<place> = sink;
<go_to> = <name> go to the <place> [please];
<tell_joke> = <name> tell me a joke [please];
#JSGF V1.0;
grammar ToBI_followMe;
public <statement> = [tobi] [please] (<followMe> | <elevator> | <leave>) [please] [tobi];
<followMe> = follow me [into the elevator];
<elevator> = [(this is) | ([lets] go into)] [an | the] elevator;
<leave> = leave [the elevator];
#JSGF V1.0;
grammar ToBI_GPRS;
public <task> = [tobi] [(would | could) you] [please] <command> [please] [tobi];
<command> = <bring_command> | <goto_command> | <follow_command> | <find_command> | <pointat_command> | <learn_command> | <cleanup_command> | <show_command>;
<bring_command> = (<bringVerb> [<person>] [<article>] <grab_object> [<preposition> [<article>] <location>] [(to|into) [<article>] <second_location>]) | (<bringVerb> [<article>] <person> <preposition> <article> <location>);
<goto_command> = <gotoVerb> <preposition> ([<article>] <location>);
<follow_command> = <followVerb> <person>;
<find_command> = <findVerb> [<article>] (<grab_object> | <person>) [in [<article>] <location>];
<pointat_command> = <pointatVerb> [<article>] <location>;
<learn_command> = <learnVerb> [<article>] (<person> | <location>);
<cleanup_command> = <cleanupVerb> [<article> <room_class>];
<show_command> = <showVerb> [<person>] (([<article>] <grab_object>) | ([the (path|way) to] [<article>] <location>));
<bringVerb> = bring | carry | retrieve | fetch | get | give | put | attend | deliver | convey | gather | (pick up) | take | lead | grasp;
<findVerb> = detect | find | (search [for]) | (check [for]) | acquire | attain | obtain | (look for);
<pointatVerb> = (point at) | denote | direct | indicate | suggest;
<showVerb> = show | demonstrate | present;
<gotoVerb> = navigate | go | approach | move | run | travel | ride;
<followVerb> = follow | chase | (come after);
<learnVerb> = learn | remember | memorize | determine | gain | study | train;
<cleanupVerb> = (clean up) | (tidy up) | clear | (do up) | (straighten up);
<person> = someone | <personal_pronoun> | <person_name> | (person | man | woman | guy | girl | boy | human | robot);
<personal_pronoun> = him | her | me;
<person_name> = james|john|robert|michael|william|david|richard|charles|linda|thomas|mary|patricia|joseph|dorothy|barbara|susan|jennifer|maria|elizabeth|margaret;
<grab_object> = <cleaningstuff_class> | <drink_class> | <snack_class> | <food_class> | cleaningstuff | drink | snack | object | food | something | stuff | item;
<cleaningstuff_class> = deodorant | toothpaste | cleaner | fresh_discs | sponge;
<drink_class> = beer_bottle | fanta | beer_can | coke | seven_up | chocolate_milk | energy_drink | orange_juice | apple_juice | milk;
<snack_class> = chocolate | cookies | drops | cracker;
<food_class> = tomato_sauce | peanut_butter | chicken_noodles | marmalade | veggie_noodles | garlic_sauce;
<location> = <appliance_class> | <shelf_class> | <seat_class> | <table_class> | <room_class> | <utensil_class> | <door_class> | door | seating | utensil | location | room | appliance | shelf | seat | table | somewhere | apartment | furniture;
<second_location> = <appliance_class> | <shelf_class> | <seat_class> | <table_class> | <room_class> | <utensil_class> | <door_class> | door | seating | utensil | location | room | appliance | shelf | seat | table | somewhere | apartment;
<appliance_class> = stove | sink | fridge | tv_counter;
<shelf_class> = bar | kitchen_counter | cupboard | dresser | side_board | book_shelf | pantry | cabinet;
<seat_class> = <seating_class>;
<seating_class> = bench | bed | sofa | armchair;
<table_class> = hallway_table | side_table | kitchen_table | dinner_table | couch_table | bedsidetable;
<door_class> = exit | entry;
<room_class> = kitchen | living_room | bed_room | hallway;
<utensil_class> = hanger | umbrella_stand | trash_bin | plant;
<preposition> = into | to | from;
<further_preposition> = (on [top of]) | in | (next to) | at | near;
<article> = the | an | a | some | this;
#JSGF V1.0;
grammar ToBI_GPRSperson;
public <statement> = <phrase> [please];
<phrase> = [<verb>] <person>;
<verb> = follow | learn | remember | memorize | find | search for | get | take | bring | go to;
<person> = <personal_pronoun> | <person_name>;
<personal_pronoun> = him | her | me;
<person_name> = michael | christopher | matthew | joshua | daniel | david | andrew | james | justin | joseph | jessica | ashley | brittany | amanda | samantha | sarah | stephanie | jennifer | elizabeth | lauren;
#!/bin/sh
if [ $1 ]
then installdir=$1
else installdir="/vol/robocup/2013/share/SpeechRec/"
fi
mkdir -p $installdir/psGrammar
for i in `ls`
do
if [ -d $i ]
then cp -r $i $installdir/psGrammar
fi
done
echo "copying done"
#JSGF V1.0;
grammar ToBI_leave;
public <leave> = tobi [please] leave;
#JSGF V1.0;
grammar ToBI_location;
public <statement> = <locationPhrase> [please];
<locationPhrase> = [<verb>] [<preposition>] [the | this] <location>;
<verb> = go | search | learn | remember | memorize;
<location> = <appliance_class> | <shelf_class> | <seat_class> | <table_class> | <room_class> | <utensil_class> | <door_class>;
<appliance_class> = stove | sink | fridge | tv_counter;
<shelf_class> = bar | kitchen_counter | cupboard | dresser | side_board | book_shelf | pantry | cabinet;
<seat_class> = <seating_class>;
<seating_class> = bench | bed | sofa | armchair;
<table_class> = hallway_table | side_table | kitchen_table | dinner_table | couch_table | bedsidetable;
<room_class> = kitchen | living_room | bed_room | hallway;
<utensil_class> = hanger | umbrella_stand | trash_bin | plant;
<door_class> = exit | entry;
<preposition> = into | (on [top of]) | in | ([next] to) | at | near | in | from;
#JSGF V1.0;
grammar ToBI_object;
public <statement> = [<verb>] [<article>] <object> [please];
<object> = <grab_object>;
<grab_object> = <cleaningstuff_class> | <drink_class> | <snack_class> | <food_class>;
<cleaningstuff_class> = deodorant | toothpaste | cleaner | fresh_discs | sponge;
<drink_class> = beer_bottle | fanta | beer_can | coke | seven_up | chocolate_milk | energy_drink | orange_juice | apple_juice | milk;
<snack_class> = chocolate | cookies | drops | cracker;
<food_class> = tomato_sauce | peanut_butter | chicken_noodles | marmalade | veggie_noodles | garlic_sauce;
<verb> = bring | carry | retrieve | fetch | get | give | find | search for | put | learn | remember | memorize;
<article> = the | an | some | a | this;
#JSGF V1.0;
grammar ToBI_person;
public <statement> = <naming>;
<naming> = [(my name is) | (i am)] <name>;
<name> = michael | christopher | matthew | joshua | daniel | david | andrew | james | justin | joseph | jessica | ashley | brittany | amanda | samantha | sarah | stephanie | jennifer | elizabeth | lauren;
#JSGF V1.0;
grammar ToBI_restaurant;
public <restaurant> = [tobi] [please] <command> [please] [tobi];
<command> = <followMe> | <stop> | <beverages> | <ordering> | <deliveryLocations> | <savePlaceLeft> | <savePlaceRight> | <savePlace>;
<followMe> = (follow me) | (come [(with me) | here]) | (keep up);
<stop> = stop [this];
<beverages> = <objectCategory> | <objects>;
<objectCategory> = drinks | food;
<objects> = <drinks> | <food>;
<drinks> = beer_bottle | fanta | beer_can | coke | seven_up | chocolate_milk | energy_drink | orange_juice | apple_juice | milk;
<food> = tomato_sauce | peanut_butter | chicken_noodles | marmalade | veggie_noodles | garlic_sauce;
<ordering> = ordering;
<deliveryLocations> = table (one | two | three);
<savePlaceLeft> = left;
<savePlaceRight> = right;
<savePlace> = <save>;
<save> = save [the] (place | location) [[to | on] [the | my] (<savePlaceRight> | <savePlaceLeft>)];
#JSGF V1.0;
grammar ToBI_room;
public <statement> = <rooms>;
<rooms> = [the] (living_room | bed_room | hallway | kitchen);
#JSGF V1.0;
grammar A4_inspection;
public <review> = [tobi] [please] ( <teach> | <stop> ) [please] [tobi];
<stop> = (stop [observing | it]);
<teach> = ( (this is [a | an | the] ) | ( these are [the] ) ) <object>;
<object> = ( milk | apple | box );
#JSGF V1.0;
grammar ToBI_shellgame;
public <statement> = [tobi] [please] <command> [please] [tobi];
<command> = <startPlaying> | <yourTurn> | <stopPlaying>;
<startPlaying> = let us play | lets play;
<yourTurn> = [its] your turn;
<stopPlaying> = stop [it];
\ No newline at end of file
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