---
title: "init(contentsOf:)"
framework: naturallanguage
role: symbol
role_heading: Initializer
path: "naturallanguage/nlmodel/init(contentsof:)"
---

# init(contentsOf:)

Creates a new natural language model based on a compiled Core ML model at the given URL.

## Declaration

```swift
convenience init(contentsOf url: URL) throws
```

## Parameters

- `url`: The location of the compiled Core ML model file in the file system (ending with .mlmodelc) that’s the basis for this natural language model.

## See Also

### Creating a model

- [init(mlModel:)](naturallanguage/nlmodel/init(mlmodel:)-9tpjr.md)
