Package opennlp.tools.ml.model
Class GenericModelReader
java.lang.Object
opennlp.tools.ml.model.AbstractModelReader
opennlp.tools.ml.model.GenericModelReader
An generic 
AbstractModelReader implementation.- See Also:
- 
Constructor SummaryConstructorsConstructorDescriptionInitializes aGenericModelReadervia aFile.GenericModelReader(DataReader dataReader) Initializes aGenericModelReadervia aDataReader.
- 
Method SummaryModifier and TypeMethodDescriptionvoidChecks the model type via the the underlyingDataReader.Constructs amodel.Methods inherited from class opennlp.tools.ml.model.AbstractModelReadergetModel, readDouble, readInt, readUTF
- 
Constructor Details- 
GenericModelReaderInitializes aGenericModelReadervia aFile.- Parameters:
- f- The- Filethat references the model to be read.
- Throws:
- IOException- Thrown if IO errors occurred.
 
- 
GenericModelReaderInitializes aGenericModelReadervia aDataReader.- Parameters:
- dataReader- The- DataReaderthat references the model to be read.
 
 
- 
- 
Method Details- 
checkModelTypeDescription copied from class:AbstractModelReaderChecks the model type via the the underlyingDataReader.- Specified by:
- checkModelTypein class- AbstractModelReader
- Throws:
- IOException- Thrown if IO errors occurred checking the model type.
 
- 
constructModelDescription copied from class:AbstractModelReaderConstructs amodel.- Specified by:
- constructModelin class- AbstractModelReader
- Returns:
- A AbstractModelreconstructed from a model's (read) attributes.
- Throws:
- IOException- Thrown if IO errors occurred during (re-)construction.
 
 
-