MLKitLanguageID Framework Reference
Stay organized with collections
Save and categorize content based on your preferences.
Constants
The following constants are available globally.
-
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
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License
, and code samples are licensed under the Apache 2.0 License
. For details, see the Google Developers Site Policies
. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-07-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-07-10 UTC."],[[["\u003cp\u003e\u003ccode\u003eMLKUndeterminedLanguageTag\u003c/code\u003e represents an undetermined language using the BCP 47 language tag.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003ekMLKDefaultIdentifyLanguageConfidenceThreshold\u003c/code\u003e sets the default confidence level for identifying the primary language within text.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003ekMLKDefaultIdentifyPossibleLanguagesConfidenceThreshold\u003c/code\u003e establishes the default confidence level for identifying potential languages present in text.\u003c/p\u003e\n"]]],[],null,["# MLKitLanguageID Framework Reference\n\nConstants\n=========\n\nThe following constants are available globally.\n- `\n ``\n ``\n `\n\n ### [MLKUndeterminedLanguageTag](#/c:@MLKUndeterminedLanguageTag)\n\n `\n ` \n The [BCP 47 language tag](https://tools.ietf.org/rfc/bcp/bcp47.txt) for an undetermined\n - language. \n\n #### Declaration\n\n Objective-C \n\n extern NS_SWIFT_NAME(IdentifiedLanguage.undetermined) NSString *const\n MLKUndeterminedLanguageTag\n\n- `\n ``\n ``\n `\n\n ### [kMLKDefaultIdentifyLanguageConfidenceThreshold](#/c:@kMLKDefaultIdentifyLanguageConfidenceThreshold)\n\n `\n ` \n @memberof `LanguageIdentificationOptions`\n The default confidence threshold for identifying the main language in the given input text. \n\n #### Declaration\n\n Objective-C \n\n extern const float kMLKDefaultIdentifyLanguageConfidenceThreshold\n\n- `\n ``\n ``\n `\n\n ### [kMLKDefaultIdentifyPossibleLanguagesConfidenceThreshold](#/c:@kMLKDefaultIdentifyPossibleLanguagesConfidenceThreshold)\n\n `\n ` \n @memberof `LanguageIdentificationOptions`\n The default confidence threshold for identifying possible languages in the given input text. \n\n #### Declaration\n\n Objective-C \n\n extern const float kMLKDefaultIdentifyPossibleLanguagesConfidenceThreshold"]]