Enum BabelSenseSource

    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      BABELNET
      Lexicalization from BabelNet itself
      FRAMENET
      Deprecated.
      removed with BabelNet 5.0
      GEONM
      Lexicalization found in GeoNames
      ICEWN
      Lexicalization from Galician (IceWordNet) Open Multilingual WordNet
      IWN
      Lexicalization from Italian WordNet
      MCR_CA
      Lexicalization from Catalan Open Multilingual WordNet
      MCR_ES
      Lexicalization from Spanish Open Multilingual WordNet
      MCR_EU
      Lexicalization from Basque Open Multilingual WordNet
      MCR_GL
      Lexicalization from Galician Open Multilingual WordNet
      MCR_PT
      Lexicalization from Portuguese Open Multilingual WordNet
      MSTERM
      Deprecated.
      removed with BabelNet 5.0
      OEWN
      Lexicalization from Open English WordNet
      OMWIKI
      Lexicalization from OmegaWiki
      OMWN
      Deprecated.
      Use the specific type with the language (OMWN_IT, OWMN_FR, ...) instead.
      OMWN_AR
      Lexicalization from Arabic Open Multilingual WordNet
      OMWN_BG
      Lexicalization from Bulgarian (BulTreeBank) Open Multilingual WordNet
      OMWN_CWN
      Deprecated.
      OMWN_DA
      Lexicalization from Danish (DanNet) Open Multilingual WordNet
      OMWN_EL
      Lexicalization from Greek Open Multilingual WordNet
      OMWN_FA
      Lexicalization from Persian Open Multilingual WordNet
      OMWN_FI
      Lexicalization from Finnish Open Multilingual WordNet
      OMWN_FR
      Lexicalization from French (WOLF) Open Multilingual WordNet
      OMWN_GAE
      Lexicalization from Irish (GAWN) WordNet
      OMWN_HE
      Lexicalization from Hebrew Open Multilingual WordNet
      OMWN_HR
      Lexicalization from Croatian Open Multilingual WordNet
      OMWN_ID
      Lexicalization from Bahasa Open Multilingual WordNet
      OMWN_IT
      Lexicalization from Italian Open Multilingual WordNet
      OMWN_JA
      Lexicalization from Japanese Open Multilingual WordNet
      OMWN_KO
      Lexicalization from Korean WordNet
      OMWN_LT
      Lexicalization from Lithuanian Open Multilingual WordNet
      OMWN_MS
      Lexicalization from Bahasa Open Multilingual WordNet
      OMWN_NL
      Lexicalization from Dutch Open Multilingual WordNet
      OMWN_NN
      Lexicalization from Norwegian Open Multilingual WordNet NN
      OMWN_NO
      Lexicalization from Norwegian Open Multilingual WordNet NOB
      OMWN_PL
      Lexicalization from Poland Open Multilingual WordNet
      OMWN_PT
      Lexicalization from Portuguese Open Multilingual WordNet
      OMWN_RO
      Lexicalization from Romanian Open Multilingual WordNet
      OMWN_SK
      Lexicalization from Slovak Open Multilingual WordNet
      OMWN_SQ
      Lexicalization from Albanian (AlbaNet) Open Multilingual WordNet
      OMWN_TH
      Lexicalization from Thai Open Multilingual WordNet
      OMWN_ZH
      Lexicalization from Chinese Open Multilingual WordNet
      SALDO
      Lexicalization from Swedish Open Multilingual WordNet
      SLOWNET
      Lexicalization from Slovenian Open Multilingual WordNet
      VERBNET
      Deprecated.
      removed with BabelNet 5.0
      WIKI
      Lexicalization from Wikipedia
      WIKICAT
      Wikipedia category, not available as of version 3.0
      WIKIDATA
      Lexicalization from Wikidata
      WIKIDATA_ALIAS
      Alias from Wikidata
      WIKIDIS
      Lexicalization found in a disambiguation page
      WIKIQU
      Deprecated.
      removed with BabelNet 5.0
      WIKIQUREDI
      Deprecated.
      removed with BabelNet 5.0
      WIKIRED
      Lexicalization from a Wikipedia redirection
      WIKITR
      Lexicalization from an automatic translation of a Wikipedia concept
      WIKT
      Lexicalization from Wiktionary
      WIKTLB
      Wiktionary translation label
      WN
      Lexicalization from WordNet 3.0
      WN2020
      Deprecated.
      resource changed with OEWN
      WNTR
      Lexicalization from an automatic translation of a WordNet concept
      WONEF
      Lexicalization from WordNet du Francais
      WORD_ATLAS
      Lexicalization from WordAtlas
    • Enum Constant Detail

      • BABELNET

        public static final BabelSenseSource BABELNET
        Lexicalization from BabelNet itself
      • 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
      • 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
      • WORD_ATLAS

        public static final BabelSenseSource WORD_ATLAS
        Lexicalization from WordAtlas
      • WIKIDATA_ALIAS

        public static final BabelSenseSource WIKIDATA_ALIAS
        Alias from Wikidata
      • 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 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
      • 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(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)
        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