Structure

MLGazetteer.ModelParameters

The parameters that configure a gazetteer.

Declaration

struct MLGazetteer.ModelParameters

Overview

You use MLGazetteer.ModelParameters to configure a gazetteer, such as its language, during initialization, or to inspect its configuration.

Topics

Creating Parameters

init(language: NLLanguage?)

Creates a new set of gazetteer parameters.

Accessing Parameters

var language: NLLanguage?

The gazetteer’s language setting.

Describing Parameters

var description: String

A text representation of the gazetteer settings.

var debugDescription: String

A text representation of the gazetteer settings that’s suitable for output during debugging.

var playgroundDescription: Any

A description of the gazetteer settings shown in a playground.

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.

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.

let modelParameters: MLGazetteer.ModelParameters

The configuration parameters that the gazetteer used during initialization.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software