public class WordnetSynonymParser extends SynonymMap.Parser
See https://wordnet.princeton.edu/documentation/prologdb5wn for a description of the format.
Constructor and Description |
---|
WordnetSynonymParser(boolean dedup,
boolean expand,
Analyzer analyzer) |
Modifier and Type | Method and Description |
---|---|
void |
parse(Reader in)
Parse the given input, adding synonyms to the inherited
SynonymMap.Builder . |
analyze
add, build, join
public WordnetSynonymParser(boolean dedup, boolean expand, Analyzer analyzer)
public void parse(Reader in) throws IOException, ParseException
SynonymMap.Parser
SynonymMap.Builder
.parse
in class SynonymMap.Parser
in
- The input to parseIOException
ParseException
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.