inpro.sphinx.linguist.dictionary
Class SyllableAwareFullDictionary

java.lang.Object
  extended by edu.cmu.sphinx.linguist.dictionary.FullDictionary
      extended by inpro.sphinx.linguist.dictionary.SyllableAwareFullDictionary
All Implemented Interfaces:
edu.cmu.sphinx.linguist.dictionary.Dictionary, edu.cmu.sphinx.util.props.Configurable

public class SyllableAwareFullDictionary
extends edu.cmu.sphinx.linguist.dictionary.FullDictionary


Field Summary
static java.lang.String SYLLABLE_BOUNDARY_SYMBOL
           
 
Fields inherited from class edu.cmu.sphinx.linguist.dictionary.FullDictionary
addSilEndingPronunciation, allowMissingWords, wordDictionary
 
Fields inherited from interface edu.cmu.sphinx.linguist.dictionary.Dictionary
PROP_ADD_SIL_ENDING_PRONUNCIATION, PROP_ALLOW_MISSING_WORDS, PROP_CREATE_MISSING_WORDS, PROP_DICTIONARY, PROP_FILLER_DICTIONARY, PROP_UNIT_MANAGER, PROP_WORD_REPLACEMENT, SENTENCE_END_SPELLING, SENTENCE_START_SPELLING, SILENCE_SPELLING
 
Constructor Summary
SyllableAwareFullDictionary()
           
 
Method Summary
protected  java.util.Map<java.lang.String,edu.cmu.sphinx.linguist.dictionary.Word> loadDictionary(java.io.InputStream inputStream, boolean isFillerDict)
          Loads the given sphinx3 style simple dictionary from the given InputStream.
 
Methods inherited from class edu.cmu.sphinx.linguist.dictionary.FullDictionary
allocate, createWords, deallocate, getCIUnit, getFillerDictionaryFile, getFillerWords, getPossibleWordClassifications, getSentenceEndWord, getSentenceStartWord, getSilenceWord, getWord, getWordDictionaryFile, newProperties, removeParensFromWord, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

SYLLABLE_BOUNDARY_SYMBOL

public static final java.lang.String SYLLABLE_BOUNDARY_SYMBOL
See Also:
Constant Field Values
Constructor Detail

SyllableAwareFullDictionary

public SyllableAwareFullDictionary()
Method Detail

loadDictionary

protected java.util.Map<java.lang.String,edu.cmu.sphinx.linguist.dictionary.Word> loadDictionary(java.io.InputStream inputStream,
                                                                                                 boolean isFillerDict)
                                                                                          throws java.io.IOException
Loads the given sphinx3 style simple dictionary from the given InputStream. The InputStream is assumed to contain ASCII data.

Overrides:
loadDictionary in class edu.cmu.sphinx.linguist.dictionary.FullDictionary
Parameters:
inputStream - the InputStream of the dictionary
isFillerDict - true if this is a filler dictionary, false otherwise
Throws:
java.io.IOException - if there is an error reading the dictionary