|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.cmu.sphinx.linguist.language.grammar.Grammar
edu.cmu.sphinx.linguist.language.grammar.LMGrammar
public class LMGrammar
Defines a simple grammar based upon a language model. It generates one grammar node
per word. This
grammar can deal with unigram and bigram grammars of up to 1000 or so words. Note that all probabilities are in the
log math domain.
Field Summary | |
---|---|
static java.lang.String |
PROP_LANGUAGE_MODEL
A sphinx property for the language model to be used by this grammar |
Fields inherited from class edu.cmu.sphinx.linguist.language.grammar.Grammar |
---|
PROP_ADD_FILLER_WORDS, PROP_ADD_SIL_WORDS, PROP_DICTIONARY, PROP_OPTIMIZE_GRAMMAR, PROP_SHOW_GRAMMAR |
Constructor Summary | |
---|---|
LMGrammar()
|
Method Summary | |
---|---|
void |
newProperties(PropertySheet ps)
This method is called when this configurable component needs to be reconfigured. |
Methods inherited from class edu.cmu.sphinx.linguist.language.grammar.Grammar |
---|
allocate, deallocate, dumpGrammar, dumpRandomSentences, dumpRandomSentences, dumpStatistics, getDictionary, getGrammarNodes, getInitialNode, getNumNodes, getRandomSentence |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
@S4Component(type=LanguageModel.class) public static final java.lang.String PROP_LANGUAGE_MODEL
Constructor Detail |
---|
public LMGrammar()
Method Detail |
---|
public void newProperties(PropertySheet ps) throws PropertyException
Configurable
newProperties
in interface Configurable
newProperties
in class Grammar
ps
- a property sheet holding the new data
PropertyException
- if there is a problem with the properties.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |