Package edu.cmu.sphinx.jsgf.rule

Examples of edu.cmu.sphinx.jsgf.rule.JSGFRuleAlternatives


                newRule = new JSGFRuleSequence(new ArrayList<JSGFRule>());
                topRule = newRule;
            }
        }
        if (qName.equals("one-of")) {
            newRule = new JSGFRuleAlternatives(new ArrayList<JSGFRule>());
            topRule = newRule;
        }
        addToCurrent(newRule, topRule);
    }   
View Full Code Here


            JSGFRuleSequence ruleSequence = (JSGFRuleSequence) currentRule;
            ruleSequence.append(topRule);
            newRule.parent = currentRule;
            currentRule = newRule;
        } else if (currentRule instanceof JSGFRuleAlternatives) {
            JSGFRuleAlternatives ruleAlternatives = (JSGFRuleAlternatives) currentRule;
            ruleAlternatives.append(topRule);
            newRule.parent = currentRule;
            currentRule = newRule;
        }       
    }
View Full Code Here

TOP

Related Classes of edu.cmu.sphinx.jsgf.rule.JSGFRuleAlternatives

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.