Contents

init(dictionary:language:)

Creates a gazetteer from a set of labels for terms represented by a dictionary.

Declaration

init(dictionary: [String : [String]], language: NLLanguage?) throws

Parameters

  • dictionary:

    The dictionary of labels and an array of terms for each label.

  • language:

    The language of the text in the dictionary.

See Also

Creating a Gazetteer