Comments

Flat
Step 1, Lexical Error
User: royerfa
Date: 2/22/2008 7:00 am
Views: 4034
Rating: 32

Hello,

 

I am new in VoxForge. I try to follow the Tuto, and I have a Lexical error step 1.

In fact this is my problem.

    royerfa@royerfa-laptop:~/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 "
    Error: cannot open "sample.dfa.tmp"
    ---
    no .dfa or .dict file generated

 

And I am surprise because with the example from http://julius.sourceforge.jp/en/grammar.html

It Works without problem.

Do you have any sugggestion for me .Foot in mouth

Re: Step 1, Lexical Error
User: kmaclean
Date: 2/22/2008 7:23 am
Views: 294
Rating: 25

hi royerfa,

See this post: Compiling your Grammar in the comments to Step 1 - Task Grammar the VoxForge *tutorial* (which contains many explanations for what is going on in the how-to and the AM creation script). 

It basically says that you might need to use the dos2unix command. 

Hope that helps,

Ken 

Re: Step 1, Lexical Error
User: arielberg
Date: 7/10/2011 5:05 am
Views: 134
Rating: 7

save your files in unix format.

Previous