public class GISModelReader
extends opennlp.model.AbstractModelReader
| Constructor and Description |
|---|
GISModelReader(opennlp.model.DataReader dataReader) |
GISModelReader(java.io.File file) |
| Modifier and Type | Method and Description |
|---|---|
void |
checkModelType() |
opennlp.model.AbstractModel |
constructModel()
Retrieve a model from disk.
|
protected int |
getCorrectionConstant() |
protected double |
getCorrectionParameter() |
public GISModelReader(java.io.File file)
throws java.io.IOException
java.io.IOExceptionpublic GISModelReader(opennlp.model.DataReader dataReader)
public opennlp.model.AbstractModel constructModel()
throws java.io.IOException
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.
constructModel in class opennlp.model.AbstractModelReaderjava.io.IOExceptionpublic void checkModelType()
throws java.io.IOException
checkModelType in class opennlp.model.AbstractModelReaderjava.io.IOExceptionprotected int getCorrectionConstant()
throws java.io.IOException
java.io.IOExceptionprotected double getCorrectionParameter()
throws java.io.IOException
java.io.IOExceptionCopyright ? 2008 Jason Baldridge, Gann Bierner, and Thomas Morton. All Rights Reserved.