Class WordnetSynonymParser


  • public class WordnetSynonymParser
    extends SynonymMap.Parser
    Parser for wordnet prolog format

    See http://wordnet.princeton.edu/man/prologdb.5WN.html for a description of the format.

    • Constructor Detail

      • WordnetSynonymParser

        public WordnetSynonymParser​(boolean dedup,
                                    boolean expand,
                                    Analyzer analyzer)
    • Method Detail

      • parse

        public void parse​(java.io.Reader in)
                   throws java.io.IOException,
                          java.text.ParseException
        Description copied from class: SynonymMap.Parser
        Parse the given input, adding synonyms to the inherited SynonymMap.Builder.
        Specified by:
        parse in class SynonymMap.Parser
        Parameters:
        in - The input to parse
        Throws:
        java.io.IOException
        java.text.ParseException