org.apache.ctakes.dictionary.lookup.algorithms
Class DirectPassThroughImpl

java.lang.Object
  extended by org.apache.ctakes.dictionary.lookup.algorithms.DirectPassThroughImpl
All Implemented Interfaces:
LookupAlgorithm

public class DirectPassThroughImpl
extends java.lang.Object
implements LookupAlgorithm

Each individual LookupToken is referenced against a Dictionary.

Author:
Mayo Clinic

Constructor Summary
DirectPassThroughImpl(DictionaryEngine dictEngine, PhraseBuilder phraseBuilder)
          Constructor
 
Method Summary
 java.util.Collection<LookupHit> lookup(java.util.List<LookupToken> lookupTokenList, java.util.Map<java.lang.String,java.util.List<LookupAnnotation>> contextMap)
          Lookup the given text specified via LookupToken objects.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DirectPassThroughImpl

public DirectPassThroughImpl(DictionaryEngine dictEngine,
                             PhraseBuilder phraseBuilder)
Constructor

Parameters:
dictEngine -
phraseBuilder -
Method Detail

lookup

public java.util.Collection<LookupHit> lookup(java.util.List<LookupToken> lookupTokenList,
                                              java.util.Map<java.lang.String,java.util.List<LookupAnnotation>> contextMap)
                                       throws java.lang.Exception
Lookup the given text specified via LookupToken objects. Any hits will be returned as a collection of LookupHit objects.

Specified by:
lookup in interface LookupAlgorithm
Parameters:
lookupTokenList - List of LookupTokens, must be sorted.
contextMap - Map where key=Impl specific String object and value=List of LookupAnnotation objects
Returns:
Collection of LookupHits.
Throws:
java.lang.Exception