Skip to content
Snippets Groups Projects
Commit 10790c06 authored by Sarah Schröder's avatar Sarah Schröder
Browse files

added grammar for helpmecarry task

parent 95256b20
No related branches found
No related tags found
No related merge requests found
[main]
startdb=43;
uttdb=47;
silence=400;
timeout=8;
openDeviceDirectly=yes;
alsadevice=sysdefault;
[pocketsphinxinstance]
name=name;
jsgf=../../psGrammar/tasks/helpmecarry_meetPerson.jsgf;
rsbscope=/speechrec/psa/helpmecarry/person;
bestpath=no;
autoload=yes;
[pocketsphinxinstance]
name=command;
jsgf=../../psGrammar/tasks/helpmecarry_commands.jsgf;
rsbscope=/speechrec/psa/helpmecarry/command;
bestpath=no;
autoload=yes;
[pocketsphinxinstance]
name=confirm;
jsgf=../../psGrammar/confirm/confirm.jsgf;
rsbscope=/speechrec/psa/helpmecarry/confirm;
bestpath=no;
autoload=yes;
#JSGF V1.0;
grammar saschroeder;
public <saschroeder> = <name> ( <calculate> | <goto> | <tellme> );
<name> = (tobi | biron);
<calculate> = [what is] <calc>;
<calc> = <number> (plus | minus) <number>;
<number> = zero | one | two | three | four | five | six | seven | eight | nine;
<goto> = ([go to] <NP_location>);
<NP_location> = ([the] <door>);
<door> = door;
<tellme> = ([tell me] <joke>);
<joke> = ([a | the]) joke;
#JSGF V1.0;
grammar ToBI_commands;
public <statement> = [<robot>] [please] <command> [please] [<robot>];
<robot> = (tobi | robot | biron);
<command> = (<follow> | <stop> | <goto> | <deliver> | <find>);
<follow> = (follow [me] | come [with me] | let's go) [to the car];
<stop> = (((stop | wait) [following me] [here]) | ((we (arrived at| are at | reached) | here is) [the] (car | goal)));
<goto> = (go | drive) [back] to <location>;
<deliver> = (bring | deliver | take) [the] <bag> to <location>;
<find> = (find | search for| ask | look for) <name> in <location> [and ask (him | her) to help us];
<bag> = (bag | groceries);
<name> = (michael | lucarelli | dombrowski | anna | beth | victoria);
<location> = (<room> | <room> <precisePlace> | <precisePlace> | <precisePlace> in <room>);
<room> = [the] (kitchen | bath room | living room | bed room);
<precisePlace> = [the] (table | sofa | couch | shelf);
#JSGF V1.0;
grammar ToBI_commands;
public <get_name> = [(i am [called]) | (my name is)] <name>;
<name> = (michael | lucarelli | dombrowski | anna | beth | victoria);
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment