opennlp.model
Class GenericModelReader

java.lang.Object
  extended by opennlp.model.AbstractModelReader
      extended by opennlp.model.GenericModelReader

public class GenericModelReader
extends AbstractModelReader


Constructor Summary
GenericModelReader(DataReader dataReader)
           
GenericModelReader(java.io.File f)
           
 
Method Summary
 void checkModelType()
           
 AbstractModel constructModel()
           
static void main(java.lang.String[] args)
           
 
Methods inherited from class opennlp.model.AbstractModelReader
getModel, readDouble, readInt, readUTF
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GenericModelReader

public GenericModelReader(java.io.File f)
                   throws java.io.IOException
Throws:
java.io.IOException

GenericModelReader

public GenericModelReader(DataReader dataReader)
Method Detail

checkModelType

public void checkModelType()
                    throws java.io.IOException
Specified by:
checkModelType in class AbstractModelReader
Throws:
java.io.IOException

constructModel

public AbstractModel constructModel()
                             throws java.io.IOException
Specified by:
constructModel in class AbstractModelReader
Throws:
java.io.IOException

main

public static void main(java.lang.String[] args)
                 throws java.io.IOException
Throws:
java.io.IOException


Copyright © 2011 The Apache Software Foundation. All Rights Reserved.