public class SemanticCleanupTermConsumer extends AbstractTermConsumer
Constructor and Description |
---|
SemanticCleanupTermConsumer(org.apache.uima.UimaContext uimaContext,
Properties properties) |
Modifier and Type | Method and Description |
---|---|
void |
consumeHits(org.apache.uima.jcas.JCas jcas,
RareWordDictionary dictionary,
CollectionMap<TextSpan,Long,? extends Collection<Long>> textSpanCuis,
CollectionMap<Long,Concept,? extends Collection<Concept>> cuiConcepts)
Refine a collection of dictionary terms to only contain the most specific variations:
"colon cancer" instead of "cancer", performed by span inclusion /complete containment, not overlap.
|
void |
consumeTypeIdHits(org.apache.uima.jcas.JCas jcas,
String defaultScheme,
int cTakesSemantic,
CollectionMap<TextSpan,Long,? extends Collection<Long>> semanticTerms,
CollectionMap<Long,Concept,? extends Collection<Concept>> conceptMap) |
getCodingScheme, getUsedcTakesSemantics, hascTakesSemantic
public SemanticCleanupTermConsumer(org.apache.uima.UimaContext uimaContext, Properties properties)
public void consumeHits(org.apache.uima.jcas.JCas jcas, RareWordDictionary dictionary, CollectionMap<TextSpan,Long,? extends Collection<Long>> textSpanCuis, CollectionMap<Long,Concept,? extends Collection<Concept>> cuiConcepts) throws org.apache.uima.analysis_engine.AnalysisEngineProcessException
consumeHits
in interface TermConsumer
consumeHits
in class AbstractTermConsumer
jcas
- -dictionary
- the dictionary: Anatomical Site, Disease/Disorder, Drug, combination, etc.textSpanCuis
- collection of discovered termscuiConcepts
- map of cuis to conceptsorg.apache.uima.analysis_engine.AnalysisEngineProcessException
public void consumeTypeIdHits(org.apache.uima.jcas.JCas jcas, String defaultScheme, int cTakesSemantic, CollectionMap<TextSpan,Long,? extends Collection<Long>> semanticTerms, CollectionMap<Long,Concept,? extends Collection<Concept>> conceptMap) throws org.apache.uima.analysis_engine.AnalysisEngineProcessException
jcas
- -defaultScheme
- - name of the coding scheme to use if no secondary (snomed, rxnorm) schemes existcTakesSemantic
- cTakes IdentifiedAnnotation only accepts an integer as a cTakesSemanticorg.apache.uima.analysis_engine.AnalysisEngineProcessException
Copyright © 2012-2017 The Apache Software Foundation. All Rights Reserved.