Contents

init(contentsOf:)

Creates a Natural Language gazetteer from a model created with the Create ML framework.

Declaration

init(contentsOf url: URL) throws

Parameters

  • url:

    The location of the .mlmodel file that contains a gazetteer.

Discussion

Use this initializer to create an NLGazetteer from an .mlmodel file saved by MLGazetteer in the Create ML framework.

See Also

Creating a Gazetteer