Class AbstractModelResource<T>

java.lang.Object
opennlp.uima.util.AbstractModelResource<T>
Type Parameters:
T - The generic type to handle as a shared resource.
All Implemented Interfaces:
org.apache.uima.resource.SharedResourceObject
Direct Known Subclasses:
ChunkerModelResourceImpl, DictionaryResourceImpl, DoccatModelResourceImpl, ParserModelResourceImpl, POSModelResourceImpl, SentenceModelResourceImpl, TokenizerModelResourceImpl, TokenNameFinderModelResourceImpl

public abstract class AbstractModelResource<T> extends Object implements org.apache.uima.resource.SharedResourceObject
Base class provides access to a shared resource, eg. a model or dictionary.
See Also:
  • SharedResourceObject
  • Constructor Details

    • AbstractModelResource

      public AbstractModelResource()
  • Method Details

    • load

      public void load(org.apache.uima.resource.DataResource resource) throws org.apache.uima.resource.ResourceInitializationException
      Specified by:
      load in interface org.apache.uima.resource.SharedResourceObject
      Throws:
      org.apache.uima.resource.ResourceInitializationException