Class LemmatizerModel
- Namespace
- NOpenNLP.Tools.Lemmatizer
- Assembly
- NOpenNLP.Tools.dll
The LemmatizerModel is the model used by a learnable ILemmatizer.
public class LemmatizerModel : BaseModel, IArtifactProvider
- Inheritance
-
LemmatizerModel
- Implements
- Inherited Members
Constructors
LemmatizerModel(FileInfo)
public LemmatizerModel(FileInfo modelFile)
Parameters
modelFileFileInfo
LemmatizerModel(Stream)
public LemmatizerModel(Stream @in)
Parameters
inStream
LemmatizerModel(string)
public LemmatizerModel(string modelPath)
Parameters
modelPathstring
LemmatizerModel(string, IMaxentModel, LemmatizerFactory)
public LemmatizerModel(string languageCode, IMaxentModel lemmatizerModel, LemmatizerFactory factory)
Parameters
languageCodestringlemmatizerModelIMaxentModelfactoryLemmatizerFactory
LemmatizerModel(string, IMaxentModel, IDictionary<string, string>, LemmatizerFactory)
public LemmatizerModel(string languageCode, IMaxentModel lemmatizerModel, IDictionary<string, string> manifestInfoEntries, LemmatizerFactory factory)
Parameters
languageCodestringlemmatizerModelIMaxentModelmanifestInfoEntriesIDictionary<string, string>factoryLemmatizerFactory
LemmatizerModel(string, IMaxentModel, int, IDictionary<string, string>, LemmatizerFactory)
public LemmatizerModel(string languageCode, IMaxentModel lemmatizerModel, int beamSize, IDictionary<string, string> manifestInfoEntries, LemmatizerFactory factory)
Parameters
languageCodestringlemmatizerModelIMaxentModelbeamSizeintmanifestInfoEntriesIDictionary<string, string>factoryLemmatizerFactory
LemmatizerModel(string, ISequenceClassificationModel<string>, IDictionary<string, string>, LemmatizerFactory)
public LemmatizerModel(string languageCode, ISequenceClassificationModel<string> lemmatizerModel, IDictionary<string, string> manifestInfoEntries, LemmatizerFactory factory)
Parameters
languageCodestringlemmatizerModelISequenceClassificationModel<string>manifestInfoEntriesIDictionary<string, string>factoryLemmatizerFactory
Properties
DefaultFactory
Sub-classes should override this method if their module has a default BaseToolFactory sub-class.
protected override Type DefaultFactory { get; }
Property Value
- Type
the default BaseToolFactory for the module, or null if none.
LemmatizerSequenceModel
public virtual ISequenceClassificationModel<string>? LemmatizerSequenceModel { get; }
Property Value
Methods
GetFactory()
public virtual LemmatizerFactory GetFactory()
Returns
ValidateArtifactMap()
Validates the parsed artifacts. If something is not valid subclasses should throw an InvalidFormatException.
Note: Subclasses should generally invoke super.validateArtifactMap at the beginning of this method.
protected override void ValidateArtifactMap()