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
Parser for wordnet prolog format
See https://wordnet.princeton.edu/documentation/prologdb5wn for a description of the format.
- WARNING: This API is experimental and might change in incompatible ways in the next release.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
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 Details
-
WordnetSynonymParser
-
-
Method Details
-
parse
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
-