insert(phraseCountGenerator:)
Add a stream of samples to the body of training data.
Declaration
func insert(phraseCountGenerator: SFCustomLanguageModelData.PhraseCountGenerator)Parameters
- phraseCountGenerator:
A generator of phrase counts
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.