public interface Sense
Synset
.Modifier and Type | Method and Description |
---|---|
String |
getFullLemma()
Gets the full lemma of this
Sense
(which might include annotations, such as labels in Wikipedia page titles). |
it.uniroma1.lcl.jlt.util.Language |
getLanguage()
Gets the
Language of this Sense |
com.babelscape.util.POS |
getPOS()
Gets the part of speech of this
Sense . |
String |
getSimpleLemma()
Gets the simple lemma of this
Sense . |
SenseSource |
getSource()
Gets the
BabelSenseSource of this Sense . |
BabelSynset |
getSynset()
Gets the
BabelSynset this Sense belongs to. |
SynsetID |
getSynsetID()
Returns the id of the
Synset the sense belongs to |
boolean |
isKeySense()
Returns true if it is a key sense
|
default Optional<String> |
toURI(ExternalResource resource)
Returns the URI of the sense for a given
ExternalResource |
boolean isKeySense()
String getFullLemma()
Sense
(which might include annotations, such as labels in Wikipedia page titles). Use getSimpleLemma()
to retrieve plain lemmas.Sense
.String getSimpleLemma()
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.Sense
.com.babelscape.util.POS getPOS()
Sense
.Sense
.SenseSource getSource()
BabelSenseSource
of this Sense
.BabelSenseSource
of this Sense
.it.uniroma1.lcl.jlt.util.Language getLanguage()
Language
of this Sense
Language
of this Sense
.BabelSynset getSynset()
BabelSynset
this Sense
belongs to.BabelSynset
of this Sense
.SynsetID getSynsetID()
Synset
the sense belongs toSynset
the sense belongs todefault Optional<String> toURI(ExternalResource resource)
ExternalResource
resource
- the external resourceCopyright © 2016–2018. All rights reserved.