Class ChunkerModel
The ChunkerModel is the model used by a learnable IChunker.
public class ChunkerModel : BaseModel, IArtifactProvider
- Inheritance
-
ChunkerModel
- Implements
- Inherited Members
Constructors
ChunkerModel(FileInfo)
public ChunkerModel(FileInfo modelFile)
Parameters
modelFileFileInfo
ChunkerModel(Stream)
public ChunkerModel(Stream @in)
Parameters
inStream
ChunkerModel(string)
public ChunkerModel(string modelPath)
Parameters
modelPathstring
ChunkerModel(string, IMaxentModel, ChunkerFactory)
public ChunkerModel(string languageCode, IMaxentModel chunkerModel, ChunkerFactory factory)
Parameters
languageCodestringchunkerModelIMaxentModelfactoryChunkerFactory
ChunkerModel(string, IMaxentModel, Dictionary<string, string>, ChunkerFactory)
public ChunkerModel(string languageCode, IMaxentModel chunkerModel, Dictionary<string, string> manifestInfoEntries, ChunkerFactory factory)
Parameters
languageCodestringchunkerModelIMaxentModelmanifestInfoEntriesDictionary<string, string>factoryChunkerFactory
ChunkerModel(string, IMaxentModel, int, Dictionary<string, string>, ChunkerFactory)
public ChunkerModel(string languageCode, IMaxentModel chunkerModel, int beamSize, Dictionary<string, string> manifestInfoEntries, ChunkerFactory factory)
Parameters
languageCodestringchunkerModelIMaxentModelbeamSizeintmanifestInfoEntriesDictionary<string, string>factoryChunkerFactory
ChunkerModel(string, ISequenceClassificationModel<string>, Dictionary<string, string>, ChunkerFactory)
public ChunkerModel(string languageCode, ISequenceClassificationModel<string> chunkerModel, Dictionary<string, string> manifestInfoEntries, ChunkerFactory factory)
Parameters
languageCodestringchunkerModelISequenceClassificationModel<string>manifestInfoEntriesDictionary<string, string>factoryChunkerFactory
Properties
ChunkerModelValue
[Obsolete("Use ChunkerSequenceModel instead. This property will be removed soon.")]
public virtual IMaxentModel? ChunkerModelValue { get; }
Property Value
Remarks
NOpenNLP: This was getChunkerModel() in Java.
ChunkerSequenceModel
public virtual ISequenceClassificationModel<TokenTag>? ChunkerSequenceModel { get; }
Property Value
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 ChunkerFactory Factory { get; }
Property Value
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()