| Package | Description |
|---|---|
| edu.cmu.sphinx.jsgf | |
| edu.cmu.sphinx.jsgf.parser | |
| edu.cmu.sphinx.jsgf.rule |
| Modifier and Type | Field and Description |
|---|---|
protected java.util.Map<java.lang.String,JSGFRule> |
GrXMLHandler.topRuleMap |
| Modifier and Type | Method and Description |
|---|---|
JSGFRule |
JSGFRuleGrammar.getRule(java.lang.String ruleName)
Return the data structure for the named rule.
|
| Modifier and Type | Method and Description |
|---|---|
protected edu.cmu.sphinx.jsgf.JSGFGrammar.GrammarGraph |
JSGFGrammar.processRule(JSGFRule rule)
Parses the given Rule into a network of GrammarNodes.
|
protected void |
JSGFRuleGrammar.resolveRule(JSGFRule r)
Resolve the given rule.
|
void |
JSGFRuleGrammar.setRule(java.lang.String ruleName,
JSGFRule rule,
boolean isPublic)
Set a rule in the grammar either by creating a new rule or updating an
existing rule.
|
| Constructor and Description |
|---|
GrXMLHandler(java.net.URL baseURL,
java.util.Map<java.lang.String,JSGFRule> rules,
java.util.logging.Logger logger) |
| Modifier and Type | Method and Description |
|---|---|
JSGFRule |
JSGFParser.item() |
static JSGFRule |
JSGFParser.ruleForJSGF(java.lang.String text) |
JSGFRule |
JSGFParser.terminal() |
| Modifier and Type | Class and Description |
|---|---|
class |
JSGFRuleAlternatives |
class |
JSGFRuleCount |
class |
JSGFRuleName |
class |
JSGFRuleSequence |
class |
JSGFRuleTag |
class |
JSGFRuleToken |
| Modifier and Type | Field and Description |
|---|---|
JSGFRule |
JSGFRule.parent |
protected JSGFRule |
JSGFRuleTag.rule |
protected JSGFRule |
JSGFRuleCount.rule |
| Modifier and Type | Field and Description |
|---|---|
protected java.util.List<JSGFRule> |
JSGFRuleSequence.rules |
protected java.util.List<JSGFRule> |
JSGFRuleAlternatives.rules |
| Modifier and Type | Method and Description |
|---|---|
JSGFRule |
JSGFRuleTag.getRule() |
JSGFRule |
JSGFRuleCount.getRule() |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<JSGFRule> |
JSGFRuleSequence.getRules() |
java.util.List<JSGFRule> |
JSGFRuleAlternatives.getRules() |
| Modifier and Type | Method and Description |
|---|---|
void |
JSGFRuleSequence.append(JSGFRule rule) |
void |
JSGFRuleAlternatives.append(JSGFRule rule) |
void |
JSGFRuleTag.setRule(JSGFRule rule) |
void |
JSGFRuleCount.setRule(JSGFRule rule) |
| Modifier and Type | Method and Description |
|---|---|
void |
JSGFRuleSequence.setRules(java.util.List<JSGFRule> rules) |
void |
JSGFRuleAlternatives.setRules(java.util.List<JSGFRule> rules) |
| Constructor and Description |
|---|
JSGFRuleCount(JSGFRule rule,
int count) |
JSGFRuleTag(JSGFRule rule,
java.lang.String tag) |
| Constructor and Description |
|---|
JSGFRuleAlternatives(java.util.List<JSGFRule> rules) |
JSGFRuleAlternatives(java.util.List<JSGFRule> rules,
java.util.List<java.lang.Float> weights) |
JSGFRuleSequence(java.util.List<JSGFRule> rules) |