Initializer

init(dictionary:parameters:)

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

Declaration

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

Parameters

dictionary

The dictionary of labels and an array of terms for each label.

parameters

Parameters that you use to configure the gazetteer.

See Also

Creating a Gazetteer

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

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

struct MLGazetteer.ModelParameters

The parameters that configure a gazetteer.

let modelParameters: MLGazetteer.ModelParameters

The configuration parameters that the gazetteer used during initialization.