@interfaceMPPLanguagePrediction:NSObject/** The i18n language / locale code for the prediction. */@property(nonatomic,readonly)NSString*languageCode;/** The probability for the prediction. */@property(nonatomic,readonly)floatprobability;/**
* Initializes a new `LanguagePrediction` with the given language code and probability.
*
* @param languageCode The i18n language / locale code for the prediction.
* @param probability The probability for the prediction.
*
* @return An instance of `LanguagePrediction` initialized with the given language code and
* probability.
*/-(instancetype)initWithLanguageCode:(NSString*)languageCodeprobability:(float)probability;@end
[[["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-05-08 UTC."],[],[],null,["# MediaPipeTasksText Framework Reference\n\nMPPLanguagePrediction\n=====================\n\n @interface MPPLanguagePrediction : NSObject\n\n /** The i18n language / locale code for the prediction. */\n @property(nonatomic, readonly) NSString *languageCode;\n\n /** The probability for the prediction. */\n @property(nonatomic, readonly) float probability;\n\n /**\n * Initializes a new `LanguagePrediction` with the given language code and probability.\n *\n * @param languageCode The i18n language / locale code for the prediction.\n * @param probability The probability for the prediction.\n *\n * @return An instance of `LanguagePrediction` initialized with the given language code and\n * probability.\n */\n - (instancetype)initWithLanguageCode:(NSString *)languageCode probability:(float)probability;\n\n @end\n\nUndocumented\n- `\n ``\n ``\n `\n\n ### [languageCode](#/c:objc(cs)MPPLanguagePrediction(py)languageCode)\n\n `\n ` \n The i18n language / locale code for the prediction. \n\n #### Declaration\n\n Objective-C \n\n @property (nonatomic, readonly) NSString *_Nonnull languageCode;\n\n- `\n ``\n ``\n `\n\n ### [probability](#/c:objc(cs)MPPLanguagePrediction(py)probability)\n\n `\n ` \n The probability for the prediction. \n\n #### Declaration\n\n Objective-C \n\n @property (nonatomic, readonly) float probability;\n\n- `\n ``\n ``\n `\n\n ### [-initWithLanguageCode:probability:](#/c:objc(cs)MPPLanguagePrediction(im)initWithLanguageCode:probability:)\n\n `\n ` \n Initializes a new `LanguagePrediction` with the given language code and probability. \n\n #### Declaration\n\n Objective-C \n\n - (nonnull instancetype)initWithLanguageCode:(nonnull NSString *)languageCode\n probability:(float)probability;\n\n #### Parameters\n\n |----------------------|-----------------------------------------------------|\n | ` `*languageCode*` ` | The i18n language / locale code for the prediction. |\n | ` `*probability*` ` | The probability for the prediction. |\n\n #### Return Value\n\n An instance of `LanguagePrediction` initialized with the given language code and\n probability."]]