S
- the Sense
typeE
- the SynsetRelation
type for relations between synsetsG
- the Gloss
(i.e. definition) typeX
- the Example
typepublic interface Synset<S extends Sense,E extends SynsetRelation,T extends SynsetRelationType,G extends Gloss,X extends Example> extends Iterable<S>, Taggable
Modifier and Type | Method and Description |
---|---|
void |
addStringTag(StringTag tag) |
HashMap<Domain,Double> |
getDomains()
|
List<X> |
getExamples()
|
default List<X> |
getExamples(it.uniroma1.lcl.jlt.util.Language lang)
|
List<X> |
getExamples(it.uniroma1.lcl.jlt.util.Language lang,
SenseSource source)
|
default List<X> |
getExamples(SenseSource source)
|
List<G> |
getGlosses()
|
default List<G> |
getGlosses(it.uniroma1.lcl.jlt.util.Language lang)
|
List<G> |
getGlosses(it.uniroma1.lcl.jlt.util.Language lang,
SenseSource source)
|
default List<G> |
getGlosses(SenseSource source)
|
SynsetID |
getID()
Gets the ID of this
Synset . |
default Set<it.uniroma1.lcl.jlt.util.Language> |
getLanguages()
Gets the set of languages used in this
Synset . |
default Optional<X> |
getMainExample()
|
Optional<X> |
getMainExample(it.uniroma1.lcl.jlt.util.Language lang)
|
default Optional<G> |
getMainGloss()
|
Optional<G> |
getMainGloss(it.uniroma1.lcl.jlt.util.Language lang)
|
default List<E> |
getOutgoingEdges()
|
List<E> |
getOutgoingEdges(T... edgeTypes)
Collects all
SynsetRelation edges of the SynsetRelationType s given as input
for this SynsetRelation . |
it.uniroma1.lcl.jlt.util.POS |
getPOS()
Gets the part of speech of this
Synset . |
List<S> |
getSenses()
Get the senses contained in this
Synset |
List<S> |
getSenses(it.uniroma1.lcl.jlt.util.Language language)
Get the senses contained in this
Synset for an
input language |
List<S> |
getSenses(it.uniroma1.lcl.jlt.util.Language language,
SenseSource source)
Get the senses contained in this
Synset for an
input language and sense source |
List<S> |
getSenses(SenseSource source)
Get the senses contained in this
Synset for an
input sense source |
List<S> |
getSenses(String lemma,
it.uniroma1.lcl.jlt.util.Language language,
boolean normalized,
SenseSource... sources)
Gets the
Sense s for the input word in the given language |
default List<S> |
getSenses(String lemma,
it.uniroma1.lcl.jlt.util.Language language,
SenseSource... sources)
Gets the
Sense s for the input word in the given language |
List<? extends SenseSource> |
getSenseSources()
Collects all
SenseSource s contained
for this Synset . |
SynsetType |
getType()
Gets the type of this
Synset , namely whether it's
an entity, a concept, etc. |
default boolean |
retainSenses(List<Predicate<? super S>> predicates)
Retains all the senses which pass the predicate tests
|
boolean |
retainSenses(Predicate<? super S> predicate)
Retains all the senses which pass the predicate test
|
int |
size()
Returns the number of senses in the synset
|
default List<String> |
toURIs(ExternalResource resource)
Returns the URIs of the various senses in the synset for a given
ExternalResource |
default List<String> |
toURIs(ExternalResource resource,
Collection<it.uniroma1.lcl.jlt.util.Language> languages)
Returns the URIs of the various senses in the given languages in the synset for a given
ExternalResource |
default List<String> |
toURIs(ExternalResource resource,
it.uniroma1.lcl.jlt.util.Language... languages)
Returns the URIs of the various senses in the given languages in the synset for a given
ExternalResource |
forEach, iterator, spliterator
getTags, getTags, isTaggedAs, isTaggedAs, isTaggedAs
it.uniroma1.lcl.jlt.util.POS getPOS()
Synset
.Synset
.default Set<it.uniroma1.lcl.jlt.util.Language> getLanguages()
Synset
.Synset
.List<S> getSenses()
Synset
List<S> getSenses(it.uniroma1.lcl.jlt.util.Language language)
Synset
for an
input languagelanguage
- the language used to searchList<S> getSenses(SenseSource source)
Synset
for an
input sense sourcesource
- the source of the senses to be retrievedList<S> getSenses(it.uniroma1.lcl.jlt.util.Language language, SenseSource source)
Synset
for an
input language and sense sourcelanguage
- the language used to searchsource
- the source of the senses to be retrieveddefault List<S> getSenses(String lemma, it.uniroma1.lcl.jlt.util.Language language, SenseSource... sources)
Sense
s for the input word in the given languagelemma
- lemma of the senselanguage
- language of the sensesources
- possible sources for the senseSense
s for the input word in the given languageList<S> getSenses(String lemma, it.uniroma1.lcl.jlt.util.Language language, boolean normalized, SenseSource... sources)
Sense
s for the input word in the given languagelemma
- lemma of the senselanguage
- language of the sensenormalized
- use normalization?sources
- possible sources for the senseSense
s for the input word in the given languageboolean retainSenses(Predicate<? super S> predicate)
predicate
- the predicate used to decide whether to keep each sense in the synsetdefault boolean retainSenses(List<Predicate<? super S>> predicates)
predicates
- the predicates used to decide whether to keep each sense in the synsetOptional<G> getMainGloss(it.uniroma1.lcl.jlt.util.Language lang)
lang
- the gloss languageGloss
for the input languageList<G> getGlosses(it.uniroma1.lcl.jlt.util.Language lang, SenseSource source)
lang
- the gloss languagesource
- the gloss sourceSynset
for the input sourcedefault List<G> getGlosses(SenseSource source)
source
- the gloss sourceSynset
for the input sourcedefault List<G> getGlosses(it.uniroma1.lcl.jlt.util.Language lang)
lang
- the gloss languageSynset
for the input languageOptional<X> getMainExample(it.uniroma1.lcl.jlt.util.Language lang)
lang
- the example languageExample
for the input languagedefault List<X> getExamples(it.uniroma1.lcl.jlt.util.Language lang)
lang
- the example languageSynset
for the input languagedefault List<X> getExamples(SenseSource source)
source
- the example sourceSynset
for the input language and sourceList<X> getExamples(it.uniroma1.lcl.jlt.util.Language lang, SenseSource source)
lang
- the example languagesource
- the example sourceSynset
for the input language and sourceList<? extends SenseSource> getSenseSources()
SenseSource
s contained
for this Synset
.SenseSource
sdefault List<E> getOutgoingEdges()
SynsetRelation
s incident on this
Synset
List<E> getOutgoingEdges(T... edgeTypes)
SynsetRelation
edges of the SynsetRelationType
s given as input
for this SynsetRelation
.edgeTypes
- the types of the edges connecting this synset to other synsetsSynsetRelation
s tagged with the SynsetRelationType
s given as inputSynsetType getType()
Synset
, namely whether it's
an entity, a concept, etc.Synset
.int size()
default List<String> toURIs(ExternalResource resource)
ExternalResource
resource
- the external resourcedefault List<String> toURIs(ExternalResource resource, it.uniroma1.lcl.jlt.util.Language... languages)
ExternalResource
resource
- the external resourcelanguages
- the languages of interestdefault List<String> toURIs(ExternalResource resource, Collection<it.uniroma1.lcl.jlt.util.Language> languages)
ExternalResource
resource
- the external resourcelanguages
- the languages of interestvoid addStringTag(StringTag tag)
Copyright © 2016–2021. All rights reserved.