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 BABELNET
Lexicalization from BabelNet itselfFRAMENET
Deprecated.removed with BabelNet 5.0GEONM
Lexicalization found in GeoNamesICEWN
Lexicalization from Galician (IceWordNet) Open Multilingual WordNetIWN
Lexicalization from Italian WordNetMCR_CA
Lexicalization from Catalan Open Multilingual WordNetMCR_ES
Lexicalization from Spanish Open Multilingual WordNetMCR_EU
Lexicalization from Basque Open Multilingual WordNetMCR_GL
Lexicalization from Galician Open Multilingual WordNetMCR_PT
Lexicalization from Portuguese Open Multilingual WordNetMSTERM
Deprecated.removed with BabelNet 5.0OEWN
Lexicalization from Open English WordNetOMWIKI
Lexicalization from OmegaWikiOMWN
Deprecated.Use the specific type with the language (OMWN_IT, OWMN_FR, ...) instead.OMWN_AR
Lexicalization from Arabic Open Multilingual WordNetOMWN_BG
Lexicalization from Bulgarian (BulTreeBank) Open Multilingual WordNetOMWN_CWN
Deprecated.OMWN_DA
Lexicalization from Danish (DanNet) Open Multilingual WordNetOMWN_EL
Lexicalization from Greek Open Multilingual WordNetOMWN_FA
Lexicalization from Persian Open Multilingual WordNetOMWN_FI
Lexicalization from Finnish Open Multilingual WordNetOMWN_FR
Lexicalization from French (WOLF) Open Multilingual WordNetOMWN_GAE
Lexicalization from Irish (GAWN) WordNetOMWN_HE
Lexicalization from Hebrew Open Multilingual WordNetOMWN_HR
Lexicalization from Croatian Open Multilingual WordNetOMWN_ID
Lexicalization from Bahasa Open Multilingual WordNetOMWN_IT
Lexicalization from Italian Open Multilingual WordNetOMWN_JA
Lexicalization from Japanese Open Multilingual WordNetOMWN_KO
Lexicalization from Korean WordNetOMWN_LT
Lexicalization from Lithuanian Open Multilingual WordNetOMWN_MS
Lexicalization from Bahasa Open Multilingual WordNetOMWN_NL
Lexicalization from Dutch Open Multilingual WordNetOMWN_NN
Lexicalization from Norwegian Open Multilingual WordNet NNOMWN_NO
Lexicalization from Norwegian Open Multilingual WordNet NOBOMWN_PL
Lexicalization from Poland Open Multilingual WordNetOMWN_PT
Lexicalization from Portuguese Open Multilingual WordNetOMWN_RO
Lexicalization from Romanian Open Multilingual WordNetOMWN_SK
Lexicalization from Slovak Open Multilingual WordNetOMWN_SQ
Lexicalization from Albanian (AlbaNet) Open Multilingual WordNetOMWN_TH
Lexicalization from Thai Open Multilingual WordNetOMWN_ZH
Lexicalization from Chinese Open Multilingual WordNetSALDO
Lexicalization from Swedish Open Multilingual WordNetSLOWNET
Lexicalization from Slovenian Open Multilingual WordNetVERBNET
Deprecated.removed with BabelNet 5.0WIKI
Lexicalization from WikipediaWIKICAT
Wikipedia category, not available as of version 3.0WIKIDATA
Lexicalization from WikidataWIKIDATA_ALIAS
Alias from WikidataWIKIDIS
Lexicalization found in a disambiguation pageWIKIQU
Deprecated.removed with BabelNet 5.0WIKIQUREDI
Deprecated.removed with BabelNet 5.0WIKIRED
Lexicalization from a Wikipedia redirectionWIKITR
Lexicalization from an automatic translation of a Wikipedia conceptWIKT
Lexicalization from WiktionaryWIKTLB
Wiktionary translation labelWN
Lexicalization from WordNet 3.0WN2020
Deprecated.resource changed withOEWN
WNTR
Lexicalization from an automatic translation of a WordNet conceptWONEF
Lexicalization from WordNet du FrancaisWORD_ATLAS
Lexicalization from WordAtlas
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description BabelLemmaType
getLemmaType()
Gets the lemma type from itsLanguage
static BabelLicense
getLicense(BabelSenseSource source, it.uniroma1.lcl.jlt.util.Language language)
Returns the license associated with a given source for a given languageString
getSourceName()
Returns a label for the source nameString
getURI(it.uniroma1.lcl.jlt.util.Language language)
Returns a URI associated with a given languagestatic boolean
isAutomatic(BabelSenseSource source)
Returns true if the source is the result of automatic machine translation.static boolean
isAutomatic(BabelSenseSource source, it.uniroma1.lcl.jlt.util.Language language)
Deprecated.boolean
isAutomaticTranslation()
Returns true if the source is the result of automatic machine translation.static boolean
isAutomaticTranslation(BabelSenseSource source)
Returns true if the source is the result of automatic machine translation.static boolean
isAutomaticTranslation(BabelSenseSource source, it.uniroma1.lcl.jlt.util.Language language)
Deprecated.boolean
isAutomaticTranslation(it.uniroma1.lcl.jlt.util.Language language)
Deprecated.boolean
isAutomaticTranslationFromBabelNet()
Returns true if the source is the result of automatic machine translation from BabelNet.boolean
isFromAnyWordnet()
Returns true if the source is any wordnet (Princeton WordNet or any other language)boolean
isFromBabelNet()
Returns true if the source is BabelNetboolean
isFromMultiWordnet()
Returns true if the source is any wordnet (Princeton WordNet is not included)boolean
isFromOmegaWiki()
Returns true if the source is OmegaWikiboolean
isFromWikipedia()
Returns true if the source is Wikipediaboolean
isFromWikiquote()
Returns true if the source is WikiQuoteboolean
isFromWiktionary()
Returns true if the source is Wiktionaryboolean
isFromWordAtlas()
Returns true if the source is WordAtlasboolean
isFromWordNet()
Returns true if the source is Princeton WordNetboolean
isRedirection()
Returns true if the source is Wikipedia or Wikiquote redirectionboolean
isTranslation()
Deprecated.int
ordinalForSorting()
Returns an ordinal number by importance to be used for sortingstatic BabelSenseSource
valueOf(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 withOEWN
Lexicalization 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:SenseSource
Returns a URI associated with a given language- Specified by:
getURI
in interfaceSenseSource
- Parameters:
language
- the source language- Returns:
- source URI
-
getSourceName
public String getSourceName()
Description copied from interface:SenseSource
Returns a label for the source name- Specified by:
getSourceName
in 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
-
-