Name | Description |
---|---|
SynExpand | Expand a query by looking up synonyms for every term. You need to invoke Syns2Index first to build the synonym index. |
SynExpand.CollectorImpl | CollectorImpl |
SynExpand.Syns2Index | From project WordNet.Net.Syns2Index |
SynLookup | Test program to look up synonyms. |
SynLookup.CollectorImpl | CollectorImpl |
SynLookup.CountingCollector | |
SynLookup.Syns2Index | From project WordNet.Net.Syns2Index |
Syns2Index | 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). This has been tested with WordNet 2.0. The index has fields named "word" (F_WORD) and "syn" (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. What's tricky here is that there could be multiple fields with the same name, in the general case for words that have multiple synonyms. That's not a problem with Lucene, you just use Document.GetValues While the WordNet file distinguishes groups of synonyms with related meanings we don't do that here. This can take 4 minutes to execute and build an index on a "fast" system and the index takes up almost 3 MB. |