Package opennlp.tools.ml.model
Class GenericModelReader
- java.lang.Object
-
- opennlp.tools.ml.model.AbstractModelReader
-
- opennlp.tools.ml.model.GenericModelReader
-
public class GenericModelReader extends AbstractModelReader
-
-
Constructor Summary
Constructors Constructor Description GenericModelReader(java.io.File f)
GenericModelReader(DataReader dataReader)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
checkModelType()
AbstractModel
constructModel()
-
Methods inherited from class opennlp.tools.ml.model.AbstractModelReader
getModel, readDouble, readInt, readUTF
-
-
-
-
Constructor Detail
-
GenericModelReader
public GenericModelReader(java.io.File f) throws java.io.IOException
- Throws:
java.io.IOException
-
GenericModelReader
public GenericModelReader(DataReader dataReader)
-
-
Method Detail
-
checkModelType
public void checkModelType() throws java.io.IOException
- Specified by:
checkModelType
in classAbstractModelReader
- Throws:
java.io.IOException
-
constructModel
public AbstractModel constructModel() throws java.io.IOException
- Specified by:
constructModel
in classAbstractModelReader
- Throws:
java.io.IOException
-
-