makeAsyncIterator
TypeScriptmakeAsyncIterator(): SFCustomLanguageModelData_PhraseCountGenerator_IteratorSwift declarationoverride func makeAsyncIterator() -> SFCustomLanguageModelData.PhraseCountGenerator.Iteratorclass · iOS 17.0+ · SDK 27.1
class TemplatePhraseCountGeneratorA `PhraseCountGenerator` that produces `PhraseCount` values based on templates.
makeAsyncIterator(): SFCustomLanguageModelData_PhraseCountGenerator_IteratorSwift declarationoverride func makeAsyncIterator() -> SFCustomLanguageModelData.PhraseCountGenerator.Iteratordefine(className: string, values: Array<string>): voidSwift declarationfunc define(className: String, values: [String])Define a class of tokens to be used in template strings. - Parameters: - className: A string which will appear in template strings inside of angle brackets. - values: The set of values which may be substituted into the template strings.
insert(template: string, count: number): voidSwift declarationfunc insert(template: String, count: Int)Add a template to be used to generate data samples. - Parameters: - template: A string, possibly containing references to classes enclosed in angle brackets. - count: the total number of data samples that will be generated by expanding the template string.
static init(): SFCustomLanguageModelData_TemplatePhraseCountGeneratorSwift declarationoverride init()No declarations were skipped in this snapshot.