Class IndexWord

    • Constructor Detail

      • IndexWord

        public IndexWord​(String lemma,
                         POS pos,
                         long[] synsetOffsets)
    • Method Detail

      • equals

        public boolean equals​(Object object)
        Returns true if the lemma and the part of speech both match.
        Overrides:
        equals in class Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • getPOS

        public POS getPOS()
        Get the word's part-of-speech.
      • getLemma

        public String getLemma()
        Return the word's lemma. Its lemma is its orthographic representation, for example "dog" or "get up".
      • getSynsetOffsets

        public long[] getSynsetOffsets()
      • getSenseCount

        public int getSenseCount()
        Get the word's sense count.