Contents

insert(phraseCount:)

Add a sample to the body of training data.

Declaration

func insert(phraseCount: SFCustomLanguageModelData.PhraseCount)

Parameters

  • phraseCount:

    A sample of text on which to train your custom language model

Discussion

This class accumulates text data that will later be used to train a language model, which can be provided to an SFSpeechRecognizer to improve performance on certain phrases.

See Also

Adding phrases