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(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(File f) throws IOException
- Throws:
IOException
-
GenericModelReader
public GenericModelReader(DataReader dataReader)
-
-
Method Detail
-
checkModelType
public void checkModelType() throws IOException
- Specified by:
checkModelType
in classAbstractModelReader
- Throws:
IOException
-
constructModel
public AbstractModel constructModel() throws IOException
- Specified by:
constructModel
in classAbstractModelReader
- Throws:
IOException
-
-