Lines Matching refs:Grammar
38 * <li>Create a <code>Recognizer.Grammar</code>.
39 * <li>Setup the <code>Recognizer.Grammar</code>.
40 * <li>Reset the <code>Recognizer.Grammar</code> slots, if needed.
41 * <li>Fill the <code>Recognizer.Grammar</code> slots, if needed.
42 * <li>Compile the <code>Recognizer.Grammar</code>, if needed.
43 * <li>Save the filled <code>Recognizer.Grammar</code>, if needed.
60 * // create and load a Grammar
61 * Recognizer.Grammar grammar = recognizer.new Grammar(cdir + "/grammars/VoiceDialer.g2g");
62 * // setup the Grammar to work with the Recognizer
64 * // fill the Grammar slots with names and save, if required
133 // Grammar currently associated with Recognizer via SR_GrammarSetupRecognizer
134 private Grammar mActiveGrammar = null;
176 public class Grammar {
180 * Create a <code>Grammar</code> instance.
183 public Grammar(String g2gFileName) throws IOException {
216 * Setup <code>Grammar</code> with <code>Recognizer</code>.
224 * Save <code>Grammar</code> to g2g file.
234 * Release resources associated with this <code>Grammar</code>.
250 throw new IllegalStateException("someone forgot to destroy Grammar");
355 * <code>Grammar.addWordToSlot</code>.