FIRLanguageIdentificationOptions


@interface FIRLanguageIdentificationOptions : NSObject

Options for LanguageIdentification.

  • The confidence threshold for language identification. The identified languages will have a confidence higher or equal to the confidence threshold. The value should be between 0 and 1. If an invalid value is set, the default value is used instead. The default value for identifying the main language is DefaultIdentifyLanguageConfidenceThreshold and for identifying possible languages is DefaultIdentifyPossibleLanguagesConfidenceThreshold.

    Declaration

    Objective-C

    @property (readonly, nonatomic) float confidenceThreshold;
  • Creates a new instance of language identification options with the given confidence threshold.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithConfidenceThreshold:(float)confidenceThreshold;

    Parameters

    confidenceThreshold

    The confidence threshold for language identification.

    Return Value

    A new instance of LanguageIdentificationOptions with the given confidence threshold.

  • UNAVAILABLE

    Declaration

    Objective-C

    - (nonnull instancetype)init;