Interface Sense
- All Superinterfaces:
Taggable
- All Known Implementing Classes:
BabelSense, WordNetSense
-
Method Summary
Modifier and TypeMethodDescriptionGets the full lemma of thisSense(which might include annotations, such as labels in Wikipedia page titles).Returns theBabelGlosses associated to thisSense.it.uniroma1.lcl.jlt.util.LanguageGets theLanguageof thisSensegetLemma()Gets the lemma of thisSense.Gets the normalized lemma of thisSense.it.uniroma1.lcl.jlt.util.POSgetPOS()Gets the part of speech of thisSense.Deprecated.Gets theBabelSenseSourceof thisSense.Gets theBabelSynsetthisSensebelongs to.Returns the id of theSynsetthe sense belongs tobooleanReturns true if it is a key sensetoURI(ExternalResource resource) Returns the URI of the sense for a givenExternalResourceMethods inherited from interface Taggable
getTags, getTags, isTaggedAs, isTaggedAs, isTaggedAs
-
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 thisSense(which might include annotations, such as labels in Wikipedia page titles). UsegetNormalizedLemma()to retrieve plain lemmas lower case orgetLemma().- Returns:
- the lemma of this
Sense.
-
getSimpleLemma
-
getNormalizedLemma
-
getLemma
-
getPOS
-
getSource
SenseSource getSource()Gets theBabelSenseSourceof thisSense.- Returns:
- the
BabelSenseSourceof thisSense.
-
getLanguage
-
getSynset
BabelSynset getSynset()Gets theBabelSynsetthisSensebelongs to.- Returns:
- the
BabelSynsetof thisSense.
-
getSynsetID
-
getGlosses
Collection<BabelGloss> getGlosses()Returns theBabelGlosses associated to thisSense.- Returns:
- the
BabelGlosses of thisSense
-
toURI
Returns the URI of the sense for a givenExternalResource- Parameters:
resource- the external resource- Returns:
- the URI to the external resource
-
getNormalizedLemma()