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