Comments

Nested
mkdfa problems
User: Tuan Dinh
Date: 2/7/2013 12:44 pm
Views: 4637
Rating: 14

Hi everyone,

Im running on ubuntu 12.10 64 bit system. When i tried to run: mkdfa.pl robotino, i got the problem:

robotino.grammar has 12 rules
robotino.voca    has 12 categories and 29 words
---
---
no .dfa or .dict file generated

My robotino files: http://www.mediafire.com/?a651n8q4kzd4iyn,uvpxxm8g7p52go7

I also tried with other .grammar and .voca but got the same problem. The other used files: http://www.mediafire.com/?shjacdbn1ngrjuh,2yln4djtmdzjc4b

I also used dos2unix on .grammar and .voca file but still got the problem

When i examined source code of mkdfa.pl, i realized that

in the row: $status = system("$mkfabin -e1 -fg $rgramfile -fv $tmpvocafile

my status variable equals -1

so it caused the error:

if ($status != 0) {
    # error
    print "no .dfa or .dict file generated\n";
    exit;
}

I tried many ways but I still don't know how to solve the problem.

Best regard

Re: mkdfa problems
User: Tuan Dinh
Date: 2/8/2013 5:33 am
Views: 185
Rating: 13

Hi everyone,

I haven't solved the problem with mkdfa.pl yet. But now i use the command line:

mkfa -e1 -fg sample.grammar -fv sample.voca -fo sample.dfa -fh sample.h

and get the error:

root@ubuntu:/home/tuan/voxforge/HTK_scripts/manual# mkfa -e1 -fg sample.grammar -fv sample.voca -fo sample.dfa -fh sample.h
Now parsing grammar file
Now modifying grammar to minimize states[-1]
Now parsing vocabulary file
Now making nondeterministic finite automaton[1/1]
Error:       undefined class "NS_B"

My files:

http://www.mediafire.com/?pnoez1mf92mpmi8

http://www.mediafire.com/?idtusd5f87o5938

I defined NS_B. I don't know how to solve it

Any help?

PS: I used dos2unix

Re: mkdfa problems
User: kmaclean
Date: 2/18/2013 11:14 am
Views: 185
Rating: 6

>I haven't solved the problem with mkdfa.pl yet

are you using the most current version of Julius?  I just tried your .voca and .grammar files with Julius 4.2.1 and it worked ok...

PreviousNext