Creates a word tagger from a training set in an array of tokens and their labels.
- macOS 10.14+
- Xcode 10.0+
- Create ML
The array of tuples containing the tokens and their labels.
The model parameters to use when creating the word tagger.
You use this initializer to create a word tagger when your training data are in arrays in memory. For example, start with an array of tokens and an array of labels, one for each token.
Then create the word tagger by putting the arrays into a tuple.