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,
com.babelscape.util.POS pos)
Deprecated.
|
List<BabelSense> |
getSenses(String word,
it.uniroma1.lcl.jlt.util.Language language,
com.babelscape.util.POS pos,
BabelSenseSource... allowedSources)
Deprecated.
|
List<BabelSense> |
getSenses(String word,
it.uniroma1.lcl.jlt.util.Language language,
com.babelscape.util.POS pos,
boolean normalized,
BabelSenseSource... allowedSources)
Deprecated.
|
List<BabelSense> |
getSenses(String word,
it.uniroma1.lcl.jlt.util.Language searchLanguage,
com.babelscape.util.POS pos,
Collection<it.uniroma1.lcl.jlt.util.Language> targetLanguages)
Deprecated.
|
List<BabelSense> |
getSenses(String word,
it.uniroma1.lcl.jlt.util.Language language,
com.babelscape.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,
com.babelscape.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,
com.babelscape.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,
com.babelscape.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,
com.babelscape.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
ResourceID s, 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,
com.babelscape.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,
com.babelscape.util.POS pos,
BabelSenseSource... allowedSources)
Deprecated.
|
List<BabelSynset> |
getSynsets(String word,
Collection<it.uniroma1.lcl.jlt.util.Language> langs,
com.babelscape.util.POS pos,
boolean normalized)
Deprecated.
|
List<BabelSynset> |
getSynsets(String word,
Collection<it.uniroma1.lcl.jlt.util.Language> langs,
com.babelscape.util.POS pos,
boolean normalized,
BabelSenseSource... allowedSources)
Deprecated.
|
List<BabelSynset> |
getSynsets(String word,
Collection<it.uniroma1.lcl.jlt.util.Language> langs,
com.babelscape.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,
com.babelscape.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,
com.babelscape.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,
com.babelscape.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,
com.babelscape.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,
com.babelscape.util.POS pos,
BabelSenseSource... allowedSources)
Deprecated.
|
List<BabelSynset> |
getSynsets(String word,
it.uniroma1.lcl.jlt.util.Language language,
com.babelscape.util.POS pos,
boolean normalized)
Deprecated.
|
List<BabelSynset> |
getSynsets(String word,
it.uniroma1.lcl.jlt.util.Language language,
com.babelscape.util.POS pos,
boolean normalized,
BabelSenseSource... allowedSources)
Deprecated.
|
List<BabelSynset> |
getSynsets(String word,
it.uniroma1.lcl.jlt.util.Language language,
com.babelscape.util.POS pos,
Collection<it.uniroma1.lcl.jlt.util.Language> targetLangs)
Deprecated.
|
List<BabelSynset> |
getSynsets(String word,
it.uniroma1.lcl.jlt.util.Language language,
com.babelscape.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,
com.babelscape.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,
com.babelscape.util.POS pos,
Collection<it.uniroma1.lcl.jlt.util.Language> targetLangs,
boolean normalized,
BabelSenseSource... allowedSources)
Deprecated.
|
Stream<it.uniroma1.lcl.jlt.ling.Word> |
lexiconStream()
Returns the full stream of
BabelSynset s |
Stream<String> |
offsetStream()
Returns the full stream of string offsets of
BabelSynset s |
Stream<BabelSynset> |
stream()
Returns the full stream of
BabelSynset s |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getLexiconIterator, getOffsetIterator, getSensesContaining, getSensesFrom, getSynsets, getVersion, iterator, toSynsets, toSynsets
forEach, spliterator
protected 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, com.babelscape.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, com.babelscape.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, com.babelscape.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 BabelSenseSource
s 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, com.babelscape.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 BabelSenseSource
s 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, com.babelscape.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 BabelSenseSource
s 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, com.babelscape.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 BabelSenseSource
s that can be used to look up
the possible senses of the input word.public List<BabelSense> getSensesFrom(String word)
LKB
getSensesFrom
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)
LKB
getSensesFrom
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, com.babelscape.util.POS pos)
LKB
getSensesFrom
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)
LKB
getSensesContaining
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)
LKB
getSensesContaining
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, com.babelscape.util.POS pos)
LKB
getSensesContaining
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, com.babelscape.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)
LKB
getSynsets
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)
LKB
getSynsets
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, com.babelscape.util.POS pos)
LKB
getSynsets
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)
LKB
getSynsets
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, com.babelscape.util.POS pos)
LKB
getSynsets
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)
LKB
ResourceID
s, returns the synsets identified by the ResourceIDs in input.getSynsets
in interface LKB<BabelSynset,BabelSense,BabelSynsetRelation,BabelPointer,BabelGloss,BabelExample,BabelNetQuery>
resourceIds
- the resource identifiersResourceID
spublic BabelSynset getSynset(ResourceID resourceID)
LKB
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 BabelSynsetComparator
) 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, com.babelscape.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, com.babelscape.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, com.babelscape.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, com.babelscape.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, com.babelscape.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, com.babelscape.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, com.babelscape.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 BabelSenseSource
s 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, com.babelscape.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 BabelSenseSource
s 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, com.babelscape.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 BabelSenseSource
s 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, com.babelscape.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, com.babelscape.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 BabelSenseSource
s 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, com.babelscape.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 BabelSenseSource
s 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, com.babelscape.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 BabelSenseSource
s 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, com.babelscape.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 BabelSenseSource
s 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)
ResourceID
s, returns the synsets identified by the ResourceIDs in input.targetLangs
- the languages in which the data are to be retrieved.resourceIds
- the resource identifiersResourceID
s@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 BabelSynsetComparator
) 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)
BabelSynsetID
id
- the BabelSynsetID
whose outgoing edges we want to retrievesearchLangs
- the search languages of the edgesprotected abstract List<BabelSynsetRelation> getOutgoingEdges(BabelSynsetID id)
BabelSynsetID
id
- the BabelSynsetID
whose outgoing edges we want to retrieve@Deprecated public Iterator<BabelSynset> getSynsetIterator()
LKB.iterator()
.BabelSynsetIterator
.BabelSynsetIterator
.public Stream<BabelSynset> stream()
BabelSynset
sBabelSynset
spublic Stream<it.uniroma1.lcl.jlt.ling.Word> lexiconStream()
BabelSynset
sBabelSynset
spublic Stream<String> offsetStream()
BabelSynset
sBabelSynset
sprotected it.uniroma1.lcl.babelnet.BabelNetIndexManager getIndexManager()
BabelNetIndexManager
BabelNetIndexManager
Copyright © 2016–2018. All rights reserved.