org.cleartk.syntax.opennlp
Class SentenceAnnotator

java.lang.Object
  extended by org.apache.uima.analysis_component.AnalysisComponent_ImplBase
      extended by org.apache.uima.analysis_component.Annotator_ImplBase
          extended by org.apache.uima.analysis_component.JCasAnnotator_ImplBase
              extended by org.uimafit.component.JCasAnnotator_ImplBase
                  extended by org.cleartk.syntax.opennlp.SentenceAnnotator
All Implemented Interfaces:
org.apache.uima.analysis_component.AnalysisComponent

public class SentenceAnnotator
extends org.uimafit.component.JCasAnnotator_ImplBase


Copyright (c) 2007-2008, Regents of the University of Colorado
All rights reserved.

Author:
Philip Ogren, Lee Becker This sentence segmenter is a simple wrapper around the OpenNLP SentenceDetector with additional sentence detection added that handles multiple newlines (i.e. if multiple newlines appear (separated only by whitespace) together, then this is treated as a sentence delimiter.
See Also:
SentenceDetector

Field Summary
static String multipleNewlinesRegex
           
static String PARAM_SENTENCE_MODEL_PATH
           
static String PARAM_SENTENCE_TYPE_NAME
           
static String PARAM_WINDOW_CLASS_NAMES
           
protected  List<Class<? extends org.apache.uima.jcas.tcas.Annotation>> windowClasses
           
 
Constructor Summary
SentenceAnnotator()
           
 
Method Summary
static org.apache.uima.analysis_engine.AnalysisEngineDescription getDescription()
           
 void initialize(org.apache.uima.UimaContext uimaContext)
           
 void process(org.apache.uima.jcas.JCas jCas)
           
protected  void processText(org.apache.uima.jcas.JCas jCas, String text, int textOffset)
           
 
Methods inherited from class org.uimafit.component.JCasAnnotator_ImplBase
getLogger
 
Methods inherited from class org.apache.uima.analysis_component.JCasAnnotator_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, getResultSpecification, reconfigure, setResultSpecification
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PARAM_SENTENCE_MODEL_PATH

public static final String PARAM_SENTENCE_MODEL_PATH

PARAM_SENTENCE_TYPE_NAME

public static final String PARAM_SENTENCE_TYPE_NAME

PARAM_WINDOW_CLASS_NAMES

public static final String PARAM_WINDOW_CLASS_NAMES

windowClasses

protected List<Class<? extends org.apache.uima.jcas.tcas.Annotation>> windowClasses

multipleNewlinesRegex

public static final String multipleNewlinesRegex
See Also:
Constant Field Values
Constructor Detail

SentenceAnnotator

public SentenceAnnotator()
Method Detail

getDescription

public static org.apache.uima.analysis_engine.AnalysisEngineDescription getDescription()
                                                                                throws org.apache.uima.resource.ResourceInitializationException
Throws:
org.apache.uima.resource.ResourceInitializationException

initialize

public void initialize(org.apache.uima.UimaContext uimaContext)
                throws org.apache.uima.resource.ResourceInitializationException
Specified by:
initialize in interface org.apache.uima.analysis_component.AnalysisComponent
Overrides:
initialize in class org.uimafit.component.JCasAnnotator_ImplBase
Throws:
org.apache.uima.resource.ResourceInitializationException

process

public void process(org.apache.uima.jcas.JCas jCas)
             throws org.apache.uima.analysis_engine.AnalysisEngineProcessException
Specified by:
process in class org.apache.uima.analysis_component.JCasAnnotator_ImplBase
Throws:
org.apache.uima.analysis_engine.AnalysisEngineProcessException

processText

protected void processText(org.apache.uima.jcas.JCas jCas,
                           String text,
                           int textOffset)
                    throws org.apache.uima.analysis_engine.AnalysisEngineProcessException
Throws:
org.apache.uima.analysis_engine.AnalysisEngineProcessException


Copyright © 2013. All Rights Reserved.