init(contentsOf:)
Creates a Natural Language gazetteer from a model created with the Create ML framework.
Declaration
init(contentsOf url: URL) throwsParameters
- url:
The location of the .
mlmodelfile that contains a gazetteer.
Discussion
Use this initializer to create an NLGazetteer from an .mlmodel file saved by MLGazetteer in the Create ML framework.