Package opennlp.tools.ml.maxent.io
Klasse QNModelReader
java.lang.Object
opennlp.tools.ml.model.AbstractModelReader
opennlp.tools.ml.maxent.io.GISModelReader
opennlp.tools.ml.maxent.io.QNModelReader
- Bekannte direkte Unterklassen:
BinaryQNModelReader
The base class for readers of
QN models.- Siehe auch:
-
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungQNModelReader(File file) Initializes aQNModelReadervia aFile.QNModelReader(DataReader dataReader) Initializes aQNModelReadervia aDataReader. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoidChecks the model type via the the underlyingDataReader.Retrieves a model from disk.Von Klasse geerbte Methoden opennlp.tools.ml.model.AbstractModelReader
getModel, readDouble, readInt, readUTF
-
Konstruktordetails
-
QNModelReader
Initializes aQNModelReadervia aDataReader.- Parameter:
dataReader- TheDataReaderthat references the model to be read.
-
QNModelReader
Initializes aQNModelReadervia aFile.- Parameter:
file- TheFilethat references the model to be read.- Löst aus:
IOException- Thrown if IO errors occurred.
-
-
Methodendetails
-
checkModelType
Beschreibung aus Klasse kopiert:AbstractModelReaderChecks the model type via the the underlyingDataReader.- Setzt außer Kraft:
checkModelTypein KlasseGISModelReader- Löst aus:
IOException- Thrown if IO errors occurred checking the model type.
-
constructModel
Retrieves a model from disk.If you are creating a reader for a format which won't work with this (perhaps a database or xml file), override this method and ignore the other methods provided in this abstract class.
- Setzt außer Kraft:
constructModelin KlasseGISModelReader- Gibt zurück:
- The
QNModelstored in the format and location specified to thisQNModelReader(usually via its constructor). - Löst aus:
IOException- Thrown if IO errors occurred during (re-)construction.
-