public interface WindowProcessor
Modifier and Type | Method and Description |
---|---|
boolean |
isWindowOk(Annotation window)
Some windows should be skipped entirely, such as "[section *]"
|
void |
processWindow(JCas jcas,
Annotation window,
java.util.Map<RareWordDictionary,CollectionMap<TextSpan,java.lang.Long,? extends java.util.Collection<java.lang.Long>>> dictionaryTerms)
Processes a window of annotations for dictionary terms
|
boolean isWindowOk(Annotation window)
window
- annotation in which to search for termsvoid processWindow(JCas jcas, Annotation window, java.util.Map<RareWordDictionary,CollectionMap<TextSpan,java.lang.Long,? extends java.util.Collection<java.lang.Long>>> dictionaryTerms)
jcas
- -window
- annotation in which to search for termsdictionaryTerms
- map of entity types and terms for those types in the window