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.

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