Package opennlp.tools.ml.maxent.io
Class PlainTextGISModelReader
- java.lang.Object
-
- opennlp.tools.ml.model.AbstractModelReader
-
- opennlp.tools.ml.maxent.io.GISModelReader
-
- opennlp.tools.ml.maxent.io.PlainTextGISModelReader
-
- Direct Known Subclasses:
OldFormatGISModelReader
public class PlainTextGISModelReader extends GISModelReader
A reader for GIS models stored in plain text format.
-
-
Constructor Summary
Constructors Constructor Description PlainTextGISModelReader(java.io.BufferedReader br)
Constructor which directly instantiates the BufferedReader containing the model contents.PlainTextGISModelReader(java.io.File f)
Constructor which takes a File and creates a reader for it.
-
Method Summary
-
Methods inherited from class opennlp.tools.ml.maxent.io.GISModelReader
checkModelType, constructModel
-
Methods inherited from class opennlp.tools.ml.model.AbstractModelReader
getModel, readDouble, readInt, readUTF
-
-
-
-
Constructor Detail
-
PlainTextGISModelReader
public PlainTextGISModelReader(java.io.BufferedReader br)
Constructor which directly instantiates the BufferedReader containing the model contents.- Parameters:
br
- The BufferedReader containing the model information.
-
PlainTextGISModelReader
public PlainTextGISModelReader(java.io.File f) throws java.io.IOException
Constructor which takes a File and creates a reader for it. Detects whether the file is gzipped or not based on whether the suffix contains ".gz".- Parameters:
f
- The File in which the model is stored.- Throws:
java.io.IOException
-
-