Düzenle

Aracılığıyla paylaş


NLModel.Create Method

Definition

Overloads

Create(MLModel, NSError)

Creates and returns a new NLModel from the provided custom tagging or language recognition model.

Create(NSUrl, NSError)

Creates and returns a new NLModel from the custom tagging or language recognition model at the specified url.

Create(MLModel, NSError)

Creates and returns a new NLModel from the provided custom tagging or language recognition model.

[Foundation.Export("modelWithMLModel:error:")]
public static NaturalLanguage.NLModel Create (CoreML.MLModel mlModel, out Foundation.NSError error);
static member Create : CoreML.MLModel *  -> NaturalLanguage.NLModel

Parameters

mlModel
MLModel

The model to import.

error
NSError

Returns

Attributes

Applies to

Create(NSUrl, NSError)

Creates and returns a new NLModel from the custom tagging or language recognition model at the specified url.

[Foundation.Export("modelWithContentsOfURL:error:")]
public static NaturalLanguage.NLModel Create (Foundation.NSUrl url, out Foundation.NSError error);
static member Create : Foundation.NSUrl *  -> NaturalLanguage.NLModel

Parameters

url
NSUrl

The location of the custom tagging or language recognition model.

error
NSError

A location in which to write any errors that occur.

Returns

The new model.

Attributes

Applies to