@PipeBitInfo(name="Dictionary Lookup (Overlap)", description="Annotates clinically-relevant terms. Terms can overlap dictionary entries.", dependencies={SENTENCE,BASE_TOKEN}, products=IDENTIFIED_ANNOTATION) public final class OverlapJCasTermAnnotator extends AbstractJCasTermAnnotator
_minimumLookupSpan
DEFAULT_DICT_DESC_PATH, DEFAULT_EXCLUSION_TAGS, DEFAULT_LOOKUP_WINDOW, DEFAULT_MINIMUM_SPAN, DICTIONARY_DESCRIPTOR_KEY, PARAM_EXC_TAGS_KEY, PARAM_MIN_SPAN_KEY, PARAM_WINDOW_ANNOT_KEY
Constructor and Description |
---|
OverlapJCasTermAnnotator() |
Modifier and Type | Method and Description |
---|---|
static org.apache.uima.analysis_engine.AnalysisEngineDescription |
createAnnotatorDescription() |
static org.apache.uima.analysis_engine.AnalysisEngineDescription |
createAnnotatorDescription(String descriptorPath) |
static org.apache.uima.analysis_engine.AnalysisEngineDescription |
createAnnotatorDescription(String descriptorPath,
int consecutiveSkipMax,
int totalSkipMax) |
void |
findTerms(RareWordDictionary dictionary,
List<FastLookupToken> allTokens,
List<Integer> lookupTokenIndices,
CollectionMap<TextSpan,Long,? extends Collection<Long>> termsFromDictionary)
Given a dictionary, tokens, and lookup token indices, populate a terms collection with discovered terms
|
void |
initialize(org.apache.uima.UimaContext uimaContext)
Set the number of consecutive and total tokens that can be skipped (optional).
|
getAnnotationsInWindow, getDictionaries, isWindowOk, parseInt, process, processWindow
getRequiredCasInterface, process
getCasInstancesRequired, hasNext, next
batchProcessComplete, collectionProcessComplete, destroy, getContext, getResultSpecification, reconfigure, setResultSpecification
public void initialize(org.apache.uima.UimaContext uimaContext) throws org.apache.uima.resource.ResourceInitializationException
initialize
in interface org.apache.uima.analysis_component.AnalysisComponent
initialize
in class AbstractJCasTermAnnotator
org.apache.uima.resource.ResourceInitializationException
public void findTerms(RareWordDictionary dictionary, List<FastLookupToken> allTokens, List<Integer> lookupTokenIndices, CollectionMap<TextSpan,Long,? extends Collection<Long>> termsFromDictionary)
dictionary
- -allTokens
- -lookupTokenIndices
- -termsFromDictionary
- -public static org.apache.uima.analysis_engine.AnalysisEngineDescription createAnnotatorDescription() throws org.apache.uima.resource.ResourceInitializationException
org.apache.uima.resource.ResourceInitializationException
public static org.apache.uima.analysis_engine.AnalysisEngineDescription createAnnotatorDescription(String descriptorPath) throws org.apache.uima.resource.ResourceInitializationException
org.apache.uima.resource.ResourceInitializationException
public static org.apache.uima.analysis_engine.AnalysisEngineDescription createAnnotatorDescription(String descriptorPath, int consecutiveSkipMax, int totalSkipMax) throws org.apache.uima.resource.ResourceInitializationException
org.apache.uima.resource.ResourceInitializationException
Copyright © 2012-2017 The Apache Software Foundation. All Rights Reserved.