public abstract class BabelNet extends Object implements LKB<BabelSynset,BabelSense,BabelSynsetRelation,BabelPointer,BabelGloss,BabelExample,BabelNetQuery>
| Modifier and Type | Field and Description |
|---|---|
protected static it.uniroma1.lcl.babelnet.BabelNetIndexManager |
indexManager
Lucene index manager
|
| Modifier | Constructor and Description |
|---|---|
protected |
BabelNet()
BabelNet default constructor
|
| Modifier and Type | Method and Description |
|---|---|
protected it.uniroma1.lcl.babelnet.BabelNetIndexManager |
getIndexManager()
Returns the
BabelNetIndexManager |
static BabelNet |
getInstance()
Returns the singleton instance of the
BabelNet class |
protected abstract List<BabelSynsetRelation> |
getOutgoingEdges(BabelSynsetID id)
Returns the outgoing edges from a given
BabelSynsetID |
protected abstract List<BabelSynsetRelation> |
getOutgoingEdges(BabelSynsetID id,
Collection<it.uniroma1.lcl.jlt.util.Language> searchLangs)
Deprecated.
|
List<BabelSense> |
getSenses(String word)
Deprecated.
|
List<BabelSense> |
getSenses(String word,
it.uniroma1.lcl.jlt.util.Language language)
Deprecated.
|
List<BabelSense> |
getSenses(String word,
it.uniroma1.lcl.jlt.util.Language language,
boolean normalized)
Deprecated.
|
List<BabelSense> |
getSenses(String word,
it.uniroma1.lcl.jlt.util.Language searchLanguage,
Collection<it.uniroma1.lcl.jlt.util.Language> targetLanguages)
Deprecated.
|
List<BabelSense> |
getSenses(String word,
it.uniroma1.lcl.jlt.util.Language searchLanguage,
Collection<it.uniroma1.lcl.jlt.util.Language> targetLanguages,
boolean normalized)
Deprecated.
|
List<BabelSense> |
getSenses(String word,
it.uniroma1.lcl.jlt.util.Language language,
it.uniroma1.lcl.jlt.util.POS pos)
Deprecated.
|
List<BabelSense> |
getSenses(String word,
it.uniroma1.lcl.jlt.util.Language language,
it.uniroma1.lcl.jlt.util.POS pos,
BabelSenseSource... allowedSources)
Deprecated.
|
List<BabelSense> |
getSenses(String word,
it.uniroma1.lcl.jlt.util.Language language,
it.uniroma1.lcl.jlt.util.POS pos,
boolean normalized,
BabelSenseSource... allowedSources)
Deprecated.
|
List<BabelSense> |
getSenses(String word,
it.uniroma1.lcl.jlt.util.Language searchLanguage,
it.uniroma1.lcl.jlt.util.POS pos,
Collection<it.uniroma1.lcl.jlt.util.Language> targetLanguages)
Deprecated.
|
List<BabelSense> |
getSenses(String word,
it.uniroma1.lcl.jlt.util.Language language,
it.uniroma1.lcl.jlt.util.POS pos,
Collection<it.uniroma1.lcl.jlt.util.Language> targetLangs,
BabelSenseSource... allowedSources)
Deprecated.
|
List<BabelSense> |
getSenses(String word,
it.uniroma1.lcl.jlt.util.Language searchLanguage,
it.uniroma1.lcl.jlt.util.POS pos,
Collection<it.uniroma1.lcl.jlt.util.Language> targetLanguages,
boolean normalized)
Deprecated.
|
List<BabelSense> |
getSenses(String word,
it.uniroma1.lcl.jlt.util.Language sourceLanguage,
it.uniroma1.lcl.jlt.util.POS pos,
Collection<it.uniroma1.lcl.jlt.util.Language> targetLanguages,
boolean normalized,
BabelSenseSource... allowedSources)
Deprecated.
|
List<BabelSense> |
getSensesContaining(String word)
Returns the senses of synsets containing the word in any language.
|
List<BabelSense> |
getSensesContaining(String word,
it.uniroma1.lcl.jlt.util.Language language)
Returns the senses of synsets containing the word in the given language.
|
List<BabelSense> |
getSensesContaining(String word,
it.uniroma1.lcl.jlt.util.Language language,
it.uniroma1.lcl.jlt.util.POS pos)
Returns the senses of synsets containing the word with the given constraints.
|
List<BabelSense> |
getSensesFrom(String word)
Returns the senses of synsets containing the word in any language.
|
List<BabelSense> |
getSensesFrom(String word,
it.uniroma1.lcl.jlt.util.Language language)
Returns the senses of synsets containing the word in the given language.
|
List<BabelSense> |
getSensesFrom(String word,
it.uniroma1.lcl.jlt.util.Language language,
it.uniroma1.lcl.jlt.util.POS pos)
Returns the senses of synsets containing the word with the given constraints.
|
BabelSynset |
getSynset(Collection<it.uniroma1.lcl.jlt.util.Language> targetLangs,
ResourceID resourceID)
Deprecated.
|
BabelSynset |
getSynset(ResourceID resourceID)
Given a
ResourceID, returns the synset identified by the ResourceID in input. |
Iterator<BabelSynset> |
getSynsetIterator()
Deprecated.
Please use
LKB.iterator(). |
List<BabelSynset> |
getSynsets(Collection<it.uniroma1.lcl.jlt.util.Language> targetLangs,
ResourceID... resourceIds)
Deprecated.
|
List<BabelSynset> |
getSynsets(ResourceID... resourceIds)
Given a list of
ResourceIDs, returns the synsets identified by the ResourceIDs in input. |
List<BabelSynset> |
getSynsets(String word)
Given a word, returns the synsets for the word.
|
List<BabelSynset> |
getSynsets(String word,
boolean normalized)
Deprecated.
|
List<BabelSynset> |
getSynsets(String word,
Collection<it.uniroma1.lcl.jlt.util.Language> searchLangs)
Given a word and a collection of languages, returns the senses for the word available in the given sense sources.
|
List<BabelSynset> |
getSynsets(String word,
Collection<it.uniroma1.lcl.jlt.util.Language> langs,
boolean normalized)
Deprecated.
|
List<BabelSynset> |
getSynsets(String word,
Collection<it.uniroma1.lcl.jlt.util.Language> langs,
Collection<it.uniroma1.lcl.jlt.util.Language> targetLangs)
Deprecated.
|
List<BabelSynset> |
getSynsets(String word,
Collection<it.uniroma1.lcl.jlt.util.Language> langs,
Collection<it.uniroma1.lcl.jlt.util.Language> targetLangs,
boolean normalized)
Deprecated.
|
List<BabelSynset> |
getSynsets(String word,
Collection<it.uniroma1.lcl.jlt.util.Language> searchLangs,
it.uniroma1.lcl.jlt.util.POS pos)
Given a word and a collection of languages, returns the synsets for the word available in the given sense sources.
|
List<BabelSynset> |
getSynsets(String word,
Collection<it.uniroma1.lcl.jlt.util.Language> langs,
it.uniroma1.lcl.jlt.util.POS pos,
BabelSenseSource... allowedSources)
Deprecated.
|
List<BabelSynset> |
getSynsets(String word,
Collection<it.uniroma1.lcl.jlt.util.Language> langs,
it.uniroma1.lcl.jlt.util.POS pos,
boolean normalized)
Deprecated.
|
List<BabelSynset> |
getSynsets(String word,
Collection<it.uniroma1.lcl.jlt.util.Language> langs,
it.uniroma1.lcl.jlt.util.POS pos,
boolean normalized,
BabelSenseSource... allowedSources)
Deprecated.
|
List<BabelSynset> |
getSynsets(String word,
Collection<it.uniroma1.lcl.jlt.util.Language> langs,
it.uniroma1.lcl.jlt.util.POS pos,
Collection<it.uniroma1.lcl.jlt.util.Language> targetLangs)
Deprecated.
|
List<BabelSynset> |
getSynsets(String word,
Collection<it.uniroma1.lcl.jlt.util.Language> langs,
it.uniroma1.lcl.jlt.util.POS pos,
Collection<it.uniroma1.lcl.jlt.util.Language> targetLangs,
BabelSenseSource... allowedSources)
Deprecated.
|
List<BabelSynset> |
getSynsets(String word,
Collection<it.uniroma1.lcl.jlt.util.Language> langs,
it.uniroma1.lcl.jlt.util.POS pos,
Collection<it.uniroma1.lcl.jlt.util.Language> targetLangs,
boolean normalized)
Deprecated.
|
List<BabelSynset> |
getSynsets(String word,
Collection<it.uniroma1.lcl.jlt.util.Language> langs,
it.uniroma1.lcl.jlt.util.POS pos,
Collection<it.uniroma1.lcl.jlt.util.Language> targetLangs,
boolean normalized,
BabelSenseSource... allowedSources)
Deprecated.
|
List<BabelSynset> |
getSynsets(String word,
it.uniroma1.lcl.jlt.util.Language language)
Given a word in a certain language, returns the synsets for the word.
|
List<BabelSynset> |
getSynsets(String word,
it.uniroma1.lcl.jlt.util.Language language,
boolean normalized)
Deprecated.
|
List<BabelSynset> |
getSynsets(String word,
it.uniroma1.lcl.jlt.util.Language language,
Collection<it.uniroma1.lcl.jlt.util.Language> targetLangs)
Deprecated.
|
List<BabelSynset> |
getSynsets(String word,
it.uniroma1.lcl.jlt.util.Language language,
Collection<it.uniroma1.lcl.jlt.util.Language> targetLangs,
boolean normalized)
Deprecated.
|
List<BabelSynset> |
getSynsets(String word,
it.uniroma1.lcl.jlt.util.Language language,
it.uniroma1.lcl.jlt.util.POS pos)
Given a word in a certain language, returns the synsets for the word.
|
List<BabelSynset> |
getSynsets(String word,
it.uniroma1.lcl.jlt.util.Language language,
it.uniroma1.lcl.jlt.util.POS pos,
BabelSenseSource... allowedSources)
Deprecated.
|
List<BabelSynset> |
getSynsets(String word,
it.uniroma1.lcl.jlt.util.Language language,
it.uniroma1.lcl.jlt.util.POS pos,
boolean normalized)
Deprecated.
|
List<BabelSynset> |
getSynsets(String word,
it.uniroma1.lcl.jlt.util.Language language,
it.uniroma1.lcl.jlt.util.POS pos,
boolean normalized,
BabelSenseSource... allowedSources)
Deprecated.
|
List<BabelSynset> |
getSynsets(String word,
it.uniroma1.lcl.jlt.util.Language language,
it.uniroma1.lcl.jlt.util.POS pos,
Collection<it.uniroma1.lcl.jlt.util.Language> targetLangs)
Deprecated.
|
List<BabelSynset> |
getSynsets(String word,
it.uniroma1.lcl.jlt.util.Language language,
it.uniroma1.lcl.jlt.util.POS pos,
Collection<it.uniroma1.lcl.jlt.util.Language> targetLangs,
BabelSenseSource... allowedSources)
Deprecated.
|
List<BabelSynset> |
getSynsets(String word,
it.uniroma1.lcl.jlt.util.Language language,
it.uniroma1.lcl.jlt.util.POS pos,
Collection<it.uniroma1.lcl.jlt.util.Language> targetLangs,
boolean normalized)
Deprecated.
|
List<BabelSynset> |
getSynsets(String word,
it.uniroma1.lcl.jlt.util.Language language,
it.uniroma1.lcl.jlt.util.POS pos,
Collection<it.uniroma1.lcl.jlt.util.Language> targetLangs,
boolean normalized,
BabelSenseSource... allowedSources)
Deprecated.
|
Stream<BabelSynset> |
getWordNetStream()
Returns the full stream of the WordNet
BabelSynsets |
Stream<it.uniroma1.lcl.jlt.ling.Word> |
lexiconStream()
Returns the full stream of
BabelSynsets |
Stream<String> |
offsetStream()
Returns the full stream of string offsets of
BabelSynsets |
Stream<BabelSense> |
senseStream()
Returns the full stream of
BabelSenses |
Stream<BabelSense> |
senseStream(BabelSenseSource source)
Returns the full stream of
BabelSenses belonging to a given BabelSenseSource |
Stream<BabelSense> |
senseStream(it.uniroma1.lcl.jlt.util.Language language)
Returns the full stream of
BabelSenses in a given Language |
Stream<BabelSense> |
senseStream(it.uniroma1.lcl.jlt.util.Language language,
BabelSenseSource source)
Returns the full stream of
BabelSenses with the given constraints |
Stream<BabelSynset> |
stream()
Returns the full stream of
BabelSynsets |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetLexiconIterator, getOffsetIterator, getSensesContaining, getSensesFrom, getSynsets, getVersion, getWordNetSynsetIterator, iterator, toSynsets, toSynsetsforEach, spliteratorprotected static it.uniroma1.lcl.babelnet.BabelNetIndexManager indexManager
public static BabelNet getInstance()
BabelNet classBabelNet@Deprecated public List<BabelSense> getSenses(String word, it.uniroma1.lcl.jlt.util.Language language, boolean normalized)
LKB.getSensesFrom(it.uniroma1.lcl.kb.LKBQuery)word - the word whose senses are to be retrieved.language - the language of the input word.normalized - enables normalized search@Deprecated public List<BabelSense> getSenses(String word, it.uniroma1.lcl.jlt.util.Language searchLanguage, Collection<it.uniroma1.lcl.jlt.util.Language> targetLanguages)
LKB.getSensesFrom(it.uniroma1.lcl.kb.LKBQuery)word - the word whose senses are to be retrieved.searchLanguage - the language of the input word.targetLanguages - the languages in which the data are to be retrieved.@Deprecated public List<BabelSense> getSenses(String word, it.uniroma1.lcl.jlt.util.Language searchLanguage, Collection<it.uniroma1.lcl.jlt.util.Language> targetLanguages, boolean normalized)
LKB.getSensesFrom(it.uniroma1.lcl.kb.LKBQuery)word - the word whose senses are to be retrieved.searchLanguage - the language of the input word.targetLanguages - the languages in which the data are to be retrieved.normalized - enables normalized search@Deprecated public List<BabelSense> getSenses(String word, it.uniroma1.lcl.jlt.util.Language searchLanguage, it.uniroma1.lcl.jlt.util.POS pos, Collection<it.uniroma1.lcl.jlt.util.Language> targetLanguages)
LKB.getSensesFrom(it.uniroma1.lcl.kb.LKBQuery)word - the word whose senses are to be retrieved.searchLanguage - the language of the input word.pos - the PoS of the word.targetLanguages - the languages in which the data are to be retrieved.@Deprecated public List<BabelSense> getSenses(String word, it.uniroma1.lcl.jlt.util.Language searchLanguage, it.uniroma1.lcl.jlt.util.POS pos, Collection<it.uniroma1.lcl.jlt.util.Language> targetLanguages, boolean normalized)
LKB.getSensesFrom(it.uniroma1.lcl.kb.LKBQuery)word - the word whose senses are to be retrieved.searchLanguage - the language of the input word.pos - the PoS of the word.targetLanguages - the languages in which the data are to be retrieved.normalized - enables normalized search@Deprecated public List<BabelSense> getSenses(String word, it.uniroma1.lcl.jlt.util.Language language, it.uniroma1.lcl.jlt.util.POS pos, BabelSenseSource... allowedSources)
LKB.getSensesFrom(it.uniroma1.lcl.kb.LKBQuery)word - the word whose senses are to be retrieved.language - the language of the input word.pos - the PoS of the word.allowedSources - the BabelSenseSources that can be used to look up
the possible senses of the input word.@Deprecated public List<BabelSense> getSenses(String word, it.uniroma1.lcl.jlt.util.Language language, it.uniroma1.lcl.jlt.util.POS pos, boolean normalized, BabelSenseSource... allowedSources)
LKB.getSensesFrom(it.uniroma1.lcl.kb.LKBQuery)word - the word whose senses are to be retrieved.language - the language of the input word.pos - the PoS of the word.normalized - enables normalized searchallowedSources - the BabelSenseSources that can be used to look up
the possible senses of the input word.@Deprecated public List<BabelSense> getSenses(String word, it.uniroma1.lcl.jlt.util.Language language, it.uniroma1.lcl.jlt.util.POS pos, Collection<it.uniroma1.lcl.jlt.util.Language> targetLangs, BabelSenseSource... allowedSources)
LKB.getSensesFrom(it.uniroma1.lcl.kb.LKBQuery)word - the word whose senses are to be retrieved.language - the language of the input word.pos - the PoS of the word.targetLangs - the languages in which the data are to be retrieved.allowedSources - the BabelSenseSources that can be used to look up
the possible senses of the input word.@Deprecated public List<BabelSense> getSenses(String word, it.uniroma1.lcl.jlt.util.Language sourceLanguage, it.uniroma1.lcl.jlt.util.POS pos, Collection<it.uniroma1.lcl.jlt.util.Language> targetLanguages, boolean normalized, BabelSenseSource... allowedSources)
LKB.getSensesFrom(it.uniroma1.lcl.kb.LKBQuery)word - the word whose senses are to be retrieved.sourceLanguage - the language of the input word.pos - the PoS of the word.targetLanguages - the languages in which the data are to be retrieved.normalized - enables normalized searchallowedSources - the BabelSenseSources that can be used to look up
the possible senses of the input word.public List<BabelSense> getSensesFrom(String word)
LKBgetSensesFrom in interface LKB<BabelSynset,BabelSense,BabelSynsetRelation,BabelPointer,BabelGloss,BabelExample,BabelNetQuery>word - the word whose senses are to be retrieved.public List<BabelSense> getSensesFrom(String word, it.uniroma1.lcl.jlt.util.Language language)
LKBgetSensesFrom in interface LKB<BabelSynset,BabelSense,BabelSynsetRelation,BabelPointer,BabelGloss,BabelExample,BabelNetQuery>word - the word whose senses are to be retrieved.language - the language of the input word.public List<BabelSense> getSensesFrom(String word, it.uniroma1.lcl.jlt.util.Language language, it.uniroma1.lcl.jlt.util.POS pos)
LKBgetSensesFrom in interface LKB<BabelSynset,BabelSense,BabelSynsetRelation,BabelPointer,BabelGloss,BabelExample,BabelNetQuery>word - the word whose senses are to be retrieved.language - the language of the input word.pos - the PoS of the word.public List<BabelSense> getSensesContaining(String word)
LKBgetSensesContaining in interface LKB<BabelSynset,BabelSense,BabelSynsetRelation,BabelPointer,BabelGloss,BabelExample,BabelNetQuery>word - the word whose senses are to be retrieved.public List<BabelSense> getSensesContaining(String word, it.uniroma1.lcl.jlt.util.Language language)
LKBgetSensesContaining in interface LKB<BabelSynset,BabelSense,BabelSynsetRelation,BabelPointer,BabelGloss,BabelExample,BabelNetQuery>word - the word whose senses are to be retrieved.language - the language of the input word.public List<BabelSense> getSensesContaining(String word, it.uniroma1.lcl.jlt.util.Language language, it.uniroma1.lcl.jlt.util.POS pos)
LKBgetSensesContaining in interface LKB<BabelSynset,BabelSense,BabelSynsetRelation,BabelPointer,BabelGloss,BabelExample,BabelNetQuery>word - the word whose senses are to be retrieved.language - the language of the input word.pos - the PoS of the word.@Deprecated public List<BabelSense> getSenses(String word)
LKB.getSensesFrom(String)word - the word whose senses are to be retrieved.@Deprecated public List<BabelSense> getSenses(String word, it.uniroma1.lcl.jlt.util.Language language)
getSensesFrom(String, Language)word - the word whose senses are to be retrieved.language - the language of the input word.@Deprecated public List<BabelSense> getSenses(String word, it.uniroma1.lcl.jlt.util.Language language, it.uniroma1.lcl.jlt.util.POS pos)
getSensesFrom(String, Language, POS)word - the word whose senses are to be retrieved.language - the language of the input word.pos - the PoS of the word.public List<BabelSynset> getSynsets(String word)
LKBgetSynsets in interface LKB<BabelSynset,BabelSense,BabelSynsetRelation,BabelPointer,BabelGloss,BabelExample,BabelNetQuery>word - the word whose synsets are to be retrieved.public List<BabelSynset> getSynsets(String word, it.uniroma1.lcl.jlt.util.Language language)
LKBgetSynsets in interface LKB<BabelSynset,BabelSense,BabelSynsetRelation,BabelPointer,BabelGloss,BabelExample,BabelNetQuery>word - the word whose synsets are to be retrieved.language - the language of the input word.public List<BabelSynset> getSynsets(String word, it.uniroma1.lcl.jlt.util.Language language, it.uniroma1.lcl.jlt.util.POS pos)
LKBgetSynsets in interface LKB<BabelSynset,BabelSense,BabelSynsetRelation,BabelPointer,BabelGloss,BabelExample,BabelNetQuery>word - the word whose synsets are to be retrieved.language - the language of the input word.pos - the PoS of the word.public List<BabelSynset> getSynsets(String word, Collection<it.uniroma1.lcl.jlt.util.Language> searchLangs)
LKBgetSynsets in interface LKB<BabelSynset,BabelSense,BabelSynsetRelation,BabelPointer,BabelGloss,BabelExample,BabelNetQuery>word - the word whose senses are to be retrieved.searchLangs - a collection of languages that can be used to look up the input word.public List<BabelSynset> getSynsets(String word, Collection<it.uniroma1.lcl.jlt.util.Language> searchLangs, it.uniroma1.lcl.jlt.util.POS pos)
LKBgetSynsets in interface LKB<BabelSynset,BabelSense,BabelSynsetRelation,BabelPointer,BabelGloss,BabelExample,BabelNetQuery>word - the word whose synsets are to be retrieved.searchLangs - a collection of languages that can be used to look up the input word.pos - the PoS of the word.public List<BabelSynset> getSynsets(ResourceID... resourceIds)
LKBResourceIDs, returns the synsets identified by the ResourceIDs in input.getSynsets in interface LKB<BabelSynset,BabelSense,BabelSynsetRelation,BabelPointer,BabelGloss,BabelExample,BabelNetQuery>resourceIds - the resource identifiersResourceIDspublic BabelSynset getSynset(ResourceID resourceID)
LKBResourceID, returns the synset identified by the ResourceID in input.
Note: It is possible that this method gives a warning if the ResourceID returns more than one synset. In that case
the best (see InternalBabelSynsetComparator) sense will be returned.
getSynset in interface LKB<BabelSynset,BabelSense,BabelSynsetRelation,BabelPointer,BabelGloss,BabelExample,BabelNetQuery>resourceID - the resource identifierResourceID
Some examples that can be used follow, assuming:
BabelNet bn = BabelNet.getInstance();
Retrieving BabelSynset from a Wikipedia page title:
BabelSynset synset = bn.getSynset(new WikipediaID("BabelNet", Language.EN, BabelPOS.NOUN));
Retrieving BabelSynset from a Wikiquote page title:
BabelSynset synset = bn.getSynset(new WikiquoteID("Home", Language.EN, BabelPOS.NOUN));
Retrieving BabelSynset from a WordNet id:
BabelSynset synset = bn.getSynset(new WordNetSynsetID("wn:03544360n"));
Retrieving BabelSynset from a Wikidata page id:
BabelSynset synset = bn.getSynset(new WikidataID("Q4837690"));
Retrieving BabelSynset from a OmegaWiki page id:
BabelSynset synset = bn.getSynset(new OmegaWikiID("1499705"));@Deprecated public List<BabelSynset> getSynsets(String word, boolean normalized)
LKB.getSynsets(it.uniroma1.lcl.kb.LKBQuery)word - the word whose synsets are to be retrieved.normalized - enables normalized search@Deprecated public List<BabelSynset> getSynsets(String word, it.uniroma1.lcl.jlt.util.Language language, boolean normalized)
LKB.getSynsets(it.uniroma1.lcl.kb.LKBQuery)word - the word whose synsets are to be retrieved.language - the language of the input word.normalized - enables normalized search@Deprecated public List<BabelSynset> getSynsets(String word, it.uniroma1.lcl.jlt.util.Language language, Collection<it.uniroma1.lcl.jlt.util.Language> targetLangs)
LKB.getSynsets(it.uniroma1.lcl.kb.LKBQuery)word - the word whose synsets are to be retrieved.language - the language of the input word.targetLangs - the languages in which the data are to be retrieved.@Deprecated public List<BabelSynset> getSynsets(String word, it.uniroma1.lcl.jlt.util.Language language, Collection<it.uniroma1.lcl.jlt.util.Language> targetLangs, boolean normalized)
LKB.getSynsets(it.uniroma1.lcl.kb.LKBQuery)word - the word whose synsets are to be retrieved.language - the language of the input word.targetLangs - the languages in which the data are to be retrieved.normalized - enables normalized search@Deprecated public List<BabelSynset> getSynsets(String word, Collection<it.uniroma1.lcl.jlt.util.Language> langs, boolean normalized)
LKB.getSynsets(it.uniroma1.lcl.kb.LKBQuery)word - the word whose synsets are to be retrieved.langs - a collection of languages that can be used to look up the input word.normalized - enables normalized search@Deprecated public List<BabelSynset> getSynsets(String word, Collection<it.uniroma1.lcl.jlt.util.Language> langs, Collection<it.uniroma1.lcl.jlt.util.Language> targetLangs)
LKB.getSynsets(it.uniroma1.lcl.kb.LKBQuery)word - the word whose synsets are to be retrieved.langs - a collection of languages that can be used to look up the input word.targetLangs - the languages in which the data are to be retrieved.@Deprecated public List<BabelSynset> getSynsets(String word, Collection<it.uniroma1.lcl.jlt.util.Language> langs, Collection<it.uniroma1.lcl.jlt.util.Language> targetLangs, boolean normalized)
LKB.getSynsets(it.uniroma1.lcl.kb.LKBQuery)word - the word whose synsets are to be retrieved.langs - a collection of languages that can be used to look up the input word.targetLangs - the languages in which the data are to be retrieved.normalized - enables normalized search@Deprecated public List<BabelSynset> getSynsets(String word, it.uniroma1.lcl.jlt.util.Language language, it.uniroma1.lcl.jlt.util.POS pos, boolean normalized)
LKB.getSynsets(it.uniroma1.lcl.kb.LKBQuery)word - the word whose synsets are to be retrieved.language - the language of the input word.pos - the PoS of the word.normalized - enables normalized search@Deprecated public List<BabelSynset> getSynsets(String word, it.uniroma1.lcl.jlt.util.Language language, it.uniroma1.lcl.jlt.util.POS pos, Collection<it.uniroma1.lcl.jlt.util.Language> targetLangs)
LKB.getSynsets(it.uniroma1.lcl.kb.LKBQuery)word - the word whose synsets are to be retrieved.language - the language of the input word.pos - the PoS of the word.targetLangs - the languages in which the data are to be retrieved.public List<BabelSynset> getSynsets(String word, it.uniroma1.lcl.jlt.util.Language language, it.uniroma1.lcl.jlt.util.POS pos, Collection<it.uniroma1.lcl.jlt.util.Language> targetLangs, boolean normalized)
LKB.getSynsets(it.uniroma1.lcl.kb.LKBQuery)word - the word whose synsets are to be retrieved.language - the language of the input word.pos - the PoS of the word.targetLangs - the languages in which the data are to be retrieved.normalized - enables normalized search@Deprecated public List<BabelSynset> getSynsets(String word, Collection<it.uniroma1.lcl.jlt.util.Language> langs, it.uniroma1.lcl.jlt.util.POS pos, boolean normalized)
LKB.getSynsets(it.uniroma1.lcl.kb.LKBQuery)word - the word whose synsets are to be retrieved.langs - a collection of languages that can be used to look up the input word.pos - the PoS of the word.normalized - enables normalized search@Deprecated public List<BabelSynset> getSynsets(String word, Collection<it.uniroma1.lcl.jlt.util.Language> langs, it.uniroma1.lcl.jlt.util.POS pos, Collection<it.uniroma1.lcl.jlt.util.Language> targetLangs)
LKB.getSynsets(it.uniroma1.lcl.kb.LKBQuery)word - the word whose synsets are to be retrieved.langs - a collection of languages that can be used to look up the input word.pos - the PoS of the word.targetLangs - the languages in which the data are to be retrieved.@Deprecated public List<BabelSynset> getSynsets(String word, Collection<it.uniroma1.lcl.jlt.util.Language> langs, it.uniroma1.lcl.jlt.util.POS pos, Collection<it.uniroma1.lcl.jlt.util.Language> targetLangs, boolean normalized)
LKB.getSynsets(it.uniroma1.lcl.kb.LKBQuery)word - the word whose synsets are to be retrieved.langs - a collection of languages that can be used to look up the input word.pos - the PoS of the word.targetLangs - the languages in which the data are to be retrieved.normalized - enables normalized search@Deprecated public List<BabelSynset> getSynsets(String word, it.uniroma1.lcl.jlt.util.Language language, it.uniroma1.lcl.jlt.util.POS pos, BabelSenseSource... allowedSources)
LKB.getSynsets(it.uniroma1.lcl.kb.LKBQuery)word - the word whose synsets are to be retrieved.language - the language of the input word.pos - the PoS of the word.allowedSources - the BabelSenseSources that can be used to look up
the possible senses of the input word.@Deprecated public List<BabelSynset> getSynsets(String word, it.uniroma1.lcl.jlt.util.Language language, it.uniroma1.lcl.jlt.util.POS pos, boolean normalized, BabelSenseSource... allowedSources)
LKB.getSynsets(it.uniroma1.lcl.kb.LKBQuery)word - the word whose synsets are to be retrieved.language - the language of the input word.pos - the PoS of the word.normalized - enables normalized searchallowedSources - the BabelSenseSources that can be used to look up
the possible senses of the input word.@Deprecated public List<BabelSynset> getSynsets(String word, it.uniroma1.lcl.jlt.util.Language language, it.uniroma1.lcl.jlt.util.POS pos, Collection<it.uniroma1.lcl.jlt.util.Language> targetLangs, BabelSenseSource... allowedSources)
LKB.getSynsets(it.uniroma1.lcl.kb.LKBQuery)word - the word whose synsets are to be retrieved.language - the language of the input word.pos - the PoS of the word.targetLangs - the languages in which the data are to be retrieved.allowedSources - the BabelSenseSources that can be used to look up
the possible senses of the input word.@Deprecated public List<BabelSynset> getSynsets(String word, it.uniroma1.lcl.jlt.util.Language language, it.uniroma1.lcl.jlt.util.POS pos, Collection<it.uniroma1.lcl.jlt.util.Language> targetLangs, boolean normalized, BabelSenseSource... allowedSources)
LKB.getSynsets(it.uniroma1.lcl.kb.LKBQuery)word - the word whose synsets are to be retrieved.language - the language of the input word.pos - the PoS of the word.targetLangs - the languages in which the data are to be retrieved.normalized - enables normalized searchallowedSources - sources used to search@Deprecated public List<BabelSynset> getSynsets(String word, Collection<it.uniroma1.lcl.jlt.util.Language> langs, it.uniroma1.lcl.jlt.util.POS pos, BabelSenseSource... allowedSources)
LKB.getSynsets(it.uniroma1.lcl.kb.LKBQuery)word - the word whose synsets are to be retrieved.langs - a collection of languages that can be used to look up the input word.pos - the PoS of the word.allowedSources - the BabelSenseSources that can be used to look up
the possible senses of the input word.@Deprecated public List<BabelSynset> getSynsets(String word, Collection<it.uniroma1.lcl.jlt.util.Language> langs, it.uniroma1.lcl.jlt.util.POS pos, boolean normalized, BabelSenseSource... allowedSources)
LKB.getSynsets(it.uniroma1.lcl.kb.LKBQuery)word - the word whose synsets are to be retrieved.langs - a collection of languages that can be used to look up the input word.pos - the PoS of the word.normalized - enables normalized searchallowedSources - the BabelSenseSources that can be used to look up
the possible senses of the input word.@Deprecated public List<BabelSynset> getSynsets(String word, Collection<it.uniroma1.lcl.jlt.util.Language> langs, it.uniroma1.lcl.jlt.util.POS pos, Collection<it.uniroma1.lcl.jlt.util.Language> targetLangs, BabelSenseSource... allowedSources)
LKB.getSynsets(it.uniroma1.lcl.kb.LKBQuery)word - the word whose synsets are to be retrieved.langs - a collection of languages that can be used to look up the input word.pos - the PoS of the word.targetLangs - the languages in which the data are to be retrieved.allowedSources - the BabelSenseSources that can be used to look up
the possible senses of the input word.@Deprecated public List<BabelSynset> getSynsets(String word, Collection<it.uniroma1.lcl.jlt.util.Language> langs, it.uniroma1.lcl.jlt.util.POS pos, Collection<it.uniroma1.lcl.jlt.util.Language> targetLangs, boolean normalized, BabelSenseSource... allowedSources)
LKB.getSynsets(it.uniroma1.lcl.kb.LKBQuery)word - the word whose synsets are to be retrieved.langs - a collection of languages that can be used to look up the input word.pos - the PoS of the word.targetLangs - the languages in which the data are to be retrieved.normalized - enables normalized searchallowedSources - the BabelSenseSources that can be used to look up
the possible senses of the input word.@Deprecated public List<BabelSynset> getSynsets(Collection<it.uniroma1.lcl.jlt.util.Language> targetLangs, ResourceID... resourceIds)
LKB.getSynsets(it.uniroma1.lcl.kb.LKBQuery)ResourceIDs, returns the synsets identified by the ResourceIDs in input.targetLangs - the languages in which the data are to be retrieved.resourceIds - the resource identifiersResourceIDs@Deprecated public BabelSynset getSynset(Collection<it.uniroma1.lcl.jlt.util.Language> targetLangs, ResourceID resourceID)
LKB.getSynsets(it.uniroma1.lcl.kb.LKBQuery)ResourceID, returns the synset identified by the ResourceID in input.
Note: It is possible that this method gives a warning if the ResourceID returns more than one synset. In that case
the best (see InternalBabelSynsetComparator) sense will be returned.
targetLangs - the languages in which the data are to be retrieved.resourceID - the resource identifierResourceID@Deprecated protected abstract List<BabelSynsetRelation> getOutgoingEdges(BabelSynsetID id, Collection<it.uniroma1.lcl.jlt.util.Language> searchLangs)
getOutgoingEdges(BabelSynsetID)BabelSynsetIDid - the BabelSynsetID whose outgoing edges we want to retrievesearchLangs - the search languages of the edgesprotected abstract List<BabelSynsetRelation> getOutgoingEdges(BabelSynsetID id)
BabelSynsetIDid - the BabelSynsetID whose outgoing edges we want to retrieve@Deprecated public Iterator<BabelSynset> getSynsetIterator()
LKB.iterator().BabelSynsetIterator.BabelSynsetIterator.public Stream<BabelSynset> stream()
BabelSynsetsBabelSynsetspublic Stream<it.uniroma1.lcl.jlt.ling.Word> lexiconStream()
BabelSynsetsBabelSynsetspublic Stream<String> offsetStream()
BabelSynsetsBabelSynsetspublic Stream<BabelSynset> getWordNetStream()
BabelSynsetsBabelSynsetspublic Stream<BabelSense> senseStream()
BabelSensesBabelSensespublic Stream<BabelSense> senseStream(it.uniroma1.lcl.jlt.util.Language language)
BabelSenses in a given Languagelanguage - the language of the sensesBabelSensespublic Stream<BabelSense> senseStream(BabelSenseSource source)
BabelSenses belonging to a given BabelSenseSourcesource - the source of the sensesBabelSensespublic Stream<BabelSense> senseStream(it.uniroma1.lcl.jlt.util.Language language, BabelSenseSource source)
BabelSenses with the given constraintslanguage - the language of the sensessource - the source of the sensesBabelSensesprotected it.uniroma1.lcl.babelnet.BabelNetIndexManager getIndexManager()
BabelNetIndexManagerBabelNetIndexManagerCopyright © 2016–2022. All rights reserved.