opennlp.model
Class AbstractModelReader
java.lang.Object
opennlp.model.AbstractModelReader
- Direct Known Subclasses:
- GenericModelReader, GISModelReader, PerceptronModelReader
public abstract class AbstractModelReader
- extends Object
AbstractModelReader
public AbstractModelReader(File f)
throws IOException
- Throws:
IOException
AbstractModelReader
public AbstractModelReader(DataReader dataReader)
readInt
public int readInt()
throws IOException
- Implement as needed for the format the model is stored in.
- Throws:
IOException
readDouble
public double readDouble()
throws IOException
- Implement as needed for the format the model is stored in.
- Throws:
IOException
readUTF
public String readUTF()
throws IOException
- Implement as needed for the format the model is stored in.
- Throws:
IOException
getModel
public AbstractModel getModel()
throws IOException
- Throws:
IOException
checkModelType
public abstract void checkModelType()
throws IOException
- Throws:
IOException
constructModel
public abstract AbstractModel constructModel()
throws IOException
- Throws:
IOException
Copyright © 2011 The Apache Software Foundation. All Rights Reserved.