public final class PrecisionTermConsumer extends AbstractTermConsumer
Constructor and Description |
---|
PrecisionTermConsumer(org.apache.uima.UimaContext uimaContext,
Properties properties) |
PrecisionTermConsumer(org.apache.uima.UimaContext uimaContext,
Properties properties,
UmlsConceptCreator umlsConceptCreator) |
Modifier and Type | Method and Description |
---|---|
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)
Only uses the largest spans for the type
|
static CollectionMap<TextSpan,Long,? extends Collection<Long>> |
createPreciseTerms(CollectionMap<TextSpan,Long,? extends Collection<Long>> semanticTerms)
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
|
consumeHits, getCodingScheme, getUsedcTakesSemantics, hascTakesSemantic
public PrecisionTermConsumer(org.apache.uima.UimaContext uimaContext, Properties properties)
public PrecisionTermConsumer(org.apache.uima.UimaContext uimaContext, Properties properties, UmlsConceptCreator umlsConceptCreator)
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
public static CollectionMap<TextSpan,Long,? extends Collection<Long>> createPreciseTerms(CollectionMap<TextSpan,Long,? extends Collection<Long>> semanticTerms)
semanticTerms
- terms in the dictionaryCopyright © 2012-2017 The Apache Software Foundation. All Rights Reserved.