Package opennlp.tools.ml.maxent.io
Klasse GISModelReader
java.lang.Object
opennlp.tools.ml.model.AbstractModelReader
opennlp.tools.ml.maxent.io.GISModelReader
- Bekannte direkte Unterklassen:
- BinaryGISModelReader,- QNModelReader
The base class for readers of 
GIS models.
 Format for the GIS maxent info (.mei) files:
 
GIS (model type identifier)
 
1. # of parameters (int)
 
2. the correction constant (int)
 
3. the correction constant parameter (double)
 
4. # of outcomes (int)
 
   * list of outcome names (String)
 
5. # of different types of outcome patterns (int)
 
   * list of (int int[])
 
    [# of predicates for which outcome pattern is true] [outcome pattern]
 
6. # of predicates (int)
 
   * list of predicate names (String)
- Siehe auch:
- 
KonstruktorübersichtKonstruktorenKonstruktorBeschreibungGISModelReader(File file) Initializes aGISModelReadervia aFile.GISModelReader(DataReader dataReader) Initializes aGISModelReadervia aDataReader.
- 
MethodenübersichtModifizierer und TypMethodeBeschreibungvoidChecks the model type via the the underlyingDataReader.Retrieves a model from disk.Von Klasse geerbte Methoden opennlp.tools.ml.model.AbstractModelReadergetModel, readDouble, readInt, readUTF
- 
Konstruktordetails- 
GISModelReaderInitializes aGISModelReadervia aFile.- Parameter:
- file- The- Filethat references the model to be read.
- Löst aus:
- IOException- Thrown if IO errors occurred.
 
- 
GISModelReaderInitializes aGISModelReadervia aDataReader.- Parameter:
- dataReader- The- DataReaderthat references the model to be read.
 
 
- 
- 
Methodendetails- 
constructModelRetrieves 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. - Angegeben von:
- constructModelin Klasse- AbstractModelReader
- Gibt zurück:
- The GISModelstored in the format and location specified to thisGISModelReader(usually via its constructor).
- Löst aus:
- IOException- Thrown if IO errors occurred during (re-)construction.
 
- 
checkModelTypeBeschreibung aus Klasse kopiert:AbstractModelReaderChecks the model type via the the underlyingDataReader.- Angegeben von:
- checkModelTypein Klasse- AbstractModelReader
- Löst aus:
- IOException- Thrown if IO errors occurred checking the model type.
 
 
-