Interface IArtifactProvider

Namespace
NOpenNLP.Tools.Util.Model
Assembly
NOpenNLP.Tools.dll

Provides access to model persisted artifacts.

public interface IArtifactProvider

Properties

Language

Retrieves the language code of the material which was used to train the model or x-unspecified if non was set.

string Language { get; }

Property Value

string

the language code of this model

Methods

GetArtifact<T>(string)

Gets an artifact by name

T? GetArtifact<T>(string key)

Parameters

key string

Returns

T

Type Parameters

T

GetManifestProperty(string)

Retrieves the value to the given key from the manifest.properties entry.

string? GetManifestProperty(string key)

Parameters

key string

Returns

string

the value

IsLoadedFromSerialized()

Indicates if this provider was loaded from serialized. It is useful, for example, while validating artifacts: you can skip the time consuming ones if they where already validated during the serialization.

bool IsLoadedFromSerialized()

Returns

bool

true if this model was loaded from serialized