Comments

Flat
bug with mkdfa.pl
User: bejimed
Date: 7/23/2010 5:54 pm
Views: 4499
Rating: 15
i have the ubuntu 10.04 as an Operating sytstem
and i have installed the julius 4.1.x with the command apt-get install julius
when i want to convert the two files sample.grammar and sample.voca to sample.dfa,sample.term and sample.dict using the command mkdfa.perl i have this error
$ ./mkdfa.pl sample
sample.grammar has 3 rules
sample.voca has 6 categories and 18 words
---
Now parsing grammar file
Now modifying grammar to minimize states[-1]
Now parsing vocabulary file
Now making nondeterministic finite automaton[3/3]
Error: undefined class "DIG"
---
no .dfa or .dict file generated

NB : mkfa , dfa_minimize,sample.grammar and sample.voca are internally placed at the same directory as mkdfa.pl.
so please help me
 
Re: bug with mkdfa.pl
User: kmaclean
Date: 7/28/2010 2:57 pm
Views: 122
Rating: 15

>Error: undefined class "DIG"

I need to see the contents of your sample.grammar and sample.voca.

Are you using the VoxForge pronunciation dictionary?  The VoxForge acoustic models assume you are, and will generate errors if you are not...

Re: bug with mkdfa.pl
User: bejimed
Date: 7/28/2010 6:33 pm
Views: 149
Rating: 13

the contenet of my sample.grammar :

S : NS_B SENT NS_E
SENT: CALL_V NAME_N
SENT: DIAL_V DIG
 the contenet of my sample.voca

% NS_B
<s>        sil

% NS_E
</s>        sil

% CALL_V
PHONE        f ow n
CALL        k ao l

% DIAL_V
DIAL        d ay l

% NAME_N
STEVE        s t iy v
YOUNG        y ah ng

% DIGIT
FIVE        f ay v
FOUR        f ow r
NINE        n ay n
EIGHT        ey t
OH        ow
ONE        w ah n
SEVEN        s eh v ih n
SIX        s ih k s
THREE        th r iy
TWO        t uw
ZERO       z iy r ow
And concerning the voxforge_lexicon dictionnary i have a copy of it in the same folder where i have the file mkdfa.pl and sample.grammar and sample.voca

Re: bug with mkdfa.pl
User: kmaclean
Date: 7/28/2010 7:52 pm
Views: 168
Rating: 14

>SENT: DIAL_V DIG

should be: SENT: DIAL_V DIGIT

whatever terminals you have in your .grammar files, must be defined in your .voca file.

DIGIT is defined in your .voca ("% DIGIT"), "DIG" is not.

Re: bug with mkdfa.pl
User: Visitor
Date: 7/29/2010 12:16 pm
Views: 145
Rating: 18

The problem is solved thank you a lot

PreviousNext