Interface Sense

All Superinterfaces:
Taggable
All Known Implementing Classes:
BabelSense, WordNetSense

public interface Sense extends Taggable
General interface for a sense for a Synset.
Author:
navigli
  • Method Details

    • isKeySense

      boolean isKeySense()
      Returns true if it is a key sense
      Returns:
      true if it is a key sense, false otherwise
    • getFullLemma

      String getFullLemma()
      Gets the full lemma of this Sense (which might include annotations, such as labels in Wikipedia page titles). Use getNormalizedLemma() to retrieve plain lemmas lower case or getLemma().
      Returns:
      the lemma of this Sense.
    • getSimpleLemma

      @Deprecated String getSimpleLemma()
      Deprecated.
      Gets the simple lemma of this Sense. This corresponds to the lemma itself, if the lemma comes from WordNet, or the lemma possibly without sense labels (i.e. parentheses) if it comes from Wikipedia.
      Returns:
      the simple lemma of this Sense.
    • getNormalizedLemma

      String getNormalizedLemma()
      Gets the normalized lemma of this Sense. This corresponds to the lower case lemma itself, if the lemma comes from WordNet, or the lower case lemma possibly without sense labels (i.e. parentheses) if it comes from Wikipedia.
      Returns:
      the normalized lemma of this Sense.
    • getLemma

      Lemma getLemma()
      Gets the lemma of this Sense.
      Returns:
      the lemma of this Sense
    • getPOS

      it.uniroma1.lcl.jlt.util.POS getPOS()
      Gets the part of speech of this Sense.
      Returns:
      the part of speech of this Sense.
    • getSource

      SenseSource getSource()
      Gets the BabelSenseSource of this Sense.
      Returns:
      the BabelSenseSource of this Sense.
    • getLanguage

      it.uniroma1.lcl.jlt.util.Language getLanguage()
      Gets the Language of this Sense
      Returns:
      the Language of this Sense.
    • getSynset

      BabelSynset getSynset()
      Gets the BabelSynset this Sense belongs to.
      Returns:
      the BabelSynset of this Sense.
    • getSynsetID

      SynsetID getSynsetID()
      Returns the id of the Synset the sense belongs to
      Returns:
      SynsetID the id of the Synset the sense belongs to
    • getGlosses

      Collection<BabelGloss> getGlosses()
      Returns the BabelGlosses associated to this Sense.
      Returns:
      the BabelGlosses of this Sense
    • toURI

      default Optional<String> toURI(ExternalResource resource)
      Returns the URI of the sense for a given ExternalResource
      Parameters:
      resource - the external resource
      Returns:
      the URI to the external resource