前往主控台

FirebaseMLNLLanguageID Framework Reference

FIRNaturalLanguage(LanguageID)

A category for NaturalLanguage that contains LanguageIdentification APIs.

  • Gets a language identification instance with the default options.

    Declaration

    Swift

    func languageIdentification() -> FIRLanguageIdentification

    Return Value

    A new instance of LanguageIdentification with the default options.

  • Gets a language identification instance with the given options.

    Declaration

    Swift

    func languageIdentification(options: FIRLanguageIdentificationOptions) -> FIRLanguageIdentification

    Parameters

    options

    The options used for language identification.

    Return Value

    A new instance of LanguageIdentification with the given options.