sdr 0.7

net.cscott.sdr.calls.grm
Class EmitDictionary

java.lang.Object
  extended by net.cscott.sdr.calls.grm.GrmVisitor<String>
      extended by net.cscott.sdr.calls.grm.EmitDictionary

public class EmitDictionary
extends GrmVisitor<String>

Emit (trimmed) pronunciation dictionary for spoken natural-language call grammar.


Field Summary
static EmitDictionary INSTANCE
           
 
Constructor Summary
EmitDictionary()
           
 
Method Summary
 void collect(Program program, List<RuleAndAction> l)
           
 String emit()
           
protected  String paren(Grm g1, Grm g2)
           
 void readPronunciationDictionary(String resourceName, List<String> entries, Set<String> missing)
           
 String visit(Grm.Alt alt)
           
 String visit(Grm.Concat concat)
           
 String visit(Grm.Mult mult)
           
 String visit(Grm.Nonterminal nt)
           
 String visit(Grm.Terminal t)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSTANCE

public static final EmitDictionary INSTANCE
Constructor Detail

EmitDictionary

public EmitDictionary()
Method Detail

collect

public void collect(Program program,
                    List<RuleAndAction> l)

readPronunciationDictionary

public void readPronunciationDictionary(String resourceName,
                                        List<String> entries,
                                        Set<String> missing)

emit

public String emit()

paren

protected String paren(Grm g1,
                       Grm g2)

visit

public String visit(Grm.Alt alt)
Specified by:
visit in class GrmVisitor<String>

visit

public String visit(Grm.Concat concat)
Specified by:
visit in class GrmVisitor<String>

visit

public String visit(Grm.Mult mult)
Specified by:
visit in class GrmVisitor<String>

visit

public String visit(Grm.Nonterminal nt)
Specified by:
visit in class GrmVisitor<String>

visit

public String visit(Grm.Terminal t)
Specified by:
visit in class GrmVisitor<String>

sdr 0.7

Copyright © 2006-2009 C. Scott Ananian