Creates a gazetteer from a set of labels for terms represented by a data table.
SDKs
- macOS 10.14+
- Xcode 11.0+
Framework
- Create ML
Declaration
init(labeledData: MLData Table, textColumn: String, labelColumn: String, parameters: MLGazetteer.Model Parameters = ModelParameters()) throws
Parameters
labeledData
The labels, and the words or phrases for those labels contained in an
MLData
.Table textColumn
The name of the column containing the terms.
labelColumn
The name of the column containing the labels for the terms.
parameters
Parameters that you use to configure the gazetteer.