Comments

Flat
error when converting to Julian format
User: ethan oconnors
Date: 6/6/2008 3:25 pm
Views: 5831
Rating: 20

When I try to convert to the Julian format I put in

mkdfa.pl sample 

and get this message

cannot open "sample.grammar" at /Julius/bin/mkdfa.pl line 66.

What am I doing wrong? HELP!!! 

Re: error when converting to Julian format
User: kmaclean
Date: 6/6/2008 4:28 pm
Views: 177
Rating: 20

Hi ethan,

You need to change directory into the directory where sample.sfa and sample.voca are located (I assume the "voxforge/auto" directory), and execute the mkdfa.pl script from there.

I'll make this clearer in the instructions.

thanks, 

Ken 

Re: error when converting to Julian format
User: aspirant
Date: 8/22/2010 1:57 pm
Views: 1551
Rating: 6

hi..

i did the same as given in the instructions of converting to juliun.

i have also changed the drive to home/voxforge/auto

but on running mkdfa.pl

its giving an error:-

$ mkdfa.pl sample
cannot open "sample.grammar" at /cygdrive/c/Cygwin/Julius/julius-3.5.2-multipath
-win32bin/bin/mkdfa.pl line 66.

Re: error when converting to Julian format
User: aspirant
Date: 8/24/2010 12:26 pm
Views: 66
Rating: 5

is there any solution to the problem i mentioned above....???

Re: error when converting to Julian format
User: kmaclean
Date: 9/24/2010 10:30 pm
Views: 66
Rating: 5

>cannot open "sample.grammar" at /cygdrive/c/Cygwin/Julius/julius-3.5.2-multipath

is sample.grammar in your path?

Re: error when converting to Julian format
User: Chua
Date: 1/17/2011 3:47 am
Views: 64
Rating: 7

Hi,


I'm experiencing the same problem. both the .voca and .grammar files are already in auto


but i still get the same error. line 66. can anyone help?

Re: error when converting to Julian format
User: Chua
Date: 1/20/2011 1:51 am
Views: 58
Rating: 9

alright guys. stupid but true, i solved it.

theline 66 error occurs because sample.grammar is a txt file.


and since the EOL for windows and unix is different, i used notepad++ to convert it to unix and changed the extenstion to .grammar instead of sample.grammar.txt

 

hope this help

SOLVED: error line 66
User: fairuza
Date: 3/6/2014 1:18 am
Views: 127
Rating: 2

you should not bother to convert the file if you get error line 66, the error actually means you have not navigate the path to the location of your grammar file yet. so you should write the following command:

$ cd /home/[your home directory]/voxforge/auto/   

after ENTER you should see a new line like this:

[your home directory]@[PC name] ~/voxforge/auto

then write again the following command:

$ mkdfa.pl sample 

and you should get the desired result,
BUT if you get something like this:

[your home directory]@[PC name] ~/voxforge/auto

$ mkdfa.pl sample

sample.grammar has 3 rules
sample.voca    has 6 categories and 18 words
---
Now parsing grammar file
"rror:       Lexical mistake "
---
no .dfa or .dict file generate

NOW this is when you need to convert the file. To do so, follow the instruction in the link here to convert the file within the cygwin terminal itself.

 

 

PreviousNext