Instance Method


Assigns models for a tag scheme.


func setModels(_ models: [NLModel], forTagScheme tagScheme: NLTagScheme)



Array of NLModel objects to be used with this tagger.


The tag scheme the models would be used with.


An array of models is allowed for the case where multiple models need to be used. For example, when models were trained on specific languages.

See Also

Using Models with a Tagger

func models(forTagScheme: NLTagScheme) -> [NLModel]

Returns the models that apply to the given tag scheme.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software