Enum BabelLemmaType

    • Enum Constant Detail

      • HIGH_QUALITY

        public static final BabelLemmaType HIGH_QUALITY
        High quality lemmas, coming from professionally-curated resources (such as WordNet or WordAtlas) or reliable crowdsources resources.
      • POTENTIAL_NEAR_SYNONYM_OR_WORSE

        public static final BabelLemmaType POTENTIAL_NEAR_SYNONYM_OR_WORSE
        Mostly Wikipedia redirections, which might be synonyms, near synonyms or related terms.
      • AUTOMATIC_TRANSLATION

        public static final BabelLemmaType AUTOMATIC_TRANSLATION
        Lemmas resulting from automatic translations (suggested use only for automatic text processing).
    • Method Detail

      • values

        public static BabelLemmaType[] 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 (BabelLemmaType c : BabelLemmaType.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static BabelLemmaType 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
      • fromBabelSenseSource

        @Deprecated
        public static BabelLemmaType fromBabelSenseSource​(BabelSenseSource source,
                                                          it.uniroma1.lcl.jlt.util.Language language)
        Deprecated.
        Gets the lemma type from a BabelSenseSource and its Language
        Parameters:
        source - the sense source
        language - the sense language
        Returns:
        the lemma type