Comments

Flat
Error when running julia ../bin/mkdfa.jl
User: Wageesha
Date: 11/4/2016 12:29 am
Views: 2456
Rating: 0

Hi I'm new to Julia. I want to compile mkdfa.jl script with .grammar file and .voca file. I have followed all the steps as mentioned in the site and have creates ./bin and ./tutorial folders.

I have .grammar and .voca files inside ./tutorial folder and julius software and htk inside ./bin folder. I have given environment variable path to all the relevant locations and when i run the command, all the relevant files are loaded properly. But still i get a load error when parsing the grammar file in command line:

D:\Dev\Voxforge\tutorial>julia ../bin/mkdfa.jl sample
sample.grammar has 3 rules
---
sample.voca has 6 categories and 23 words
generated: sample.term
---
Now parsing grammar file
"rror:       Lexical mistake "
ERROR: LoadError: failed process: Process(`mkfa.exe -e1 -fg 'C:\Users\user\AppData\Local\Temp\jl_E728.tmp/g11344.grammar' -fv 'C:\Users\user\AppData\Local\Temp\jl_E728.tmp/g11344.voca' -fo sample.dfa.tmp -fh 'C:\Users\user\AppData\Local\Temp\jl_E728.tmp/g11344.h'`, ProcessExited(1)) [1]
 in pipeline_error at .\process.jl:616
 in run at .\process.jl:592 [inlined]
 in main() at D:\Dev\Voxforge\bin\mkdfa.jl:152
 in include_from_node1 at .\loading.jl:488
 in process_options at .\client.jl:262
 in _start at .\client.jl:318
while loading D:\Dev\Voxforge\bin\mkdfa.jl, in expression starting on line 164

Can I have help on this concern please? A good help is greatly appreciated.

Re: Error when running julia ../bin/mkdfa.jl
User: colbec
Date: 11/4/2016 4:52 am
Views: 6
Rating: 1

Review your grammar and voca files closely for errors. The errors may be simple such as when I add a spurious semicolon to the end of a line in a known working grammar. mkdfa.pl then generates a lexical mistake error.

Sometimes the errors may not be obvious, such as when you copy and paste from another fancy editor where an ascii error creeps in since you have copied over a multi-byte character instead of a simple ascii character. Line endings are also important.

First step: simplify your grammar/voca as much as possible; reduce to a single sentence and get that to work. Then start adding back the real sentences until you trigger the error. Secondly, this question has been asked in these forums before, try a search and see if your situation has been discussed. If your very simple single-sentence grammar/voca test still fails, post it here and someone will no doubt give you some feedback.

Next