public class TrainerDictionary extends TextDictionary
addendaUrlList, allocated, dictionary, FILLER_TAG, fillerDictionaryFile, fillerWords, g2pDecoder, g2pMaxPron, g2pModelFile, logger, unitManager, wordDictionary, wordDictionaryFile
PROP_ADDENDA, PROP_DICTIONARY, PROP_FILLER_DICTIONARY, PROP_G2P_MAX_PRONUNCIATIONS, PROP_G2P_MODEL_PATH, PROP_UNIT_MANAGER, PROP_WORD_REPLACEMENT, SENTENCE_END_SPELLING, SENTENCE_START_SPELLING, SILENCE_SPELLING
Constructor and Description |
---|
TrainerDictionary() |
Modifier and Type | Method and Description |
---|---|
Graph |
getWordGraph(java.lang.String word,
boolean hasDummy)
Gets a word pronunciation graph.
|
java.lang.String |
toString()
Prints out dictionary as a string.
|
allocate, deallocate, dump, getCIUnit, getFillerDictionaryFile, getFillerWords, getSentenceEndWord, getSentenceStartWord, getSilenceWord, getWord, getWordDictionaryFile, loadDictionary, newProperties
public Graph getWordGraph(java.lang.String word, boolean hasDummy)
word
- the wordhasDummy
- if true, the graph will have dummy initial and final statespublic java.lang.String toString()
toString
in class TextDictionary