init(labeledData:textColumn:labelColumn:parameters:)
Creates a gazetteer from a table of labels and terms.
Declaration
init(labeledData: MLDataTable, textColumn: String, labelColumn: String, parameters: MLGazetteer.ModelParameters = ModelParameters()) throwsParameters
- labeledData:
A table of labels and terms.
- textColumn:
The name of the column containing the terms.
- labelColumn:
The name of the column containing the labels.
- parameters:
The model parameters.