-
Notifications
You must be signed in to change notification settings - Fork 0
Generating grammar files using windows pc
Rodrigo Serra edited this page Nov 28, 2023
·
1 revision
The recognition is offline and grammar based, this means that you need to know what the robot is going to receive in advance.
The desired recognized sentences need to be included in a pre-compiled grammar file with .fcf extension
The .fcf grammar model needs to be compiled from a .bnf source file in windows.
.bnf file looks like this :
#BNF+EMV2.1;
!grammar gpsr;
!start <task>;
<task>: <sentence1> | <sentence2> | <sentence3> | <sentence4> ;
<question1>: hello robot;
<question2>: robot go to the testbed;
<question3>: robot go to the coffee machine;
<question4>: robot follow me;
To compile the .bnf file open a terminal in windows and type the following commands :
cd C:\Nuance\VoCon_Hybrid\SDK_v4_5\tools
grmcpl.pyc -g c:\path2file\file.bnf -C c:\path2outputfile\output.fcf --useclc
Example :
grmcpl.pyc -g c:\Users\oscar\Desktop\simple_grammar.bnf -C c:\Users\oscar\Desktop\output.fcf --useclc