|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.uima.annotator.dict_annot.dictionary.impl.HashMapDictionaryBuilder
public class HashMapDictionaryBuilder
Implementation of the DictionaryBuilder interface to build a new HashMap dictionary.
| Constructor Summary | |
|---|---|
HashMapDictionaryBuilder()
Default constructor. |
|
| Method Summary | |
|---|---|
void |
addWord(String word)
Adds a new word to the dictionary. |
Dictionary |
getDictionary()
|
String |
getMultiWordSeparator()
Returns the multi-word separator of the dictionary builder |
void |
setDictionaryProperties(String language,
String typeName,
boolean caseNormalization,
boolean multiWordEntries,
String multiWordSeparator)
Set the dictionary properties, this method have to be called before words can be added to the dictionary. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HashMapDictionaryBuilder()
| Method Detail |
|---|
public String getMultiWordSeparator()
public void setDictionaryProperties(String language,
String typeName,
boolean caseNormalization,
boolean multiWordEntries,
String multiWordSeparator)
DictionaryBuilder
setDictionaryProperties in interface DictionaryBuilderlanguage - dictionary languagetypeName - type name for the dictionary contentcaseNormalization - case normalization settingsmultiWordEntries - multi-word entries settingmultiWordSeparator - multi-word entry separatorpublic void addWord(String word)
DictionaryBuilder
addWord in interface DictionaryBuilderword - word that should be added.public Dictionary getDictionary()
getDictionary in interface DictionaryBuilder
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||