edu.upenn.cis.taggers
Class Model

java.lang.Object
  extended by edu.upenn.cis.taggers.Model

public class Model
extends java.lang.Object


Field Summary
static java.lang.String GZIP_EXTENSION
           
static java.lang.String RAW_MODEL_EXTENSION
           
 
Constructor Summary
Model()
           
 
Method Summary
static edu.umass.cs.mallet.base.fst.CRF4 loadAndRetrieveModel(java.io.InputStream is)
           
static edu.umass.cs.mallet.base.fst.CRF4 loadAndRetrieveModel(java.lang.String modelLocation)
           
static edu.umass.cs.mallet.base.fst.CRF4 loadAndRetrieveModelFromClassPathResource(java.lang.String modelPath, java.lang.Class c)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

GZIP_EXTENSION

public static final java.lang.String GZIP_EXTENSION
See Also:
Constant Field Values

RAW_MODEL_EXTENSION

public static final java.lang.String RAW_MODEL_EXTENSION
See Also:
Constant Field Values
Constructor Detail

Model

public Model()
Method Detail

loadAndRetrieveModelFromClassPathResource

public static edu.umass.cs.mallet.base.fst.CRF4 loadAndRetrieveModelFromClassPathResource(java.lang.String modelPath,
                                                                                          java.lang.Class c)
                                                                                   throws LoadModelException
Throws:
LoadModelException

loadAndRetrieveModel

public static edu.umass.cs.mallet.base.fst.CRF4 loadAndRetrieveModel(java.lang.String modelLocation)
                                                              throws LoadModelException
Throws:
LoadModelException

loadAndRetrieveModel

public static edu.umass.cs.mallet.base.fst.CRF4 loadAndRetrieveModel(java.io.InputStream is)
                                                              throws LoadModelException
Throws:
LoadModelException