Class DoccatModel

Namespace
NOpenNLP.Tools.Doccat
Assembly
NOpenNLP.Tools.dll

A model for document categorization

public class DoccatModel : BaseModel, IArtifactProvider
Inheritance
DoccatModel
Implements
Inherited Members

Constructors

DoccatModel(FileInfo)

public DoccatModel(FileInfo modelFile)

Parameters

modelFile FileInfo

DoccatModel(Stream)

public DoccatModel(Stream @in)

Parameters

in Stream

DoccatModel(string, IMaxentModel, IDictionary<string, string>?, DoccatFactory)

public DoccatModel(string languageCode, IMaxentModel doccatModel, IDictionary<string, string>? manifestInfoEntries, DoccatFactory factory)

Parameters

languageCode string
doccatModel IMaxentModel
manifestInfoEntries IDictionary<string, string>
factory DoccatFactory

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.

Factory

public virtual DoccatFactory Factory { get; }

Property Value

DoccatFactory

MaxentModel

public virtual IMaxentModel MaxentModel { get; }

Property Value

IMaxentModel

Methods

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()

Exceptions

InvalidFormatException