From c20b8129e34fb0a4c17ae96cd77fc1bf59cb0c24 Mon Sep 17 00:00:00 2001 From: "jonas.zilke" <jonas.zilke@uni-bielefeld.de> Date: Tue, 22 Aug 2023 16:11:11 +0200 Subject: [PATCH] add robot synonyms --- psGrammar/demos/learning.jsgf | 6 ++++-- psGrammar/demos/listen.jsgf | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/psGrammar/demos/learning.jsgf b/psGrammar/demos/learning.jsgf index b62cec3e..cf2fd275 100644 --- a/psGrammar/demos/learning.jsgf +++ b/psGrammar/demos/learning.jsgf @@ -1,13 +1,15 @@ #JSGF V1.0; grammar learning; -public <command> = [tobi] (<save> | <stop> ); +public <command> = [<robot>] (<save> | <stop> ); + +<robot> = (tobi | robot | biron | pepper | tiago); <NP_location> = ([the] <location>); <save> = <pre> <NP_location>; <pre> = ([please] save) | (here is) | memorize; -<location> = (table <numberOfTable>) | (shelf) | (bar) | (bin) | (garbage collection); +<location> = (table <numberOfTable>) | (bar) | (bin) | (garbage collection); <numberOfTable> = (one | two | three | four | five | six | seven | eight | nine); <stop> = (stop the task) | (wait here); diff --git a/psGrammar/demos/listen.jsgf b/psGrammar/demos/listen.jsgf index 6b55421e..74d61020 100644 --- a/psGrammar/demos/listen.jsgf +++ b/psGrammar/demos/listen.jsgf @@ -1,7 +1,9 @@ #JSGF V1.0; grammar commands; -public <command> = [tobi] ( <goto> | <stop> ); +public <command> = [<robot>] ( <goto> | <stop> ); + +<robot> = (tobi | robot | biron | pepper | tiago); <goto> = ([go to] <NP_location>); @@ -9,7 +11,7 @@ public <command> = [tobi] ( <goto> | <stop> ); <NP_location> = ([the] <location>); -<location> = (table <numberOfTable>) | shelf | bar | bin | (garbage collection); +<location> = (table <numberOfTable>) | bar | bin | (garbage collection); <numberOfTable> = (one | two | three | four | five | six | seven | eight | nine); -- GitLab