Contents

init(locale:identifier:version:)

Constructs an empty data container.

Declaration

init(locale: Locale, identifier: String, version: String)

Parameters

  • locale:

    The region and language of the training data (must match with the locale used to construct the SFSpeechRecognizer later)

  • identifier:

    Used to uniquely identify the resulting language model on the device where it will be processed

  • version:

    Used to distinguish different versions of the language model on the device where it will be processed

Discussion

The SFCustomLanguageModelData class accumulates language model training and custom vocabulary data, both associated with a specified locale. This initializer creates an object that initially holds no data.

See Also

Creating a model data container