MLKitLanguageID Framework Reference

  • MLKUndeterminedLanguageTag represents an undetermined language using the BCP 47 language tag.

  • kMLKDefaultIdentifyLanguageConfidenceThreshold sets the default confidence level for identifying the primary language within text.

  • kMLKDefaultIdentifyPossibleLanguagesConfidenceThreshold establishes the default confidence level for identifying potential languages present in text.

Constants

The following constants are available globally.

  • The BCP 47 language tag for an undetermined

    • language.

    Declaration

    Objective-C

    extern NS_SWIFT_NAME(IdentifiedLanguage.undetermined) NSString *const
        MLKUndeterminedLanguageTag
  • @memberof LanguageIdentificationOptions The default confidence threshold for identifying the main language in the given input text.

    Declaration

    Objective-C

    extern const float kMLKDefaultIdentifyLanguageConfidenceThreshold
  • @memberof LanguageIdentificationOptions The default confidence threshold for identifying possible languages in the given input text.

    Declaration

    Objective-C

    extern const float kMLKDefaultIdentifyPossibleLanguagesConfidenceThreshold