Initializer

init(labeledData:textColumn:labelColumn:parameters:)

Creates a gazetteer from a set of labels for terms represented by a data table.

Declaration

init(labeledData: MLDataTable, textColumn: String, labelColumn: String, parameters: MLGazetteer.ModelParameters = ModelParameters()) throws

Parameters

labeledData

The labels, and the words or phrases for those labels contained in an MLDataTable.

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.

See Also

Creating a Gazetteer

init(dictionary: [String : [String]], parameters: MLGazetteer.ModelParameters)

Creates a gazetteer from a set of labels for terms represented by a dictionary.

struct MLGazetteer.ModelParameters

The parameters that configure a gazetteer.

let modelParameters: MLGazetteer.ModelParameters

The configuration parameters that the gazetteer used during initialization.