NLModel.Create Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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 |
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