opennlp.maxent.io
Class PlainTextGISModelReader
java.lang.Object
opennlp.model.AbstractModelReader
opennlp.maxent.io.GISModelReader
opennlp.maxent.io.PlainTextGISModelReader
- Direct Known Subclasses:
- OldFormatGISModelReader
public class PlainTextGISModelReader
- extends GISModelReader
A reader for GIS models stored in plain text format.
PlainTextGISModelReader
public PlainTextGISModelReader(BufferedReader br)
- Constructor which directly instantiates the BufferedReader containing the
model contents.
- Parameters:
br
- The BufferedReader containing the model information.
PlainTextGISModelReader
public PlainTextGISModelReader(File f)
throws 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:
IOException
Copyright © 2013 The Apache Software Foundation. All Rights Reserved.