Class WordnetSynonymParser
- java.lang.Object
-
- org.apache.lucene.analysis.synonym.SynonymMap.Builder
-
- org.apache.lucene.analysis.synonym.SynonymMap.Parser
-
- org.apache.lucene.analysis.synonym.WordnetSynonymParser
-
public class WordnetSynonymParser extends SynonymMap.Parser
Parser for wordnet prolog formatSee http://wordnet.princeton.edu/man/prologdb.5WN.html for a description of the format.
-
-
Constructor Summary
Constructors Constructor Description WordnetSynonymParser(boolean dedup, boolean expand, Analyzer analyzer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
parse(Reader in)
Parse the given input, adding synonyms to the inheritedSynonymMap.Builder
.-
Methods inherited from class org.apache.lucene.analysis.synonym.SynonymMap.Parser
analyze
-
Methods inherited from class org.apache.lucene.analysis.synonym.SynonymMap.Builder
add, build, join
-
-
-
-
Constructor Detail
-
WordnetSynonymParser
public WordnetSynonymParser(boolean dedup, boolean expand, Analyzer analyzer)
-
-
Method Detail
-
parse
public void parse(Reader in) throws IOException, ParseException
Description copied from class:SynonymMap.Parser
Parse the given input, adding synonyms to the inheritedSynonymMap.Builder
.- Specified by:
parse
in classSynonymMap.Parser
- Parameters:
in
- The input to parse- Throws:
IOException
ParseException
-
-