public final class UmlsJdbcRareWordDictionary extends java.lang.Object implements RareWordDictionary
Modifier and Type | Field and Description |
---|---|
private RareWordDictionary |
_delegateDictionary |
private static Logger |
LOGGER |
Constructor and Description |
---|
UmlsJdbcRareWordDictionary(java.lang.String name,
UimaContext uimaContext,
java.util.Properties properties) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getName()
The Type identifier and Name are used to maintain a collection of dictionaries,
so the combination of Type and Name should be unique for each dictionary if possible.
|
java.util.Collection<RareWordTerm> |
getRareWordHits(FastLookupToken fastLookupToken)
Any single token can exist in zero or more terms in the dictionary.
|
java.util.Collection<RareWordTerm> |
getRareWordHits(java.lang.String rareWordText)
Get all terms within the dictionary that contain a given rare word
|
private static final Logger LOGGER
private final RareWordDictionary _delegateDictionary
public UmlsJdbcRareWordDictionary(java.lang.String name, UimaContext uimaContext, java.util.Properties properties) throws java.sql.SQLException
java.sql.SQLException
public java.lang.String getName()
getName
in interface RareWordDictionary
public java.util.Collection<RareWordTerm> getRareWordHits(FastLookupToken fastLookupToken)
getRareWordHits
in interface RareWordDictionary
fastLookupToken
- a single-word tokenpublic java.util.Collection<RareWordTerm> getRareWordHits(java.lang.String rareWordText)
getRareWordHits
in interface RareWordDictionary
rareWordText
- text of the rare wordrareWordText