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 aQNModelReader
via aFile
.QNModelReader
(DataReader dataReader) Initializes aQNModelReader
via aDataReader
. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoid
Checks 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 aQNModelReader
via aDataReader
.- Parameter:
dataReader
- TheDataReader
that references the model to be read.
-
QNModelReader
Initializes aQNModelReader
via aFile
.- Parameter:
file
- TheFile
that references the model to be read.- Löst aus:
IOException
- Thrown if IO errors occurred.
-
-
Methodendetails
-
checkModelType
Beschreibung aus Klasse kopiert:AbstractModelReader
Checks the model type via the the underlyingDataReader
.- Setzt außer Kraft:
checkModelType
in 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:
constructModel
in KlasseGISModelReader
- Gibt zurück:
- The
QNModel
stored in the format and location specified to thisQNModelReader
(usually via its constructor). - Löst aus:
IOException
- Thrown if IO errors occurred during (re-)construction.
-