public abstract class AbstractTermConsumer extends Object implements TermConsumer
Constructor and Description |
---|
AbstractTermConsumer(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) |
protected String |
getCodingScheme() |
protected static Collection<Integer> |
getUsedcTakesSemantics(CollectionMap<Long,Concept,? extends Collection<Concept>> cuiConcepts) |
protected static boolean |
hascTakesSemantic(Integer cTakesSemantic,
Iterable<Concept> concepts) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
consumeTypeIdHits
public AbstractTermConsumer(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
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
protected String getCodingScheme()
protected static Collection<Integer> getUsedcTakesSemantics(CollectionMap<Long,Concept,? extends Collection<Concept>> cuiConcepts)
Copyright © 2012-2017 The Apache Software Foundation. All Rights Reserved.