VoxForge
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 |
|
>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...
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
>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.