Enum BabelSenseSource
- All Implemented Interfaces:
SenseSource, Serializable, Comparable<BabelSenseSource>, java.lang.constant.Constable
Enumeration of the different sources for the BabelNet senses.
- Author:
- navigli
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionLexicalization from BabelNet itselfDeprecated.removed with BabelNet 5.0Lexicalization found in GeoNamesLexicalization from Galician (IceWordNet) Open Multilingual WordNetLexicalization from Italian WordNetLexicalization from Catalan Open Multilingual WordNetLexicalization from Spanish Open Multilingual WordNetLexicalization from Basque Open Multilingual WordNetLexicalization from Galician Open Multilingual WordNetLexicalization from Portuguese Open Multilingual WordNetDeprecated.removed with BabelNet 5.0Lexicalization from Open English WordNetLexicalization from OmegaWikiDeprecated.Use the specific type with the language (OMWN_IT, OWMN_FR, ...) instead.Lexicalization from Arabic Open Multilingual WordNetLexicalization from Bulgarian (BulTreeBank) Open Multilingual WordNetDeprecated.Lexicalization from Danish (DanNet) Open Multilingual WordNetLexicalization from Greek Open Multilingual WordNetLexicalization from Persian Open Multilingual WordNetLexicalization from Finnish Open Multilingual WordNetLexicalization from French (WOLF) Open Multilingual WordNetLexicalization from Irish (GAWN) WordNetLexicalization from Hebrew Open Multilingual WordNetLexicalization from Croatian Open Multilingual WordNetLexicalization from Bahasa Open Multilingual WordNetLexicalization from Italian Open Multilingual WordNetLexicalization from Japanese Open Multilingual WordNetLexicalization from Korean WordNetLexicalization from Lithuanian Open Multilingual WordNetLexicalization from Bahasa Open Multilingual WordNetLexicalization from Dutch Open Multilingual WordNetLexicalization from Norwegian Open Multilingual WordNet NNLexicalization from Norwegian Open Multilingual WordNet NOBLexicalization from Poland Open Multilingual WordNetLexicalization from Portuguese Open Multilingual WordNetLexicalization from Romanian Open Multilingual WordNetLexicalization from Slovak Open Multilingual WordNetLexicalization from Albanian (AlbaNet) Open Multilingual WordNetLexicalization from Thai Open Multilingual WordNetLexicalization from Chinese Open Multilingual WordNetLexicalization from Swedish Open Multilingual WordNetLexicalization from Slovenian Open Multilingual WordNetDeprecated.removed with BabelNet 5.0Lexicalization from WikipediaWikipedia category, not available as of version 3.0Lexicalization from WikidataAlias from WikidataLexicalization found in a disambiguation pageDeprecated.removed with BabelNet 5.0Deprecated.removed with BabelNet 5.0Lexicalization from a Wikipedia redirectionLexicalization from an automatic translation of a Wikipedia conceptLexicalization from WiktionaryWiktionary translation labelExample from Wiktionary quotationsLexicalization from WordNet 3.0Deprecated.resource changed withOEWNLexicalization from an automatic translation of a WordNet conceptLexicalization from WordNet du FrancaisLexicalization from WordAtlas -
Method Summary
Modifier and TypeMethodDescriptionGets the lemma type from itsLanguagestatic BabelLicensegetLicense(BabelSenseSource source, it.uniroma1.lcl.jlt.util.Language language) Returns the license associated with a given source for a given languageReturns a label for the source namegetURI(it.uniroma1.lcl.jlt.util.Language language) Returns a URI associated with a given languagestatic booleanisAutomatic(BabelSenseSource source) Returns true if the source is the result of automatic machine translation.static booleanisAutomatic(BabelSenseSource source, it.uniroma1.lcl.jlt.util.Language language) Deprecated.booleanReturns true if the source is the result of automatic machine translation.static booleanReturns true if the source is the result of automatic machine translation.static booleanisAutomaticTranslation(BabelSenseSource source, it.uniroma1.lcl.jlt.util.Language language) Deprecated.booleanisAutomaticTranslation(it.uniroma1.lcl.jlt.util.Language language) Deprecated.booleanReturns true if the source is the result of automatic machine translation from BabelNet.booleanReturns true if the source is any wordnet (Princeton WordNet or any other language)booleanReturns true if the source is BabelNetbooleanReturns true if the source is any wordnet (Princeton WordNet is not included)booleanReturns true if the source is OmegaWikibooleanReturns true if the source is WikipediabooleanReturns true if the source is WikiQuotebooleanReturns true if the source is WiktionarybooleanReturns true if the source is WordAtlasbooleanReturns true if the source is Princeton WordNetbooleanReturns true if the source is Wikipedia or Wikiquote redirectionbooleanDeprecated.intReturns an ordinal number by importance to be used for sortingstatic BabelSenseSourceReturns the enum constant of this type with the specified name.static BabelSenseSource[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
BABELNET
Lexicalization from BabelNet itself -
WN
Lexicalization from WordNet 3.0 -
OMWN
Deprecated.Use the specific type with the language (OMWN_IT, OWMN_FR, ...) instead.Lexicalization from Open Multilingual WordNet -
IWN
Lexicalization from Italian WordNet -
WONEF
Lexicalization from WordNet du Francais -
WIKI
Lexicalization from Wikipedia -
WIKIDIS
Lexicalization found in a disambiguation page -
WIKIDATA
Lexicalization from Wikidata -
OMWIKI
Lexicalization from OmegaWiki -
WIKICAT
Wikipedia category, not available as of version 3.0 -
WIKIRED
Lexicalization from a Wikipedia redirection -
WIKT
Lexicalization from Wiktionary -
WIKIQU
Deprecated.removed with BabelNet 5.0Lexicalization found in Wikiquote -
WIKIQUREDI
Deprecated.removed with BabelNet 5.0Lexicalization found in Wikiquote redirection -
WIKTLB
Wiktionary translation label -
VERBNET
Deprecated.removed with BabelNet 5.0Lexicalization found in VerbNet -
FRAMENET
Deprecated.removed with BabelNet 5.0Lexicalization found in FrameNet -
MSTERM
Deprecated.removed with BabelNet 5.0Lexicalization found in Microsoft Terminology -
GEONM
Lexicalization found in GeoNames -
WNTR
Lexicalization from an automatic translation of a WordNet concept -
WIKITR
Lexicalization from an automatic translation of a Wikipedia concept -
MCR_EU
Lexicalization from Basque Open Multilingual WordNet -
OMWN_HR
Lexicalization from Croatian Open Multilingual WordNet -
SLOWNET
Lexicalization from Slovenian Open Multilingual WordNet -
OMWN_ID
Lexicalization from Bahasa Open Multilingual WordNet -
OMWN_IT
Lexicalization from Italian Open Multilingual WordNet -
MCR_GL
Lexicalization from Galician Open Multilingual WordNet -
ICEWN
Lexicalization from Galician (IceWordNet) Open Multilingual WordNet -
OMWN_ZH
Lexicalization from Chinese Open Multilingual WordNet -
OMWN_NO
Lexicalization from Norwegian Open Multilingual WordNet NOB -
OMWN_NN
Lexicalization from Norwegian Open Multilingual WordNet NN -
SALDO
Lexicalization from Swedish Open Multilingual WordNet -
OMWN_JA
Lexicalization from Japanese Open Multilingual WordNet -
MCR_CA
Lexicalization from Catalan Open Multilingual WordNet -
OMWN_PT
Lexicalization from Portuguese Open Multilingual WordNet -
OMWN_FI
Lexicalization from Finnish Open Multilingual WordNet -
OMWN_PL
Lexicalization from Poland Open Multilingual WordNet -
OMWN_TH
Lexicalization from Thai Open Multilingual WordNet -
OMWN_SK
Lexicalization from Slovak Open Multilingual WordNet -
OMWN_LT
Lexicalization from Lithuanian Open Multilingual WordNet -
OMWN_NL
Lexicalization from Dutch Open Multilingual WordNet -
OMWN_AR
Lexicalization from Arabic Open Multilingual WordNet -
OMWN_FA
Lexicalization from Persian Open Multilingual WordNet -
OMWN_EL
Lexicalization from Greek Open Multilingual WordNet -
MCR_ES
Lexicalization from Spanish Open Multilingual WordNet -
OMWN_RO
Lexicalization from Romanian Open Multilingual WordNet -
OMWN_SQ
Lexicalization from Albanian (AlbaNet) Open Multilingual WordNet -
OMWN_DA
Lexicalization from Danish (DanNet) Open Multilingual WordNet -
OMWN_FR
Lexicalization from French (WOLF) Open Multilingual WordNet -
OMWN_MS
Lexicalization from Bahasa Open Multilingual WordNet -
OMWN_BG
Lexicalization from Bulgarian (BulTreeBank) Open Multilingual WordNet -
OMWN_HE
Lexicalization from Hebrew Open Multilingual WordNet -
OMWN_KO
Lexicalization from Korean WordNet -
MCR_PT
Lexicalization from Portuguese Open Multilingual WordNet -
OMWN_GAE
Lexicalization from Irish (GAWN) WordNet -
OMWN_CWN
Deprecated.Lexicalization from Chinese WordNet -
WORD_ATLAS
Lexicalization from WordAtlas -
WIKIDATA_ALIAS
Alias from Wikidata -
WN2020
Deprecated.resource changed withOEWNLexicalization from WordNet 2020 -
OEWN
Lexicalization from Open English WordNet -
WIKTQUOT
Example from Wiktionary quotations
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
isFromAnyWordnet
public boolean isFromAnyWordnet()Returns true if the source is any wordnet (Princeton WordNet or any other language)- Returns:
- boolean value: true if the source is any wordnet
-
isFromMultiWordnet
public boolean isFromMultiWordnet()Returns true if the source is any wordnet (Princeton WordNet is not included)- Returns:
- boolean value: true if the source is any wordnet
-
isFromWordNet
public boolean isFromWordNet()Returns true if the source is Princeton WordNet- Returns:
- boolean value: true if the source is Princeton WordNet
-
isFromBabelNet
public boolean isFromBabelNet()Returns true if the source is BabelNet- Returns:
- boolean value: true if the source is BabelNet
-
isFromWordAtlas
public boolean isFromWordAtlas()Returns true if the source is WordAtlas- Returns:
- boolean value: true if the source is WordAtlas
-
isFromWikipedia
public boolean isFromWikipedia()Returns true if the source is Wikipedia- Returns:
- boolean value: true if the source is Wikipedia
-
isFromWiktionary
public boolean isFromWiktionary()Returns true if the source is Wiktionary- Returns:
- boolean value: true if the source is Wiktionary
-
isFromWikiquote
public boolean isFromWikiquote()Returns true if the source is WikiQuote- Returns:
- boolean value: true if the source is WikiQuote
-
isFromOmegaWiki
public boolean isFromOmegaWiki()Returns true if the source is OmegaWiki- Returns:
- boolean value: true if the source is OmegaWiki
-
isRedirection
public boolean isRedirection()Returns true if the source is Wikipedia or Wikiquote redirection- Returns:
- boolean value: true if the source is a Wikipedia redirection
-
getLemmaType
-
getLicense
public static BabelLicense getLicense(BabelSenseSource source, it.uniroma1.lcl.jlt.util.Language language) Returns the license associated with a given source for a given language- Parameters:
source- the source for which the license is soughtlanguage- the source language- Returns:
- source license
-
getURI
Description copied from interface:SenseSourceReturns a URI associated with a given language- Specified by:
getURIin interfaceSenseSource- Parameters:
language- the source language- Returns:
- source URI
-
getSourceName
Description copied from interface:SenseSourceReturns a label for the source name- Specified by:
getSourceNamein interfaceSenseSource- Returns:
- the source name
-
isTranslation
public boolean isTranslation()Deprecated.Returns true if the source is the result of automatic machine translation from BabelNet. To cover all kinds of machine translation, please use the more generalisAutomaticTranslation(Language).- Returns:
- boolean value: true if the source is from an automatic translation from BabelNet
-
isAutomaticTranslationFromBabelNet
public boolean isAutomaticTranslationFromBabelNet()Returns true if the source is the result of automatic machine translation from BabelNet. To cover all kinds of machine translation, please use the more generalisAutomaticTranslation(Language).- Returns:
- boolean value: true if the source is from an automatic translation from BabelNet
-
isAutomaticTranslation
Deprecated.Returns true if the source is the result of automatic machine translation.- Parameters:
language- the language of the source (important to determine if the Open Multilingual WordNet is from manual annotation or not)- Returns:
- boolean value: true if the source is from an automatic translation
-
isAutomaticTranslation
public boolean isAutomaticTranslation()Returns true if the source is the result of automatic machine translation.- Returns:
- boolean value: true if the source is from an automatic translation
-
isAutomaticTranslation
@Deprecated public static boolean isAutomaticTranslation(BabelSenseSource source, it.uniroma1.lcl.jlt.util.Language language) Deprecated.Returns true if the source is the result of automatic machine translation.- Parameters:
source- the source for which we want to know whether it comes from automatic translationlanguage- the language of the source (important to determine if the Open Multilingual WordNet is from manual annotation or not)- Returns:
- boolean value: true if the source is from an automatic translation
-
isAutomaticTranslation
Returns true if the source is the result of automatic machine translation.- Parameters:
source- the source for which we want to know whether it comes from automatic translation- Returns:
- boolean value: true if the source is from an automatic translation
-
isAutomatic
@Deprecated public static boolean isAutomatic(BabelSenseSource source, it.uniroma1.lcl.jlt.util.Language language) Deprecated.Returns true if the source is the result of automatic machine translation.- Parameters:
source- the source for which we want to know whether it comes from automatic translationlanguage- the language of the source (important to determine if the Open Multilingual WordNet is from manual annotation or not)- Returns:
- boolean value: true if the source is from an automatic translation
-
isAutomatic
Returns true if the source is the result of automatic machine translation.- Parameters:
source- the source for which we want to know whether it comes from automatic translation- Returns:
- boolean value: true if the source is from an automatic translation
-
ordinalForSorting
public int ordinalForSorting()Returns an ordinal number by importance to be used for sorting- Returns:
- an ordinal number by importance to be used for sorting
-