public interface IWiktionarySense
IWiktionarySense represents one word sense of a lexical entry
(also called a lexical unit). Each IWiktionarySense belongs to
exactly one IWiktionaryEntry. Note that
IWiktionaryEntry.getUnassignedSense() returns a dummy word sense
carrying all information that has not been assigned to a particular
sense - for this case, the IWiktionarySense does not model an
actual word sense,| Modifier and Type | Method and Description |
|---|---|
IWiktionaryEntry |
getEntry()
Returns a reference to the
IWiktionaryEntry that contains
this sense. |
List<IWiktionaryExample> |
getExamples()
Returns a list of sense examples or
null if no sense
examples are encoded. |
IWikiString |
getGloss()
Returns the sense description as a
IWikiString. |
String |
getId()
Returns an ID of this sense that is unique for all senses
of the containing
IWiktionaryEntry. |
int |
getIndex()
Returns the index of this sense.
|
String |
getKey()
Returns a unique ID for this word sense.
|
String |
getMarker()
Returns the marker for this sense as defined in Wiktionary.
|
IWiktionaryPage |
getPage()
Returns a reference to the
IWiktionaryPage that contains
this sense. |
List<IQuotation> |
getQuotations()
Returns a list of quotations or
null if no
quotations are encoded. |
List<IWikiString> |
getReferences()
Returns a list of references for this sense or
null if no referemces are encoded. |
List<IWiktionaryRelation> |
getRelations()
Returns the list of all sense relations (or
null
if no relations are encoded). |
List<IWiktionaryRelation> |
getRelations(RelationType relationType)
Returns the list of sense relations of the given relation type.
|
List<IWiktionaryTranslation> |
getTranslations()
Returns the list of all translations (or
null
if no translations are encoded). |
List<IWiktionaryTranslation> |
getTranslations(ILanguage language)
Returns the list of translations into the given language.
|
String getKey()
IWiktionarySenses of the IWiktionaryEdition. Note
however that the ID of a sense may differ between different software
versions or dump dates.String getId()
IWiktionaryEntry. Use getKey()
for a globally unique identifier.int getIndex()
IWiktionaryEntry. The first sense has index 1.
Note that this is not generally the index marker used in Wiktionary:
the first sense has for example always index 1, although it might
be marked with "[2]" or "[1a]". See getMarker() for details.String getMarker()
IWiktionaryEntry getEntry()
IWiktionaryEntry that contains
this sense.IWiktionaryPage getPage()
IWiktionaryPage that contains
this sense.IWikiString getGloss()
IWikiString.List<IWiktionaryExample> getExamples()
null if no sense
examples are encoded.List<IQuotation> getQuotations()
null if no
quotations are encoded.List<IWiktionaryRelation> getRelations()
null
if no relations are encoded).List<IWiktionaryRelation> getRelations(RelationType relationType)
List<IWikiString> getReferences()
null if no referemces are encoded.List<IWiktionaryTranslation> getTranslations()
null
if no translations are encoded).List<IWiktionaryTranslation> getTranslations(ILanguage language)
Copyright © 2011-2016 Ubiquitous Knowledge Processing (UKP) Lab. All Rights Reserved.