Class PrincetonWN30DatabaseDictionaryElementFactory

    • Constructor Detail

      • PrincetonWN30DatabaseDictionaryElementFactory

        public PrincetonWN30DatabaseDictionaryElementFactory()
        Initialize the factory.
    • Method Detail

      • create

        public java.lang.Object create​(java.util.Map params)
                                throws JWNLException
        Creates a blank factory, takes no parameters.
        Throws:
        JWNLException
      • createSynset

        public Synset createSynset​(POS pos,
                                   long offset,
                                   java.sql.ResultSet synset,
                                   java.sql.ResultSet words,
                                   java.sql.ResultSet pointers,
                                   java.sql.ResultSet verbFrames)
                            throws java.sql.SQLException
        Create a synset.
        Specified by:
        createSynset in interface DatabaseDictionaryElementFactory
        Overrides:
        createSynset in class AbstractPrincetonDatabaseDictionaryElementFactory
        Parameters:
        pos - - the part of speech
        offset - - the file offset
        synset - - the result set
        words - - the words composing the synset
        pointers - - the pointers
        verbFrames - - the verbFrames
        Returns:
        Synset - the created synset
        Throws:
        java.sql.SQLException
      • createWord

        protected Word createWord​(Synset synset,
                                  int index,
                                  java.lang.String lemma,
                                  java.lang.String senseKey,
                                  int usageCnt)
        Creates a word object from.
        Parameters:
        synset - - the synset this word belongs to
        index - - the index of this word
        lemma - - phrase defintion
        senseKey - - the sense key
        usageCnt - - the tagged usage count
        Returns:
        word