org.apache.ctakes.dictionary.lookup.ae
Class AssertionCuePhraseConsumerImpl
java.lang.Object
org.apache.ctakes.dictionary.lookup.ae.BaseLookupConsumerImpl
org.apache.ctakes.dictionary.lookup.ae.AssertionCuePhraseConsumerImpl
- All Implemented Interfaces:
- LookupConsumer
public class AssertionCuePhraseConsumerImpl
- extends BaseLookupConsumerImpl
- implements LookupConsumer
Implementation that takes Rxnorm dictionary lookup hits and stores only the
ones that are also present in the Orange Book.
Method Summary |
void |
consumeHits(org.apache.uima.jcas.JCas jcas,
Iterator lhItr)
Consumes the hits produced by the LookupAnnotator. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CUE_PHRASE_FIELD_NAME
public static final String CUE_PHRASE_FIELD_NAME
- See Also:
- Constant Field Values
CUE_PHRASE_CATEGORY_FIELD_NAME
public static final String CUE_PHRASE_CATEGORY_FIELD_NAME
- See Also:
- Constant Field Values
CUE_PHRASE_FAMILY_FIELD_NAME
public static final String CUE_PHRASE_FAMILY_FIELD_NAME
- See Also:
- Constant Field Values
CUE_PHRASE_FIRST_WORD_FIELD_NAME
public static final String CUE_PHRASE_FIRST_WORD_FIELD_NAME
- See Also:
- Constant Field Values
AssertionCuePhraseConsumerImpl
public AssertionCuePhraseConsumerImpl(org.apache.uima.UimaContext aCtx,
Properties props,
int maxListSize)
throws Exception
- Throws:
Exception
AssertionCuePhraseConsumerImpl
public AssertionCuePhraseConsumerImpl(org.apache.uima.UimaContext aCtx,
Properties props)
throws Exception
- Throws:
Exception
consumeHits
public void consumeHits(org.apache.uima.jcas.JCas jcas,
Iterator lhItr)
throws org.apache.uima.analysis_engine.AnalysisEngineProcessException
- Description copied from interface:
LookupConsumer
- Consumes the hits produced by the LookupAnnotator. This typically means
iterating over the hits and storing what's necessary to the JCas
- Specified by:
consumeHits
in interface LookupConsumer
- Parameters:
jcas
- CAS for storing datalhItr
- Iterator over LookupHit objects. These objects contain data
about the annotation span plus any associated metadata.
- Throws:
org.apache.uima.analysis_engine.AnalysisEngineProcessException
Copyright © 2012-2013 The Apache Software Foundation. All Rights Reserved.