init(modelIdentifier:)
Creates a contextual embedding from a model identifier.
Declaration
convenience init?(modelIdentifier: String)Parameters
- modelIdentifier:
A string that uniquely identifies the embedding model.
Discussion
If you train a custom model with the contextual embedding as the feature layer, keep track of this identifier and use it when loading the custom model in your app.