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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GrammarCompiler
public GrammarCompiler()
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