VoxForge
Hi,
I have not been able to get the expected result after compilation of the grammer file.I do not know what the problem is as I followed the steps carefully.
It gives this:
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 generated
Help will be appreciated.
Hi rovira74,
Are you running the mkdfa.pl script in Windows, Cygwin, or Linux? Which version? I tried it on Fedora FC6, and it seems to work OK.
It sounds like you might have extra characters in either your sample.grammar and sample.voca.
It might also be a problem with using a Windows text file on Unix/Cygwin or vice versa (i.e. extra carriage returns or line feeds). The "dos2unix" or "unix2dos" Linux/Cygwin commands can clear this up.
Ken
Hi ethan,
>how do you use the dos2unix and/or command?
From a Cygwin console on Windows, you should be able to use the "man" command to get documentation on any Cygwin command, like this:
$ man dos2unix
$ man unix2dos
(use the "q" to exit the man help page)
>if I use windows (vista) which one of the two should I use?
I can' t remember off-hand... I don't have access to a Windows machine right now - try them both and see which works :)
Ken
> I tried. it says there is no manual entry for either of them.
use the "cd" command to change directory to where your files are located, then execute the commands as follows:
My version of Cygwin does not have a "man" page entries for these commands either. Google brings up the following web pages:
KenHi,
I am running the mkdfa.pl script in cygwin, and not been able to get either .dfa or .dict file generated.
It gives this error message:
$ ./mkdfa.pl ticket
ticket.grammar has 4 rules
ticket.voca has 9 categories and 18 words
---
Error: cannot open "ticket.dfa.tmp"
---
no .dfa or .dict file generated
I have already used the dos2unix command but it didn't fix the problem.
I'd really appreciate if someone could tell me how to fix this. Thanks.
>Error: cannot open "ticket.dfa.tmp"
are you using the newest version of Julius?