Class DocumentCategorizer

java.lang.Object
org.apache.uima.analysis_component.AnalysisComponent_ImplBase
org.apache.uima.analysis_component.Annotator_ImplBase
org.apache.uima.analysis_component.CasAnnotator_ImplBase
opennlp.uima.doccat.AbstractDocumentCategorizer
opennlp.uima.doccat.DocumentCategorizer
All Implemented Interfaces:
org.apache.uima.analysis_component.AnalysisComponent

public class DocumentCategorizer extends AbstractDocumentCategorizer
A default implementation of an OpenNLP Document Categorizer.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private org.apache.uima.cas.Feature
     
    private org.apache.uima.cas.Type
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    setBestCategory(org.apache.uima.cas.CAS tcas, String bestCategory)
     
    void
    typeSystemInit(org.apache.uima.cas.TypeSystem typeSystem)
     

    Methods inherited from class AbstractDocumentCategorizer

    initialize, process

    Methods inherited from class org.apache.uima.analysis_component.CasAnnotator_ImplBase

    getRequiredCasInterface, process

    Methods inherited from class org.apache.uima.analysis_component.Annotator_ImplBase

    getCasInstancesRequired, hasNext, next

    Methods inherited from class org.apache.uima.analysis_component.AnalysisComponent_ImplBase

    batchProcessComplete, collectionProcessComplete, destroy, getContext, getLogger, getResultSpecification, reconfigure, setResultSpecification

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • mCategoryType

      private org.apache.uima.cas.Type mCategoryType
    • mCategoryFeature

      private org.apache.uima.cas.Feature mCategoryFeature
  • Constructor Details

    • DocumentCategorizer

      public DocumentCategorizer()
  • Method Details

    • typeSystemInit

      public void typeSystemInit(org.apache.uima.cas.TypeSystem typeSystem) throws org.apache.uima.analysis_engine.AnalysisEngineProcessException
      Overrides:
      typeSystemInit in class AbstractDocumentCategorizer
      Throws:
      org.apache.uima.analysis_engine.AnalysisEngineProcessException
    • setBestCategory

      protected void setBestCategory(org.apache.uima.cas.CAS tcas, String bestCategory)
      Specified by:
      setBestCategory in class AbstractDocumentCategorizer