Click the 'Add' link to add a comment to this page; click the 'Read More' link to view replies to a posted comment.
Add • Search
If you get this error when trying to compile your grammar and voca files:
$ mkdfa.pl samplesample.grammar has 3 rulessample.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$ lssample.grammar sample.voca $ dos2unix *.*sample.grammar: done.sample.term: done.sample.voca: done.$ mkdfa.pl samplesample.grammar has 3 rulessample.voca has 6 categories and 18 words---Now parsing grammar fileNow modifying grammar to minimize states[-1]Now parsing vocabulary fileNow 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$ lssample.dfa sample.dict sample.grammar sample.term sample.voca
$ cd temp
$ lssample.grammar sample.voca
$ dos2unix *.*sample.grammar: done.sample.term: done.sample.voca: done.
$ mkdfa.pl samplesample.grammar has 3 rulessample.voca has 6 categories and 18 words---Now parsing grammar fileNow modifying grammar to minimize states[-1]Now parsing vocabulary fileNow 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
$ lssample.dfa sample.dict sample.grammar sample.term sample.voca
Ken
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~
for Lexical mistake
u don't have to put "Enter" between BNF grammar
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.
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.