lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From noname90 <>
Subject Error when Integrating wordnet to Lucene
Date Wed, 12 Sep 2012 04:07:20 GMT
Hi all,

I want to integrate wordnet 3.0 to Lucene 4.0. This is my code:

1. String op = new Scanner(new
File("E:\\...\\WNprolog-3.0\\prolog\\")).useDelimiter("\\Z").next() ;
2. WordnetSynonymParser parser = new WordnetSynonymParser(true, true, 
new StandardAnalyzer(Version.LUCENE_40));
3. parser.add(new StringReader(op));
4. SynonymMap map =;

But when the 3rd line was executed, I got this error:
/Invalid synonym rule at line 109/

I don't know what the cause is. Could you please help me with this problem?

Thank you so much. 

View this message in context:
Sent from the Lucene - Java Developer mailing list archive at

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message