Click here to register.


Comments

Click the 'Add' link to add a comment to this page; click the 'Read More' link to view replies to a posted comment.

AddSearch

Windows: "rror: Lexical mistake "
By kmaclean - 6/10/2008

If you get this error when trying to compile your grammar and voca files: 

$ 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 generated

use the Cygwin "dos2unix" command in the same directory as your grammar and voca files, for example:

$ cd temp

$ ls
sample.grammar  sample.voca

$ dos2unix *.*
sample.grammar: done.
sample.term: done.
sample.voca: done.

$ mkdfa.pl sample
sample.grammar has 3 rules
sample.voca    has 6 categories and 18 words
---
Now parsing grammar file
Now modifying grammar to minimize states[-1]
Now parsing vocabulary file
Now making nondeterministic finite automaton[6/6]
Now making deterministic finite automaton[6/6]
Now making triplet list[6/6]
---
generated: sample.dfa sample.term sample.dict

$ ls
sample.dfa  sample.dict  sample.grammar  sample.term  sample.voca

Ken 

How do I know to use which phone to form a word
By manio - 4/16/2008 - 3 Replies

hi,

I got the problem about phones.In the first step , I shoud use some phonemes to buildup a word,but how do I know which i shoud use and how to use this phonemes.

thanx~

Lexical mistake
By SWS - 2/1/2008

for   Lexical mistake

u don't have to put "Enter" between BNF grammar 

check for unrecognized characters
By Visitor - 2/29/2008

check if there were unrecognized chatacters in files "sample.grammar" and "sample.voca" by type "vi *" uder linux.

I've got the same problems.But now solved. 

Compiling your Grammar
By rovira74 - 10/20/2007 - 7 Replies

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.