Class SentenceAnnotator

  • All Implemented Interfaces:
    org.apache.uima.analysis_component.AnalysisComponent

    public class SentenceAnnotator
    extends org.apache.uima.analysis_component.JCasAnnotator_ImplBase
    • Constructor Detail

      • SentenceAnnotator

        public SentenceAnnotator()
    • Method Detail

      • initialize

        public void initialize​(org.apache.uima.UimaContext aContext)
                        throws org.apache.uima.resource.ResourceInitializationException
        initiaziation of JSBD: load the model, set post processing
        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
      • process

        public void process​(org.apache.uima.jcas.JCas aJCas)
                     throws org.apache.uima.analysis_engine.AnalysisEngineProcessException
        process method is in charge of doing the sentence splitting. If processingScope is set, we iterate over Annotation objects of this type and do the sentence splitting within this scope. Otherwise, the whole document text is considered.
        Specified by:
        process in class org.apache.uima.analysis_component.JCasAnnotator_ImplBase
        Throws:
        org.apache.uima.analysis_engine.AnalysisEngineProcessException