MLKitLanguageID Framework Reference
Stay organized with collections
Save and categorize content based on your preferences.
Constants
The following constants are available globally.
-
-
Declaration
Swift
let
DefaultIdentifyLanguageConfidenceThreshold
:
Float
-
Declaration
Swift
let
DefaultIdentifyPossibleLanguagesConfidenceThreshold
:
Float
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\u003eGlobally available constants provide language identification capabilities.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eMLKUndeterminedLanguageTag\u003c/code\u003e represents an undefined language according to BCP 47.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eLanguageIdentificationOptions\u003c/code\u003e includes thresholds for identifying main and possible languages: \u003ccode\u003eDefaultIdentifyLanguageConfidenceThreshold\u003c/code\u003e and \u003ccode\u003eDefaultIdentifyPossibleLanguagesConfidenceThreshold\u003c/code\u003e respectively.\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 ``\n ``\n `\n\n ### [DefaultIdentifyLanguageConfidenceThreshold](#/c:@kMLKDefaultIdentifyLanguageConfidenceThreshold)\n\n `\n ` \n @memberof [LanguageIdentificationOptions](/ml-kit/reference/swift/mlkitlanguageid/api/reference/Classes/LanguageIdentificationOptions)\n The default confidence threshold for identifying the main language in the given input text. \n\n #### Declaration\n\n Swift \n\n let DefaultIdentifyLanguageConfidenceThreshold: Float\n\n- `\n ``\n ``\n `\n\n ### [DefaultIdentifyPossibleLanguagesConfidenceThreshold](#/c:@kMLKDefaultIdentifyPossibleLanguagesConfidenceThreshold)\n\n `\n ` \n @memberof [LanguageIdentificationOptions](/ml-kit/reference/swift/mlkitlanguageid/api/reference/Classes/LanguageIdentificationOptions)\n The default confidence threshold for identifying possible languages in the given input text. \n\n #### Declaration\n\n Swift \n\n let DefaultIdentifyPossibleLanguagesConfidenceThreshold: Float"]]