public class WordnetSynonymParser extends SynonymMap.Parser
See http://wordnet.princeton.edu/man/prologdb.5WN.html 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-2019 Apache Software Foundation. All Rights Reserved.