public final class BsvRareWordDictionary extends Object implements RareWordDictionary
MemRareWordDictionary
with a file reader.
Author: SPF
Affiliation: CHIP-NLP
Date: 1/9/14Constructor and Description |
---|
BsvRareWordDictionary(String name,
String bsvFilePath) |
BsvRareWordDictionary(String name,
org.apache.uima.UimaContext uimaContext,
Properties properties) |
Modifier and Type | Method and Description |
---|---|
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.
|
Collection<RareWordTerm> |
getRareWordHits(FastLookupToken fastLookupToken)
Any single token can exist in zero or more terms in the dictionary.
|
Collection<RareWordTerm> |
getRareWordHits(String rareWordText)
Get all terms within the dictionary that contain a given rare word
|
public BsvRareWordDictionary(String name, org.apache.uima.UimaContext uimaContext, Properties properties)
public String getName()
getName
in interface RareWordDictionary
public Collection<RareWordTerm> getRareWordHits(FastLookupToken fastLookupToken)
getRareWordHits
in interface RareWordDictionary
fastLookupToken
- a single-word tokenpublic Collection<RareWordTerm> getRareWordHits(String rareWordText)
getRareWordHits
in interface RareWordDictionary
rareWordText
- text of the rare wordrareWordText
Copyright © 2012-2017 The Apache Software Foundation. All Rights Reserved.