Class ModelLoader<T>

Namespace
NOpenNLP.Tools.Cmdline
Assembly
nopennlp.dll

Loads a model and does all the error handling for the command line tools.

Note: Do not use this class, internal use only!
public abstract class ModelLoader<T>

Type Parameters

T
Inheritance
ModelLoader<T>
Derived
Inherited Members

Constructors

ModelLoader(string)

Loads a model and does all the error handling for the command line tools.

Note: Do not use this class, internal use only!
protected ModelLoader(string modelName)

Parameters

modelName string

Methods

Load(FileInfo)

public T Load(FileInfo modelFile)

Parameters

modelFile FileInfo

Returns

T

LoadModel(Stream)

protected abstract T LoadModel(Stream modelIn)

Parameters

modelIn Stream

Returns

T

Exceptions

IOException

if the model cannot be read