Comments

Flat
Error after reading rules and categories
User: kpap
Date: 3/3/2010 6:06 pm
Views: 3133
Rating: 7

I'm running the mkdfa.pl script from the same folder I've already put sample.grammar and sample.voca files. My OS is Windows 7.  I got the following error :

-----------

$ mkdfa.pl sample
sample.grammar has 1 rules
sample.voca    has 2 categories and 10 words
---
Error:       Can't open grammar file "/tmp/g4132.grammar"
Error:       Can't open grammar file "/tmp/g4132.grammar"
Error:       Can't open grammar file "/tmp/g4132.grammar"
Error:       Can't open grammar file "/tmp/g4132.grammar"
Error:       Can't open grammar file "/tmp/g4132.grammar"
Error:       Can't open grammar file "/tmp/g4132.grammar"
---
no .dfa or .dict file generated

---------

Any ideas ??

 

 

Re: Error after reading rules and categories
User: kmaclean
Date: 3/8/2010 10:32 pm
Views: 70
Rating: 7

>My OS is Windows 7.

use Cygwin...

>Error:       Can't open grammar file "/tmp/g4132.grammar"

This might be a line ending issue.  Make sure the sample.grammar and sample.voca files have dos line endings.

ken

PreviousNext