|
||||||||||
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(java.lang.String word)
Adds a new word to the dictionary. |
Dictionary |
getDictionary()
|
java.lang.String |
getMultiWordSeparator()
Returns the multi-word separator of the dictionary builder |
void |
setDictionaryProperties(java.lang.String language,
java.lang.String typeName,
boolean caseNormalization,
boolean multiWordEntries,
java.lang.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 java.lang.String getMultiWordSeparator()
public void setDictionaryProperties(java.lang.String language, java.lang.String typeName, boolean caseNormalization, boolean multiWordEntries, java.lang.String multiWordSeparator)
DictionaryBuilder
setDictionaryProperties
in interface DictionaryBuilder
language
- dictionary languagetypeName
- type name for the dictionary contentcaseNormalization
- case normalization settingsmultiWordEntries
- multi-word entries settingmultiWordSeparator
- multi-word entry separatorpublic void addWord(java.lang.String word)
DictionaryBuilder
addWord
in interface DictionaryBuilder
word
- 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 |