Package it.uniroma1.lcl.babelnet.data
Enum BabelSenseSource
- java.lang.Object
-
- java.lang.Enum<BabelSenseSource>
-
- it.uniroma1.lcl.babelnet.data.BabelSenseSource
-
- All Implemented Interfaces:
SenseSource,Serializable,Comparable<BabelSenseSource>
public enum BabelSenseSource extends Enum<BabelSenseSource> implements SenseSource
Enumeration of the different sources for the BabelNet senses.- Author:
- navigli
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BABELNETLexicalization from BabelNet itselfFRAMENETDeprecated.removed with BabelNet 5.0GEONMLexicalization found in GeoNamesICEWNLexicalization from Galician (IceWordNet) Open Multilingual WordNetIWNLexicalization from Italian WordNetMCR_CALexicalization from Catalan Open Multilingual WordNetMCR_ESLexicalization from Spanish Open Multilingual WordNetMCR_EULexicalization from Basque Open Multilingual WordNetMCR_GLLexicalization from Galician Open Multilingual WordNetMCR_PTLexicalization from Portuguese Open Multilingual WordNetMSTERMDeprecated.removed with BabelNet 5.0OEWNLexicalization from Open English WordNetOMWIKILexicalization from OmegaWikiOMWNDeprecated.Use the specific type with the language (OMWN_IT, OWMN_FR, ...) instead.OMWN_ARLexicalization from Arabic Open Multilingual WordNetOMWN_BGLexicalization from Bulgarian (BulTreeBank) Open Multilingual WordNetOMWN_CWNDeprecated.OMWN_DALexicalization from Danish (DanNet) Open Multilingual WordNetOMWN_ELLexicalization from Greek Open Multilingual WordNetOMWN_FALexicalization from Persian Open Multilingual WordNetOMWN_FILexicalization from Finnish Open Multilingual WordNetOMWN_FRLexicalization from French (WOLF) Open Multilingual WordNetOMWN_GAELexicalization from Irish (GAWN) WordNetOMWN_HELexicalization from Hebrew Open Multilingual WordNetOMWN_HRLexicalization from Croatian Open Multilingual WordNetOMWN_IDLexicalization from Bahasa Open Multilingual WordNetOMWN_ITLexicalization from Italian Open Multilingual WordNetOMWN_JALexicalization from Japanese Open Multilingual WordNetOMWN_KOLexicalization from Korean WordNetOMWN_LTLexicalization from Lithuanian Open Multilingual WordNetOMWN_MSLexicalization from Bahasa Open Multilingual WordNetOMWN_NLLexicalization from Dutch Open Multilingual WordNetOMWN_NNLexicalization from Norwegian Open Multilingual WordNet NNOMWN_NOLexicalization from Norwegian Open Multilingual WordNet NOBOMWN_PLLexicalization from Poland Open Multilingual WordNetOMWN_PTLexicalization from Portuguese Open Multilingual WordNetOMWN_ROLexicalization from Romanian Open Multilingual WordNetOMWN_SKLexicalization from Slovak Open Multilingual WordNetOMWN_SQLexicalization from Albanian (AlbaNet) Open Multilingual WordNetOMWN_THLexicalization from Thai Open Multilingual WordNetOMWN_ZHLexicalization from Chinese Open Multilingual WordNetSALDOLexicalization from Swedish Open Multilingual WordNetSLOWNETLexicalization from Slovenian Open Multilingual WordNetVERBNETDeprecated.removed with BabelNet 5.0WIKILexicalization from WikipediaWIKICATWikipedia category, not available as of version 3.0WIKIDATALexicalization from WikidataWIKIDATA_ALIASAlias from WikidataWIKIDISLexicalization found in a disambiguation pageWIKIQUDeprecated.removed with BabelNet 5.0WIKIQUREDIDeprecated.removed with BabelNet 5.0WIKIREDLexicalization from a Wikipedia redirectionWIKITRLexicalization from an automatic translation of a Wikipedia conceptWIKTLexicalization from WiktionaryWIKTLBWiktionary translation labelWNLexicalization from WordNet 3.0WN2020Deprecated.resource changed withOEWNWNTRLexicalization from an automatic translation of a WordNet conceptWONEFLexicalization from WordNet du FrancaisWORD_ATLASLexicalization from WordAtlas
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description BabelLemmaTypegetLemmaType()Gets 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 languageStringgetSourceName()Returns a label for the source nameStringgetURI(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.booleanisAutomaticTranslation()Returns true if the source is the result of automatic machine translation.static booleanisAutomaticTranslation(BabelSenseSource source)Returns 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.booleanisAutomaticTranslationFromBabelNet()Returns true if the source is the result of automatic machine translation from BabelNet.booleanisFromAnyWordnet()Returns true if the source is any wordnet (Princeton WordNet or any other language)booleanisFromBabelNet()Returns true if the source is BabelNetbooleanisFromMultiWordnet()Returns true if the source is any wordnet (Princeton WordNet is not included)booleanisFromOmegaWiki()Returns true if the source is OmegaWikibooleanisFromWikipedia()Returns true if the source is WikipediabooleanisFromWikiquote()Returns true if the source is WikiQuotebooleanisFromWiktionary()Returns true if the source is WiktionarybooleanisFromWordAtlas()Returns true if the source is WordAtlasbooleanisFromWordNet()Returns true if the source is Princeton WordNetbooleanisRedirection()Returns true if the source is Wikipedia or Wikiquote redirectionbooleanisTranslation()Deprecated.intordinalForSorting()Returns an ordinal number by importance to be used for sortingstatic BabelSenseSourcevalueOf(String name)Returns 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 Detail
-
BABELNET
public static final BabelSenseSource BABELNET
Lexicalization from BabelNet itself
-
WN
public static final BabelSenseSource WN
Lexicalization from WordNet 3.0
-
OMWN
@Deprecated public static final BabelSenseSource OMWN
Deprecated.Use the specific type with the language (OMWN_IT, OWMN_FR, ...) instead.Lexicalization from Open Multilingual WordNet
-
IWN
public static final BabelSenseSource IWN
Lexicalization from Italian WordNet
-
WONEF
public static final BabelSenseSource WONEF
Lexicalization from WordNet du Francais
-
WIKI
public static final BabelSenseSource WIKI
Lexicalization from Wikipedia
-
WIKIDIS
public static final BabelSenseSource WIKIDIS
Lexicalization found in a disambiguation page
-
WIKIDATA
public static final BabelSenseSource WIKIDATA
Lexicalization from Wikidata
-
OMWIKI
public static final BabelSenseSource OMWIKI
Lexicalization from OmegaWiki
-
WIKICAT
public static final BabelSenseSource WIKICAT
Wikipedia category, not available as of version 3.0
-
WIKIRED
public static final BabelSenseSource WIKIRED
Lexicalization from a Wikipedia redirection
-
WIKT
public static final BabelSenseSource WIKT
Lexicalization from Wiktionary
-
WIKIQU
@Deprecated public static final BabelSenseSource WIKIQU
Deprecated.removed with BabelNet 5.0Lexicalization found in Wikiquote
-
WIKIQUREDI
@Deprecated public static final BabelSenseSource WIKIQUREDI
Deprecated.removed with BabelNet 5.0Lexicalization found in Wikiquote redirection
-
WIKTLB
public static final BabelSenseSource WIKTLB
Wiktionary translation label
-
VERBNET
@Deprecated public static final BabelSenseSource VERBNET
Deprecated.removed with BabelNet 5.0Lexicalization found in VerbNet
-
FRAMENET
@Deprecated public static final BabelSenseSource FRAMENET
Deprecated.removed with BabelNet 5.0Lexicalization found in FrameNet
-
MSTERM
@Deprecated public static final BabelSenseSource MSTERM
Deprecated.removed with BabelNet 5.0Lexicalization found in Microsoft Terminology
-
GEONM
public static final BabelSenseSource GEONM
Lexicalization found in GeoNames
-
WNTR
public static final BabelSenseSource WNTR
Lexicalization from an automatic translation of a WordNet concept
-
WIKITR
public static final BabelSenseSource WIKITR
Lexicalization from an automatic translation of a Wikipedia concept
-
MCR_EU
public static final BabelSenseSource MCR_EU
Lexicalization from Basque Open Multilingual WordNet
-
OMWN_HR
public static final BabelSenseSource OMWN_HR
Lexicalization from Croatian Open Multilingual WordNet
-
SLOWNET
public static final BabelSenseSource SLOWNET
Lexicalization from Slovenian Open Multilingual WordNet
-
OMWN_ID
public static final BabelSenseSource OMWN_ID
Lexicalization from Bahasa Open Multilingual WordNet
-
OMWN_IT
public static final BabelSenseSource OMWN_IT
Lexicalization from Italian Open Multilingual WordNet
-
MCR_GL
public static final BabelSenseSource MCR_GL
Lexicalization from Galician Open Multilingual WordNet
-
ICEWN
public static final BabelSenseSource ICEWN
Lexicalization from Galician (IceWordNet) Open Multilingual WordNet
-
OMWN_ZH
public static final BabelSenseSource OMWN_ZH
Lexicalization from Chinese Open Multilingual WordNet
-
OMWN_NO
public static final BabelSenseSource OMWN_NO
Lexicalization from Norwegian Open Multilingual WordNet NOB
-
OMWN_NN
public static final BabelSenseSource OMWN_NN
Lexicalization from Norwegian Open Multilingual WordNet NN
-
SALDO
public static final BabelSenseSource SALDO
Lexicalization from Swedish Open Multilingual WordNet
-
OMWN_JA
public static final BabelSenseSource OMWN_JA
Lexicalization from Japanese Open Multilingual WordNet
-
MCR_CA
public static final BabelSenseSource MCR_CA
Lexicalization from Catalan Open Multilingual WordNet
-
OMWN_PT
public static final BabelSenseSource OMWN_PT
Lexicalization from Portuguese Open Multilingual WordNet
-
OMWN_FI
public static final BabelSenseSource OMWN_FI
Lexicalization from Finnish Open Multilingual WordNet
-
OMWN_PL
public static final BabelSenseSource OMWN_PL
Lexicalization from Poland Open Multilingual WordNet
-
OMWN_TH
public static final BabelSenseSource OMWN_TH
Lexicalization from Thai Open Multilingual WordNet
-
OMWN_SK
public static final BabelSenseSource OMWN_SK
Lexicalization from Slovak Open Multilingual WordNet
-
OMWN_LT
public static final BabelSenseSource OMWN_LT
Lexicalization from Lithuanian Open Multilingual WordNet
-
OMWN_NL
public static final BabelSenseSource OMWN_NL
Lexicalization from Dutch Open Multilingual WordNet
-
OMWN_AR
public static final BabelSenseSource OMWN_AR
Lexicalization from Arabic Open Multilingual WordNet
-
OMWN_FA
public static final BabelSenseSource OMWN_FA
Lexicalization from Persian Open Multilingual WordNet
-
OMWN_EL
public static final BabelSenseSource OMWN_EL
Lexicalization from Greek Open Multilingual WordNet
-
MCR_ES
public static final BabelSenseSource MCR_ES
Lexicalization from Spanish Open Multilingual WordNet
-
OMWN_RO
public static final BabelSenseSource OMWN_RO
Lexicalization from Romanian Open Multilingual WordNet
-
OMWN_SQ
public static final BabelSenseSource OMWN_SQ
Lexicalization from Albanian (AlbaNet) Open Multilingual WordNet
-
OMWN_DA
public static final BabelSenseSource OMWN_DA
Lexicalization from Danish (DanNet) Open Multilingual WordNet
-
OMWN_FR
public static final BabelSenseSource OMWN_FR
Lexicalization from French (WOLF) Open Multilingual WordNet
-
OMWN_MS
public static final BabelSenseSource OMWN_MS
Lexicalization from Bahasa Open Multilingual WordNet
-
OMWN_BG
public static final BabelSenseSource OMWN_BG
Lexicalization from Bulgarian (BulTreeBank) Open Multilingual WordNet
-
OMWN_HE
public static final BabelSenseSource OMWN_HE
Lexicalization from Hebrew Open Multilingual WordNet
-
OMWN_KO
public static final BabelSenseSource OMWN_KO
Lexicalization from Korean WordNet
-
MCR_PT
public static final BabelSenseSource MCR_PT
Lexicalization from Portuguese Open Multilingual WordNet
-
OMWN_GAE
public static final BabelSenseSource OMWN_GAE
Lexicalization from Irish (GAWN) WordNet
-
OMWN_CWN
@Deprecated public static final BabelSenseSource OMWN_CWN
Deprecated.Lexicalization from Chinese WordNet
-
WORD_ATLAS
public static final BabelSenseSource WORD_ATLAS
Lexicalization from WordAtlas
-
WIKIDATA_ALIAS
public static final BabelSenseSource WIKIDATA_ALIAS
Alias from Wikidata
-
WN2020
@Deprecated public static final BabelSenseSource WN2020
Deprecated.resource changed withOEWNLexicalization from WordNet 2020
-
OEWN
public static final BabelSenseSource OEWN
Lexicalization from Open English WordNet
-
-
Method Detail
-
values
public static BabelSenseSource[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (BabelSenseSource c : BabelSenseSource.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static BabelSenseSource valueOf(String name)
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
public BabelLemmaType getLemmaType()
Gets the lemma type from itsLanguage- Returns:
- the lemma type
-
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
public String getURI(it.uniroma1.lcl.jlt.util.Language language)
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
public String 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(it.uniroma1.lcl.jlt.util.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(it.uniroma1.lcl.jlt.util.Language).- Returns:
- boolean value: true if the source is from an automatic translation from BabelNet
-
isAutomaticTranslation
@Deprecated public boolean isAutomaticTranslation(it.uniroma1.lcl.jlt.util.Language language)
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
public static boolean isAutomaticTranslation(BabelSenseSource source)
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
public static boolean isAutomatic(BabelSenseSource source)
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
-
-