Skip to content
Snippets Groups Projects
Commit d22adf62 authored by Leroy John Rügemer's avatar Leroy John Rügemer
Browse files

demoDyn: object grammars

parent 0cd6165e
No related branches found
No related tags found
No related merge requests found
...@@ -20,6 +20,13 @@ jsgf=../../psGrammar/confirm/stop.jsgf; ...@@ -20,6 +20,13 @@ jsgf=../../psGrammar/confirm/stop.jsgf;
bestpath=no; bestpath=no;
autoload=yes; autoload=yes;
[pocketsphinxinstance]
name=objects;
rsbscope=/speechrec/psa/objects;
jsgf=../../psGrammar/object/lab_objects.jsgf;
bestpath=no;
autoload=yes;
[pocketsphinxinstance] [pocketsphinxinstance]
name=learning; name=learning;
rsbscope=/speechrec/psa/learning; rsbscope=/speechrec/psa/learning;
......
...@@ -18,10 +18,9 @@ public <command> = [<robot>] ( <introduce> | <save> | <wave> | <goTo> | <followM ...@@ -18,10 +18,9 @@ public <command> = [<robot>] ( <introduce> | <save> | <wave> | <goTo> | <followM
<search> = ( search for [a] [waving] person); <search> = ( search for [a] [waving] person);
<describe> = (tell me what you see); <describe> = (tell me what you see);
<difference> = (spot the difference); <difference> = (spot the difference);
<bring> = ((bring) [the] <bringObject> (to a waving person)); <bring> = (deliver [an object]);
<bringObject> = (coke | drink | beer | object); <take> = (handover);
<take> = handover | (take the <takeObject> from me); <pick> = (grasp [an object]);
<takeObject> = (coke | drink | beer | object);
<ordering> = (start taking orders) | (take my order); <ordering> = (start taking orders) | (take my order);
<learn> = (learn a person); <learn> = (learn a person);
......
#JSGF V1.0;
grammar ToBI_object;
public <statement> = [<verb>] [<article>] <objects> [please];
<objects> = <object>;
<object> = <grab_object>;
<grab_object> = <cleaning_class> | <food_class> | (cleaning stuff) | drinks | snacks | object | food | something | stuff | item | beverage | things;
<cleaning_class> = cloth | soap | sponge;
<food_class> = salt | apple | pringles | cereals | cornflakes | peas | (coconut milk);
<verb> = (bring me) | bring | carry | retrieve | fetch | get | give | find | search for | put | learn | remember | memorize;
<article> = the | an | some | a | this;
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