<!--
{
  "availability" : [
    "iOS: 12.0.0 -",
    "iPadOS: 12.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.14.0 -",
    "tvOS: 12.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 5.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "NaturalLanguage",
  "identifier" : "/documentation/NaturalLanguage/NLModelConfiguration",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "Natural Language"
    ],
    "preciseIdentifier" : "c:objc(cs)NLModelConfiguration"
  },
  "title" : "NLModelConfiguration"
}
-->

# NLModelConfiguration

The configuration parameters of a natural language model.

```
class NLModelConfiguration
```

## Topics

### Accessing the configuration

[`language`](/documentation/NaturalLanguage/NLModelConfiguration/language)

The language the model supports.

[`revision`](/documentation/NaturalLanguage/NLModelConfiguration/revision)

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

[`+  supportedRevisionsForType:`](/documentation/NaturalLanguage/NLModelConfiguration/supportedRevisions(for:))

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

[`+  currentRevisionForType:`](/documentation/NaturalLanguage/NLModelConfiguration/currentRevision(for:))

Returns the current Natural Language framework version in the OS.

[`type`](/documentation/NaturalLanguage/NLModelConfiguration/type)

The natural language model type of the model.

[`ModelType`](/documentation/NaturalLanguage/NLModel/ModelType)

The different types of a natural language model.

## Relationships

### Conforms To

[`CustomDebugStringConvertible`](/documentation/Swift/CustomDebugStringConvertible)

[`NSCopying`](/documentation/Foundation/NSCopying)

[`CustomStringConvertible`](/documentation/Swift/CustomStringConvertible)

[`Hashable`](/documentation/Swift/Hashable)

[`Equatable`](/documentation/Swift/Equatable)

[`NSSecureCoding`](/documentation/Foundation/NSSecureCoding)

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

[`CVarArg`](/documentation/Swift/CVarArg)

[`NSCoding`](/documentation/Foundation/NSCoding)

### Inherits From

[`NSObject-swift.class`](/documentation/ObjectiveC/NSObject-swift.class)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)