Enum BabelSenseSource

java.lang.Object
java.lang.Enum<BabelSenseSource>
it.uniroma1.lcl.babelnet.data.BabelSenseSource
All Implemented Interfaces:
SenseSource, Serializable, Comparable<BabelSenseSource>, java.lang.constant.Constable

public enum BabelSenseSource extends Enum<BabelSenseSource> implements SenseSource
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 Constants
    Enum Constant
    Description
    Lexicalization from BabelNet itself
    Deprecated.
    removed with BabelNet 5.0
    Lexicalization found in GeoNames
    Lexicalization from Galician (IceWordNet) Open Multilingual WordNet
    Lexicalization from Italian WordNet
    Lexicalization from Catalan Open Multilingual WordNet
    Lexicalization from Spanish Open Multilingual WordNet
    Lexicalization from Basque Open Multilingual WordNet
    Lexicalization from Galician Open Multilingual WordNet
    Lexicalization from Portuguese Open Multilingual WordNet
    Deprecated.
    removed with BabelNet 5.0
    Lexicalization from Open English WordNet
    Lexicalization from OmegaWiki
    Deprecated.
    Use the specific type with the language (OMWN_IT, OWMN_FR, ...) instead.
    Lexicalization from Arabic Open Multilingual WordNet
    Lexicalization from Bulgarian (BulTreeBank) Open Multilingual WordNet
    Deprecated.
    Lexicalization from Danish (DanNet) Open Multilingual WordNet
    Lexicalization from Greek Open Multilingual WordNet
    Lexicalization from Persian Open Multilingual WordNet
    Lexicalization from Finnish Open Multilingual WordNet
    Lexicalization from French (WOLF) Open Multilingual WordNet
    Lexicalization from Irish (GAWN) WordNet
    Lexicalization from Hebrew Open Multilingual WordNet
    Lexicalization from Croatian Open Multilingual WordNet
    Lexicalization from Bahasa Open Multilingual WordNet
    Lexicalization from Italian Open Multilingual WordNet
    Lexicalization from Japanese Open Multilingual WordNet
    Lexicalization from Korean WordNet
    Lexicalization from Lithuanian Open Multilingual WordNet
    Lexicalization from Bahasa Open Multilingual WordNet
    Lexicalization from Dutch Open Multilingual WordNet
    Lexicalization from Norwegian Open Multilingual WordNet NN
    Lexicalization from Norwegian Open Multilingual WordNet NOB
    Lexicalization from Poland Open Multilingual WordNet
    Lexicalization from Portuguese Open Multilingual WordNet
    Lexicalization from Romanian Open Multilingual WordNet
    Lexicalization from Slovak Open Multilingual WordNet
    Lexicalization from Albanian (AlbaNet) Open Multilingual WordNet
    Lexicalization from Thai Open Multilingual WordNet
    Lexicalization from Chinese Open Multilingual WordNet
    Lexicalization from Swedish Open Multilingual WordNet
    Lexicalization from Slovenian Open Multilingual WordNet
    Deprecated.
    removed with BabelNet 5.0
    Lexicalization from Wikipedia
    Wikipedia category, not available as of version 3.0
    Lexicalization from Wikidata
    Alias from Wikidata
    Lexicalization found in a disambiguation page
    Deprecated.
    removed with BabelNet 5.0
    Deprecated.
    removed with BabelNet 5.0
    Lexicalization from a Wikipedia redirection
    Lexicalization from an automatic translation of a Wikipedia concept
    Lexicalization from Wiktionary
    Wiktionary translation label
    Example from Wiktionary quotations
    Lexicalization from WordNet 3.0
    Deprecated.
    resource changed with OEWN
    Lexicalization from an automatic translation of a WordNet concept
    Lexicalization from WordNet du Francais
    Lexicalization from WordAtlas
  • Method Summary

    Modifier and Type
    Method
    Description
    Gets the lemma type from its Language
    getLicense(BabelSenseSource source, it.uniroma1.lcl.jlt.util.Language language)
    Returns the license associated with a given source for a given language
    Returns a label for the source name
    getURI(it.uniroma1.lcl.jlt.util.Language language)
    Returns a URI associated with a given language
    static boolean
    Returns true if the source is the result of automatic machine translation.
    static boolean
    isAutomatic(BabelSenseSource source, it.uniroma1.lcl.jlt.util.Language language)
    boolean
    Returns true if the source is the result of automatic machine translation.
    static boolean
    Returns true if the source is the result of automatic machine translation.
    static boolean
    isAutomaticTranslation(BabelSenseSource source, it.uniroma1.lcl.jlt.util.Language language)
    boolean
    isAutomaticTranslation(it.uniroma1.lcl.jlt.util.Language language)
    Deprecated.
    boolean
    Returns true if the source is the result of automatic machine translation from BabelNet.
    boolean
    Returns true if the source is any wordnet (Princeton WordNet or any other language)
    boolean
    Returns true if the source is BabelNet
    boolean
    Returns true if the source is any wordnet (Princeton WordNet is not included)
    boolean
    Returns true if the source is OmegaWiki
    boolean
    Returns true if the source is Wikipedia
    boolean
    Returns true if the source is WikiQuote
    boolean
    Returns true if the source is Wiktionary
    boolean
    Returns true if the source is WordAtlas
    boolean
    Returns true if the source is Princeton WordNet
    boolean
    Returns true if the source is Wikipedia or Wikiquote redirection
    boolean
    int
    Returns an ordinal number by importance to be used for sorting
    Returns the enum constant of this type with the specified name.
    Returns an array containing the constants of this enum type, in the order they are declared.

    Methods inherited from class Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • 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.0
      Lexicalization found in Wikiquote
    • WIKIQUREDI

      @Deprecated public static final BabelSenseSource WIKIQUREDI
      Deprecated.
      removed with BabelNet 5.0
      Lexicalization 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.0
      Lexicalization found in VerbNet
    • FRAMENET

      @Deprecated public static final BabelSenseSource FRAMENET
      Deprecated.
      removed with BabelNet 5.0
      Lexicalization found in FrameNet
    • MSTERM

      @Deprecated public static final BabelSenseSource MSTERM
      Deprecated.
      removed with BabelNet 5.0
      Lexicalization 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 with OEWN
      Lexicalization from WordNet 2020
    • OEWN

      public static final BabelSenseSource OEWN
      Lexicalization from Open English WordNet
    • WIKTQUOT

      public static final BabelSenseSource WIKTQUOT
      Example from Wiktionary quotations
  • Method Details

    • values

      public static BabelSenseSource[] 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

      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 name
      NullPointerException - 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 its Language
      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 sought
      language - 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 interface SenseSource
      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 interface SenseSource
      Returns:
      the source name
    • isTranslation

      public boolean isTranslation()
      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 general isAutomaticTranslation(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 general isAutomaticTranslation(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)
      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
      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 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)
      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
      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
    • 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