Skip to content
Snippets Groups Projects
Commit 52dd95df authored by Linus Schwarz's avatar Linus Schwarz Committed by Laurin Gräsner
Browse files

Fixed syntax errors in gpsr23alternate grammar and changed names to match command generator

parent f0c51db5
No related branches found
No related tags found
1 merge request!9Merge GPSR changes
......@@ -2,4 +2,5 @@
grammar ToBI_person;
public <statement> = <naming> ;
<naming> = [(my name is) | (i am)] <name>;
<name> = sophia | isabella | emma | olivia | ava | emily | abigail | madison | mia | chloe | james | john | robert | michael | william | david | richard | charles | joseph | thomas;
<name_old> = sophia | isabella | emma | olivia | ava | emily | abigail | madison | mia | chloe | james | john | robert | michael | william | david | richard | charles | joseph | thomas;
<name> = alex | charlie | elizabeth | francis | jennifer | linda | mary | patricia | james | john | michael | robert | robin | skyler | william;
\ No newline at end of file
#JSGF V1.0;
# This grammar tries to restrict task combinations by checking available and required references to places, items and persons. It doesn't work yet and is not worth continuing right now.
grammar speechRecognition;
public <sentence> = [could you | robot | tobi] [please] <command>;
command = (<cmdfndppl> | <cmdfndobj> | <cmdguide> | <cmdfollow> | <cmdfollowout> | <cmdincomplete> | <cmdman> | <complexman> | <cmdpartyhost>);
<command> = (<cmdfndppl> | <cmdfndobj> | <cmdguide> | <cmdfollow> | <cmdfollowout> | <cmdincomplete> | <cmdman> | <complexman> | <cmdpartyhost>);
#Base commands
<cmdfndppl> = <tellPrsInfoInLoc> | <countPrsInRoom>;
<cmdfndobj> = <findObjInRoom> | <countObjOnPlcmt> | <tellCatPropOnPlcmt> | <tellObjPropOnPlcmt>;
<cmdguide> = <guideNameFromBeacToBeac>
| (<meetPrsAtBeac> and <guidePrsToBeacon>)
| (<goToLoc> <meetName> and <guidePrsToBeacon>);
<cmdguide> = <guideNameFromBeacToBeac> | (<meetPrsAtBeac> and <guidePrsToBeacon>) | (<goToLoc> <meetName> and <guidePrsToBeacon>);
<cmdfollow> = <followNameFromBeacToRoom>
| (<meetPrsAtBeac> and (<followPrs> | <followPrsToRoom>))
| (<goToLoc> <meetName> and (<followPrs> | <followPrsToRoom>));
<cmdfollow> = <followNameFromBeacToRoom> | (<meetPrsAtBeac> and (<followPrs> | <followPrsToRoom>)) | (<goToLoc> <meetName> and (<followPrs> | <followPrsToRoom>));
<cmdfollowout> = <meetPrsAtBeac> <followPrs> and (<goToLoc> | <guidePrsBack>);
<cmdincomplete> = noGrammarMatch;
<cmdman> = <bringMeObjFromPlcmt>
| (<takefrom> and (<deliverObjPronToMe> | <deliverObjToNameAtBeac>))
| (<takefrom> and <placeObjPronOnPlcmt>);
<complexman> = noGrammarMatch;
<cmdincomplete> = skyler;
<cmdpartyhost> = noGrammarMatch;
<cmdman> = <bringMeObjFromPlcmt> | (<takeObjFromPlcmt> and (<deliverObjPronToMe> | <deliverObjToNameAtBeac>)) | (<takeObjFromPlcmt> and <placeObjPronOnPlcmt>);
<complexman> = skyler;
#Tasks the command consists out of
<cmdpartyhost> = skyler;
<goToLoc> = <V_go> <toLocPrep> (<NP_room> | <NP_placement> | <NP_beacon>);
......@@ -160,4 +148,4 @@ command = (<cmdfndppl> | <cmdfndobj> | <cmdguide> | <cmdfollow> | <cmdfollowout>
<N_beacon> = fridge | sink | dishwasher | (easy chair) | (arm chair) | (kitchen table) | workstation;
<N_beaconTwo> = fridge | sink | dishwasher | (easy chair) | (arm chair) | (kitchen table) | workstation;
<N_name_old> = emma | olivia | sophia | ava | isabella | mia | abigail | emily | charlotte | harper | noah | liam | mason | jacob | william | ethan | james | alexander | michael | benjamin;
<N_name> = amelia | angel | ava | charlie | charlotte | hunter | max | mia | olivia | parker | sam | jack | noah | oliver | thomas | william;
<N_name> = alex | charlie | elizabeth | francis | jennifer | linda | mary | patricia | james | john | michael | robert | robin | skyler | william;
\ 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