Syns2Index.java | Class | Convert the prolog file wn_s.pl from the WordNet prolog download
into a Lucene index suitable for looking up synonyms and performing query expansion (
SynExpand.expand SynExpand.expand(...) ).
This has been tested with WordNet 2.0.
The index has fields named "word" (
Syns2Index.F_WORD )
and "syn" (
Syns2Index.F_SYN ).
The source word (such as 'big') can be looked up in the
"word" field, and if present there will be fields named "syn"
for every synonym. |