public interface BabelSynset extends Synset<BabelSense,BabelSynsetRelation,BabelPointer,BabelGloss,BabelExample>
Modifier and Type | Method and Description |
---|---|
List<BabelCategory> |
getCategories()
Gets the categories (
BabelCategory s) of this
BabelSynset . |
List<BabelCategory> |
getCategories(it.uniroma1.lcl.jlt.util.Language... languages)
Gets the categories (
BabelCategory s) of this
BabelSynset in one or more languages. |
com.google.common.collect.HashMultimap<it.uniroma1.lcl.jlt.util.Language,String> |
getCompounds()
Deprecated.
No more supported
|
Set<String> |
getCompounds(it.uniroma1.lcl.jlt.util.Language language)
Deprecated.
No more supported
|
List<String> |
getDBPediaURIs(it.uniroma1.lcl.jlt.util.Language... languages)
Deprecated.
|
default List<BabelSynsetRelation> |
getEdges()
Deprecated.
use
Synset.getOutgoingEdges() instead. |
List<BabelSynsetRelation> |
getEdges(BabelPointer... edgeTypes)
Deprecated.
use
Synset.getOutgoingEdges(SynsetRelationType...) instead. |
List<String> |
getGeoNamesURIs(it.uniroma1.lcl.jlt.util.Language... languages)
Deprecated.
|
default BabelSynsetID |
getId()
Deprecated.
Use
getID() |
BabelSynsetID |
getID()
Gets the id of this
BabelSynset . |
List<BabelImage> |
getImages()
Gets the images (
BabelImage s) of this BabelSynset . |
default List<BabelLemma> |
getLemmas(it.uniroma1.lcl.jlt.util.Language language)
Returns the lemmas in this
BabelSynset sorted by relevance and type |
List<BabelLemma> |
getLemmas(it.uniroma1.lcl.jlt.util.Language language,
BabelLemmaType... types)
Returns the lemmas in this
BabelSynset sorted by relevance and type |
Optional<BabelImage> |
getMainImage()
Gets the best image (
BabelImage ) of this BabelSynset . |
default Optional<BabelSense> |
getMainSense()
Gets the main
BabelSense by importance to this BabelSynset for any language. |
Optional<BabelSense> |
getMainSense(it.uniroma1.lcl.jlt.util.Language language)
Gets the main
BabelSense by importance to this BabelSynset for a given language. |
Optional<BabelSense> |
getMainSensePreferrablyIn(it.uniroma1.lcl.jlt.util.Language language)
Gets the main
BabelSense by importance to this BabelSynset preferrably for a given language. |
List<BabelSense> |
getMainSenses(it.uniroma1.lcl.jlt.util.Language language)
Deprecated.
Please use
getMainSense() and BabelSenseComparator |
com.google.common.collect.LinkedHashMultimap<it.uniroma1.lcl.jlt.util.Language,String> |
getOtherForms()
Deprecated.
No more supported
|
Set<String> |
getOtherForms(it.uniroma1.lcl.jlt.util.Language language)
Deprecated.
No more supported
|
com.babelscape.util.POS |
getPOS()
Gets the part of speech of this
Synset . |
List<BabelSenseSource> |
getSenseSources()
|
BabelSynsetType |
getSynsetType()
Deprecated.
Use
Synset.getType() instead |
com.google.common.collect.Multimap<BabelSense,BabelSense> |
getTranslations()
Gets all translations between senses found in this
BabelSynset . |
Map<WordNetSynsetID,List<WordNetSynsetID>> |
getWordNetOffsetMapFrom(it.uniroma1.lcl.jlt.wordnet.WordNetVersion fromVersion)
Obtains a map from
WordNetSynsetID s of the input WordNetVersion to the current version of WordNet (3.0 as of 2016) |
Map<WordNetSynsetID,List<WordNetSynsetID>> |
getWordNetOffsetMapTo(it.uniroma1.lcl.jlt.wordnet.WordNetVersion toVersion)
Obtains a map from the current version of WordNet (3.0 as of 2016) to
WordNetSynsetID s of the input WordNetVersion |
List<WordNetSynsetID> |
getWordNetOffsets()
Gets the WordNet offsets (version 3.0) whose corresponding synsets this
BabelSynset covers, if any. |
List<String> |
getYAGOURIs()
Deprecated.
|
boolean |
isKeyConcept()
Determines if the synset is a key concept
|
String |
toString(it.uniroma1.lcl.jlt.util.Language... languages)
Returns the string representation of the
BabelSense s
of this BabelSynset only for a specific set of languages. |
getDomains, getExamples, getExamples, getExamples, getExamples, getGlosses, getGlosses, getGlosses, getGlosses, getLanguages, getMainExample, getMainExample, getMainGloss, getMainGloss, getOutgoingEdges, getOutgoingEdges, getSenses, getSenses, getSenses, getSenses, getSenses, getSenses, getType, retainSenses, retainSenses, size, toURIs, toURIs, toURIs
forEach, iterator, spliterator
BabelSynsetID getID()
BabelSynset
.getID
in interface Synset<BabelSense,BabelSynsetRelation,BabelPointer,BabelGloss,BabelExample>
BabelSynset
.@Deprecated default BabelSynsetID getId()
getID()
BabelSynset
.BabelSynset
.com.babelscape.util.POS getPOS()
Synset
Synset
.getPOS
in interface Synset<BabelSense,BabelSynsetRelation,BabelPointer,BabelGloss,BabelExample>
Synset
.List<BabelSenseSource> getSenseSources()
getSenseSources
in interface Synset<BabelSense,BabelSynsetRelation,BabelPointer,BabelGloss,BabelExample>
BabelSenseSource
s@Deprecated Set<String> getCompounds(it.uniroma1.lcl.jlt.util.Language language)
BabelSynset
for a given language.language
- the search languageBabelSynset
in a specific language.@Deprecated com.google.common.collect.HashMultimap<it.uniroma1.lcl.jlt.util.Language,String> getCompounds()
BabelSynset
.BabelSynset
.@Deprecated Set<String> getOtherForms(it.uniroma1.lcl.jlt.util.Language language)
BabelSynset
for a given language.language
- the search languageBabelSynset
in a specific language.@Deprecated com.google.common.collect.LinkedHashMultimap<it.uniroma1.lcl.jlt.util.Language,String> getOtherForms()
BabelSynset
.BabelSynset
.List<BabelImage> getImages()
BabelImage
s) of this BabelSynset
.BabelImage
s) of this
BabelSynset
.Optional<BabelImage> getMainImage()
BabelImage
) of this BabelSynset
.BabelImage
) of this
BabelSynset
. (null if doesn't exist)List<BabelCategory> getCategories()
BabelCategory
s) of this
BabelSynset
.BabelCategory
s) of this
BabelSynset
.List<BabelCategory> getCategories(it.uniroma1.lcl.jlt.util.Language... languages)
BabelCategory
s) of this
BabelSynset
in one or more languages.languages
- the search languagesBabelCategory
s) of this
BabelSynset
in the languages specified.List<WordNetSynsetID> getWordNetOffsets()
BabelSynset
covers, if any.BabelSynset
.Map<WordNetSynsetID,List<WordNetSynsetID>> getWordNetOffsetMapFrom(it.uniroma1.lcl.jlt.wordnet.WordNetVersion fromVersion)
WordNetSynsetID
s of the input WordNetVersion
to the current version of WordNet (3.0 as of 2016)fromVersion
- the source WordNet versionWordNetSynsetID
to list of WordNetSynsetID
Map<WordNetSynsetID,List<WordNetSynsetID>> getWordNetOffsetMapTo(it.uniroma1.lcl.jlt.wordnet.WordNetVersion toVersion)
WordNetSynsetID
s of the input WordNetVersion
toVersion
- the target WordNet versionWordNetSynsetID
to list of WordNetSynsetID
default List<BabelLemma> getLemmas(it.uniroma1.lcl.jlt.util.Language language)
BabelSynset
sorted by relevance and typelanguage
- the language of interestList<BabelLemma> getLemmas(it.uniroma1.lcl.jlt.util.Language language, BabelLemmaType... types)
BabelSynset
sorted by relevance and typelanguage
- the language of interesttypes
- the types for the requested synset lemmasdefault Optional<BabelSense> getMainSense()
BabelSense
by importance to this BabelSynset
for any language.Optional<BabelSense> getMainSense(it.uniroma1.lcl.jlt.util.Language language)
BabelSense
by importance to this BabelSynset
for a given language.language
- the language of the main senseOptional<BabelSense> getMainSensePreferrablyIn(it.uniroma1.lcl.jlt.util.Language language)
BabelSense
by importance to this BabelSynset
preferrably for a given language.language
- the preferred language of the main sense@Deprecated List<BabelSense> getMainSenses(it.uniroma1.lcl.jlt.util.Language language)
getMainSense()
and BabelSenseComparator
BabelSense
s sorted by importance to this
BabelSynset
for a given language.language
- the search language@Deprecated List<String> getDBPediaURIs(it.uniroma1.lcl.jlt.util.Language... languages)
Synset.toURIs(ExternalResource)
BabelSense
s in a specific language
found in this BabelSynset
.languages
- the search languagesBabelSense
s in this synset.BabelSense.getDBPediaURI()
@Deprecated List<String> getYAGOURIs()
Synset.toURIs(ExternalResource)
BabelSense
s
found in this BabelSynset
.BabelSense
s in this synset.BabelSense.getYAGOURI()
@Deprecated List<String> getGeoNamesURIs(it.uniroma1.lcl.jlt.util.Language... languages)
Synset.toURIs(ExternalResource)
BabelSense
s in a specific language
found in this BabelSynset
.languages
- the search languagesBabelSense
s in this synset.BabelSense.getGeoNamesURI()
String toString(it.uniroma1.lcl.jlt.util.Language... languages)
BabelSense
s
of this BabelSynset
only for a specific set of languages.languages
- the languages to use for the string representation@Deprecated default List<BabelSynsetRelation> getEdges()
Synset.getOutgoingEdges()
instead.BabelSynset
edges incident on this
BabelSynset
.BabelSynsetRelation
s incident on this
BabelSynset
@Deprecated List<BabelSynsetRelation> getEdges(BabelPointer... edgeTypes)
Synset.getOutgoingEdges(SynsetRelationType...)
instead.edgeTypes
- the types of the edges connecting this synset to other synsetsBabelSynsetRelation
s tagged with the BabelPointer
s given as inputBabelSynsetType getSynsetType()
Synset.getType()
insteadBabelSynset
, namely whether it's
an entity, a concept, etc.BabelSynset
.com.google.common.collect.Multimap<BabelSense,BabelSense> getTranslations()
BabelSynset
.BabelSense
in this Babel
synset with its translations.boolean isKeyConcept()
Copyright © 2016–2018. All rights reserved.