edu.stanford.nlp.lexgram
Class GrammarCompiler

java.lang.Object
  |
  +--edu.stanford.nlp.lexgram.GrammarCompiler

public final class GrammarCompiler
extends Object

Grammar Compiler Class for compiling DFSA grammars from simple grammars.


Constructor Summary
GrammarCompiler()
           
 
Method Summary
 DFSARule shallowClosure(Grammar g, Lexicon l, Label root)
           
 DFSAGrammar simpleGrammarToListDFSAGrammar(SimpleGrammar simpleG)
           
 DFSAGrammar simpleGrammarToMinDFSAGrammar(SimpleGrammar simpleG)
           
 DFSAGrammar simpleGrammarToTrieDFSAGrammar(SimpleGrammar simpleG)
           
 void writeDFSAasDOTfile(DFSA dfsa, File file)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GrammarCompiler

public GrammarCompiler()
Method Detail

simpleGrammarToTrieDFSAGrammar

public DFSAGrammar simpleGrammarToTrieDFSAGrammar(SimpleGrammar simpleG)

simpleGrammarToMinDFSAGrammar

public DFSAGrammar simpleGrammarToMinDFSAGrammar(SimpleGrammar simpleG)

simpleGrammarToListDFSAGrammar

public DFSAGrammar simpleGrammarToListDFSAGrammar(SimpleGrammar simpleG)

shallowClosure

public DFSARule shallowClosure(Grammar g,
                               Lexicon l,
                               Label root)

writeDFSAasDOTfile

public void writeDFSAasDOTfile(DFSA dfsa,
                               File file)


Stanford NLP Group