Class

NLModelConfiguration

The configuration parameters of a natural language model.

Declaration

class NLModelConfiguration : NSObject

Topics

Accessing the Configuration

var language: NLLanguage?

The language that the model supports.

var revision: Int

The Natural Language framework version of the OS that the model was trained on.

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

Returns the Natural Language framework versions that are supported by the OS.

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

Returns the current Natural Language framework version in the OS.

var type: NLModel.ModelType

The type of this 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.