public class SentenceAdjuster
extends JCasAnnotator_ImplBase
Modifier and Type | Field and Description |
---|---|
private UimaContext |
context |
Logger |
iv_logger |
static java.lang.String |
PARAM_IGNORE_WORDS
The list of words ("and" "&") to ignore in pattern matching.
|
static java.lang.String |
PARAM_WORDS_IN_PATTERN
The list of words ("none", "no", etc) used in the pattern
|
private java.util.Set<java.lang.String> |
skipSegmentsSet |
private boolean |
useSegments |
private java.util.HashSet<java.lang.String> |
wordsInPattern |
private java.util.HashSet<java.lang.String> |
wordsToIgnore |
Constructor and Description |
---|
SentenceAdjuster() |
Modifier and Type | Method and Description |
---|---|
protected void |
annotateRange(JCas jcas,
java.lang.String text,
int rangeBegin,
int rangeEnd)
A utility method that annotates a given range.
|
private void |
configInit()
Sets configuration parameters with values from the descriptor.
|
private java.util.Map<java.lang.Integer,Sentence> |
getSentencesOrderById(java.util.Iterator<?> sentItr) |
void |
initialize(UimaContext aContext)
Performs initialization logic.
|
void |
process(JCas jcas)
Invokes this annotator's analysis logic.
|
public static final java.lang.String PARAM_IGNORE_WORDS
public static final java.lang.String PARAM_WORDS_IN_PATTERN
public Logger iv_logger
private UimaContext context
private java.util.HashSet<java.lang.String> wordsToIgnore
private java.util.HashSet<java.lang.String> wordsInPattern
private boolean useSegments
private java.util.Set<java.lang.String> skipSegmentsSet
public void initialize(UimaContext aContext) throws ResourceInitializationException
ResourceInitializationException
com.ibm.uima.analysis_engine.annotator.BaseAnnotator#initialize(UimaContext)
private void configInit() throws AnnotatorContextException
AnnotatorContextException
public void process(JCas jcas) throws AnalysisEngineProcessException
AnalysisEngineProcessException
protected void annotateRange(JCas jcas, java.lang.String text, int rangeBegin, int rangeEnd) throws AnnotatorContextException
AnnotatorContextException
private java.util.Map<java.lang.Integer,Sentence> getSentencesOrderById(java.util.Iterator<?> sentItr)