org.apache.ctakes.dictionary.lookup.ae
Class AssertionCuePhraseConsumerImpl

java.lang.Object
  extended by org.apache.ctakes.dictionary.lookup.ae.BaseLookupConsumerImpl
      extended by 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.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.ctakes.dictionary.lookup.ae.BaseLookupConsumerImpl
BaseLookupConsumerImpl.LookupHitKey
 
Field Summary
static String CUE_PHRASE_CATEGORY_FIELD_NAME
           
static String CUE_PHRASE_FAMILY_FIELD_NAME
           
static String CUE_PHRASE_FIELD_NAME
           
static String CUE_PHRASE_FIRST_WORD_FIELD_NAME
           
 
Constructor Summary
AssertionCuePhraseConsumerImpl(org.apache.uima.UimaContext aCtx, Properties props)
           
AssertionCuePhraseConsumerImpl(org.apache.uima.UimaContext aCtx, Properties props, int maxListSize)
           
 
Method Summary
 void consumeHits(org.apache.uima.jcas.JCas jcas, Iterator lhItr)
          Consumes the hits produced by the LookupAnnotator.
 
Methods inherited from class org.apache.ctakes.dictionary.lookup.ae.BaseLookupConsumerImpl
createLookupHitMap, organizeByOffset
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

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
Method Detail

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 data
lhItr - 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.