|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Dictionary
Provides a generic interface to a dictionary. The dictionary is responsibile for determining how a word is pronounced.
Field Summary | |
---|---|
static java.lang.String |
PROP_ADD_SIL_ENDING_PRONUNCIATION
The name of the SphinxProperty that specifies whether to add a duplicate SIL-ending pronunication. |
static java.lang.String |
PROP_ALLOW_MISSING_WORDS
The name of the SphinxProperty that specifies whether the dictionary should return null if a word is not found in the dictionary, or whether it should throw an error. |
static java.lang.String |
PROP_CREATE_MISSING_WORDS
The SphinxProperty that specifies whether the Dictionary.getWord() method should return a Word object even if the word does not exist in the dictionary. |
static java.lang.String |
PROP_DICTIONARY
The name of the SphinxProperty for the dictionary file path. |
static java.lang.String |
PROP_FILLER_DICTIONARY
The name of the SphinxProperty for the filler dictionary file path. |
static java.lang.String |
PROP_UNIT_MANAGER
The sphinx property that defines the name of the unit manager that is used to convert strings to Unit objects |
static java.lang.String |
PROP_WORD_REPLACEMENT
The name of the SphinxProperty that specifies the word to substitute when a lookup fails to find the word in the dictionary. |
static java.lang.String |
SENTENCE_END_SPELLING
Spelling of the sentence end word. |
static java.lang.String |
SENTENCE_START_SPELLING
Spelling of the sentence start word. |
static java.lang.String |
SILENCE_SPELLING
Spelling of the 'word' that marks a silence |
Method Summary | |
---|---|
void |
allocate()
Allocates the dictionary |
void |
deallocate()
Deallocates the dictionary |
Word[] |
getFillerWords()
Gets the set of all filler words in the dictionary |
WordClassification[] |
getPossibleWordClassifications()
Returns the set of all possible word classifications for this dictionary. |
Word |
getSentenceEndWord()
Returns the sentence end word. |
Word |
getSentenceStartWord()
Returns the sentence start word. |
Word |
getSilenceWord()
Returns the silence word. |
Word |
getWord(java.lang.String text)
Returns a Word object based on the spelling and its classification. |
Methods inherited from interface edu.cmu.sphinx.util.props.Configurable |
---|
newProperties |
Field Detail |
---|
static final java.lang.String SENTENCE_START_SPELLING
static final java.lang.String SENTENCE_END_SPELLING
static final java.lang.String SILENCE_SPELLING
@S4String static final java.lang.String PROP_DICTIONARY
@S4String static final java.lang.String PROP_FILLER_DICTIONARY
@S4Boolean(defaultValue=false) static final java.lang.String PROP_ADD_SIL_ENDING_PRONUNCIATION
@S4String(mandatory=false) static final java.lang.String PROP_WORD_REPLACEMENT
@S4Boolean(defaultValue=false) static final java.lang.String PROP_ALLOW_MISSING_WORDS
@S4Boolean(defaultValue=false) static final java.lang.String PROP_CREATE_MISSING_WORDS
@S4Component(type=UnitManager.class, defaultClass=UnitManager.class) static final java.lang.String PROP_UNIT_MANAGER
Method Detail |
---|
Word getWord(java.lang.String text)
text
- the spelling of the word of interest.
Pronunciation
Word getSentenceStartWord()
Word getSentenceEndWord()
Word getSilenceWord()
WordClassification[] getPossibleWordClassifications()
Word[] getFillerWords()
void allocate() throws java.io.IOException
java.io.IOException
- if there is trouble loading the dictionaryvoid deallocate()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |