opennlp.uima.doccat
Class DocumentCategorizerTrainer

java.lang.Object
  extended by org.apache.uima.resource.Resource_ImplBase
      extended by org.apache.uima.resource.ConfigurableResource_ImplBase
          extended by org.apache.uima.collection.CasConsumer_ImplBase
              extended by opennlp.uima.doccat.DocumentCategorizerTrainer
All Implemented Interfaces:
org.apache.uima.collection.base_cpm.CasObjectProcessor, org.apache.uima.collection.base_cpm.CasProcessor, org.apache.uima.collection.CasConsumer, org.apache.uima.resource.ConfigurableResource, org.apache.uima.resource.Resource

public class DocumentCategorizerTrainer
extends org.apache.uima.collection.CasConsumer_ImplBase

OpenNLP NameFinder trainer. Note: This class is still work in progress, and should not be used!


Field Summary
 
Fields inherited from interface org.apache.uima.resource.Resource
PARAM_AGGREGATE_SOFA_MAPPINGS, PARAM_CONFIG_PARAM_SETTINGS, PARAM_PERFORMANCE_TUNING_SETTINGS, PARAM_RESOURCE_MANAGER, PARAM_UIMA_CONTEXT
 
Constructor Summary
DocumentCategorizerTrainer()
           
 
Method Summary
 void collectionProcessComplete(org.apache.uima.util.ProcessTrace trace)
           
 void destroy()
          Destroys the current instance.
 void initialize()
           
 boolean isStateless()
          The trainer is not stateless.
 void processCas(org.apache.uima.cas.CAS cas)
           
 void typeSystemInit(org.apache.uima.cas.TypeSystem typeSystem)
           
 
Methods inherited from class org.apache.uima.collection.CasConsumer_ImplBase
batchProcessComplete, getProcessingResourceMetaData, initialize, isReadOnly, processCas, reconfigure
 
Methods inherited from class org.apache.uima.resource.ConfigurableResource_ImplBase
getConfigParameterValue, getConfigParameterValue, setConfigParameterValue, setConfigParameterValue
 
Methods inherited from class org.apache.uima.resource.Resource_ImplBase
getCasManager, getLogger, getMetaData, getResourceManager, getUimaContext, getUimaContextAdmin, setLogger
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.uima.resource.ConfigurableResource
getConfigParameterValue, getConfigParameterValue, setConfigParameterValue, setConfigParameterValue
 
Methods inherited from interface org.apache.uima.resource.Resource
getLogger, getMetaData, getResourceManager, getUimaContext, getUimaContextAdmin, setLogger
 

Constructor Detail

DocumentCategorizerTrainer

public DocumentCategorizerTrainer()
Method Detail

initialize

public void initialize()
                throws org.apache.uima.resource.ResourceInitializationException
Overrides:
initialize in class org.apache.uima.collection.CasConsumer_ImplBase
Throws:
org.apache.uima.resource.ResourceInitializationException

typeSystemInit

public void typeSystemInit(org.apache.uima.cas.TypeSystem typeSystem)
                    throws org.apache.uima.resource.ResourceInitializationException
Specified by:
typeSystemInit in interface org.apache.uima.collection.base_cpm.CasObjectProcessor
Overrides:
typeSystemInit in class org.apache.uima.collection.CasConsumer_ImplBase
Throws:
org.apache.uima.resource.ResourceInitializationException

processCas

public void processCas(org.apache.uima.cas.CAS cas)
                throws org.apache.uima.resource.ResourceProcessException
Throws:
org.apache.uima.resource.ResourceProcessException

collectionProcessComplete

public void collectionProcessComplete(org.apache.uima.util.ProcessTrace trace)
                               throws org.apache.uima.resource.ResourceProcessException,
                                      IOException
Specified by:
collectionProcessComplete in interface org.apache.uima.collection.base_cpm.CasProcessor
Overrides:
collectionProcessComplete in class org.apache.uima.collection.CasConsumer_ImplBase
Throws:
org.apache.uima.resource.ResourceProcessException
IOException

isStateless

public boolean isStateless()
The trainer is not stateless.

Specified by:
isStateless in interface org.apache.uima.collection.base_cpm.CasProcessor
Overrides:
isStateless in class org.apache.uima.collection.CasConsumer_ImplBase

destroy

public void destroy()
Destroys the current instance.

Specified by:
destroy in interface org.apache.uima.resource.Resource
Overrides:
destroy in class org.apache.uima.collection.CasConsumer_ImplBase


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