public class DirectPassThroughImpl extends java.lang.Object implements LookupAlgorithm
Modifier and Type | Field and Description |
---|---|
private DictionaryEngine |
iv_dictEngine |
private PhraseBuilder |
iv_phrBuilder |
Constructor and Description |
---|
DirectPassThroughImpl(DictionaryEngine dictEngine,
PhraseBuilder phraseBuilder)
Constructor
|
Modifier and Type | Method and Description |
---|---|
private java.util.Collection<MetaDataHit> |
getHits(java.lang.String[] phrases) |
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.
|
private DictionaryEngine iv_dictEngine
private PhraseBuilder iv_phrBuilder
public DirectPassThroughImpl(DictionaryEngine dictEngine, PhraseBuilder phraseBuilder)
dictEngine
- phraseBuilder
- 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
in interface LookupAlgorithm
lookupTokenList
- List of LookupTokens, must be sorted.contextMap
- Map where key=Impl specific String object and value=List of
LookupAnnotation objectsjava.lang.Exception
private java.util.Collection<MetaDataHit> getHits(java.lang.String[] phrases) throws java.lang.Exception
java.lang.Exception