Class

NLModelConfiguration

The configuration parameters of a natural language model.

Declaration

class NLModelConfiguration : NSObject

Topics

Accessing the Configuration

var language: NLLanguage?

The language the model supports.

var revision: Int

The version of the Natural Language framework that trained the model.

class func supportedRevisions(for: NLModel.ModelType) -> IndexSet

Returns the versions of the Natural Language framework the OS supports.

class func currentRevision(for: NLModel.ModelType) -> Int

Returns the current Natural Language framework version in the OS.

var type: NLModel.ModelType

The natural language model type of the model.

enum NLModel.ModelType

The different types of a natural language model.

Relationships

Inherits From

See Also

Inspecting a Model

var configuration: NLModelConfiguration

A configuration describing the natural language model.