Package | Description |
---|---|
it.uniroma1.lcl.babelnet |
The root package of the BabelNet API.
|
it.uniroma1.lcl.babelnet.data |
The data package of the BabelNet API.
|
Modifier and Type | Field and Description |
---|---|
protected BabelSenseSource |
BabelSense.source
The source of this lemma: WordNet, Wikipedia, translation, etc.
|
Modifier and Type | Field and Description |
---|---|
protected Set<BabelSenseSource> |
BabelNetQuery.sources
Sources to use for restricting results
|
Modifier and Type | Method and Description |
---|---|
BabelSenseSource |
BabelSense.getSource() |
Modifier and Type | Method and Description |
---|---|
List<BabelSenseSource> |
BabelSynset.getSenseSources()
|
Modifier and Type | Method and Description |
---|---|
List<BabelSense> |
BabelNet.getSenses(String word,
it.uniroma1.lcl.jlt.util.Language language,
it.uniroma1.lcl.jlt.util.POS pos,
BabelSenseSource... allowedSources)
Deprecated.
|
List<BabelSense> |
BabelNet.getSenses(String word,
it.uniroma1.lcl.jlt.util.Language language,
it.uniroma1.lcl.jlt.util.POS pos,
boolean normalized,
BabelSenseSource... allowedSources)
Deprecated.
|
List<BabelSense> |
BabelNet.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> |
BabelNet.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<BabelSynset> |
BabelNet.getSynsets(String word,
Collection<it.uniroma1.lcl.jlt.util.Language> langs,
it.uniroma1.lcl.jlt.util.POS pos,
BabelSenseSource... allowedSources)
Deprecated.
|
List<BabelSynset> |
BabelNet.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> |
BabelNet.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> |
BabelNet.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> |
BabelNet.getSynsets(String word,
it.uniroma1.lcl.jlt.util.Language language,
it.uniroma1.lcl.jlt.util.POS pos,
BabelSenseSource... allowedSources)
Deprecated.
|
List<BabelSynset> |
BabelNet.getSynsets(String word,
it.uniroma1.lcl.jlt.util.Language language,
it.uniroma1.lcl.jlt.util.POS pos,
boolean normalized,
BabelSenseSource... allowedSources)
Deprecated.
|
List<BabelSynset> |
BabelNet.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> |
BabelNet.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<BabelSense> |
BabelNet.senseStream(BabelSenseSource source)
Returns the full stream of
BabelSense s belonging to a given BabelSenseSource |
Stream<BabelSense> |
BabelNet.senseStream(it.uniroma1.lcl.jlt.util.Language language,
BabelSenseSource source)
Returns the full stream of
BabelSense s with the given constraints |
BabelNetQuery.Builder |
BabelNetQuery.Builder.source(BabelSenseSource source)
Sets the source for the synset search
|
BabelNetQuery.Builder |
BabelNetQuery.Builder.sources(BabelSenseSource... sources)
Sets the sources for the synset search
|
Modifier and Type | Method and Description |
---|---|
BabelNetQuery.Builder |
BabelNetQuery.Builder.sources(Collection<BabelSenseSource> sources)
Sets the source collection for the synset search
|
BabelNetQuery.Builder |
BabelNetQuery.Builder.sources(Predicate<BabelSenseSource> sourceFilter)
Sets a filter for each sources in each synset retrieved
|
Constructor and Description |
---|
BabelSense(String lemma,
String simpleLemma,
it.uniroma1.lcl.jlt.util.Language language,
it.uniroma1.lcl.jlt.util.POS pos,
BabelSenseSource source,
String sensekey,
BabelSynset synset)
Creates a new instance of a
BabelSense |
Builder(String lemma,
String simpleLemma,
it.uniroma1.lcl.jlt.util.Language language,
it.uniroma1.lcl.jlt.util.POS pos,
BabelSenseSource source,
String sensekey,
BabelSynset synset)
Builder constructor
|
WordNetSense(String lemma,
String simpleLemma,
it.uniroma1.lcl.jlt.util.Language language,
it.uniroma1.lcl.jlt.util.POS pos,
String sensekey,
BabelSynset synset,
String wordNetOffset,
Integer wordNetSynsetPosition,
Integer wordNetSenseNumber,
BabelSenseSource source)
Creates a new instance of a
WordNetSense |
Modifier and Type | Method and Description |
---|---|
BabelSenseSource |
BabelExample.getSource()
The region where the concept for this example lies.
|
BabelSenseSource |
BabelGloss.getSource() |
static BabelSenseSource |
BabelSenseSource.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static BabelSenseSource[] |
BabelSenseSource.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
static BabelLemmaType |
BabelLemmaType.fromBabelSenseSource(BabelSenseSource source)
Gets the lemma type from a
BabelSenseSource and its Language |
static BabelLemmaType |
BabelLemmaType.fromBabelSenseSource(BabelSenseSource source,
it.uniroma1.lcl.jlt.util.Language language)
Deprecated.
|
static BabelLicense |
BabelSenseSource.getLicense(BabelSenseSource source,
it.uniroma1.lcl.jlt.util.Language language)
Returns the license associated with a given source for a given language
|
static boolean |
BabelSenseSource.isAutomatic(BabelSenseSource source)
Returns true if the source is the result of automatic machine translation.
|
static boolean |
BabelSenseSource.isAutomatic(BabelSenseSource source,
it.uniroma1.lcl.jlt.util.Language language)
Deprecated.
|
static boolean |
BabelSenseSource.isAutomaticTranslation(BabelSenseSource source)
Returns true if the source is the result of automatic machine translation.
|
static boolean |
BabelSenseSource.isAutomaticTranslation(BabelSenseSource source,
it.uniroma1.lcl.jlt.util.Language language)
Deprecated.
|
Constructor and Description |
---|
BabelExample(BabelSenseSource source,
String sourceSense,
it.uniroma1.lcl.jlt.util.Language language,
String example)
Creates a new instance of a
BabelExample |
BabelExample(BabelSenseSource source,
String sourceSense,
it.uniroma1.lcl.jlt.util.Language language,
String example,
Set<BabelTokenWord> tokens)
Creates a new instance of a
BabelExample |
BabelGloss(BabelSenseSource source,
int sourceSense,
it.uniroma1.lcl.jlt.util.Language language,
String gloss)
Creates a new instance of a
BabelGloss |
BabelGloss(BabelSenseSource source,
int sourceSense,
it.uniroma1.lcl.jlt.util.Language language,
String gloss,
Set<BabelTokenId> tokens)
Creates a new instance of a
BabelGloss |
Copyright © 2016–2021. All rights reserved.