Class AbstractSentenceDetector

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.sentdetect.AbstractSentenceDetector
All Implemented Interfaces:
org.apache.uima.analysis_component.AnalysisComponent
Direct Known Subclasses:
SentenceDetector

public abstract class AbstractSentenceDetector extends org.apache.uima.analysis_component.CasAnnotator_ImplBase
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected org.apache.uima.cas.Type
     
    protected org.apache.uima.UimaContext
     
    private Boolean
     
    protected org.apache.uima.util.Logger
     
    protected org.apache.uima.cas.Type
    The type of the sentences to be created.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected abstract Span[]
     
    void
    initialize(org.apache.uima.UimaContext context)
     
    protected void
    postProcessAnnotations(org.apache.uima.cas.text.AnnotationFS[] sentences)
     
    void
    process(org.apache.uima.cas.CAS cas)
     
    void
    typeSystemInit(org.apache.uima.cas.TypeSystem typeSystem)
     

    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

    • context

      protected org.apache.uima.UimaContext context
    • logger

      protected org.apache.uima.util.Logger logger
    • containerType

      protected org.apache.uima.cas.Type containerType
    • sentenceType

      protected org.apache.uima.cas.Type sentenceType
      The type of the sentences to be created.
    • isRemoveExistingAnnotations

      private Boolean isRemoveExistingAnnotations
  • Constructor Details

    • AbstractSentenceDetector

      public AbstractSentenceDetector()
  • Method Details

    • initialize

      public void initialize(org.apache.uima.UimaContext context) throws org.apache.uima.resource.ResourceInitializationException
      Specified by:
      initialize in interface org.apache.uima.analysis_component.AnalysisComponent
      Overrides:
      initialize in class org.apache.uima.analysis_component.AnalysisComponent_ImplBase
      Throws:
      org.apache.uima.resource.ResourceInitializationException
    • typeSystemInit

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

      protected abstract Span[] detectSentences(String text)
    • postProcessAnnotations

      protected void postProcessAnnotations(org.apache.uima.cas.text.AnnotationFS[] sentences)
    • process

      public void process(org.apache.uima.cas.CAS cas) throws org.apache.uima.analysis_engine.AnalysisEngineProcessException
      Specified by:
      process in class org.apache.uima.analysis_component.CasAnnotator_ImplBase
      Throws:
      org.apache.uima.analysis_engine.AnalysisEngineProcessException