edu.stanford.nlp.parser.oldparser
Class SimpleChartParser
java.lang.Object
|
+--edu.stanford.nlp.parser.oldparser.SimpleChartParser
- public class SimpleChartParser
- extends Object
SimpleChartParser: Tests ChartParser functionality.
Method Summary |
static void |
main(String[] args)
Run the chart parser. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
main
public static void main(String[] args)
throws FileNotFoundException
- Run the chart parser. This class is intended as a simple demonstration
of running the chart parser on small grammars, rather than for heavy
duty uses. In particular, it tries to count and print all parses for
a sentence, so it's bad news if that number is huge.
The
main()
method can either have arguments
specifying the lexicon grammar, start symbol and sentences file, or
it will default to reading them from fixed filenames. In this case,
It expects files simple-test.grammar
and
simple-test.lexicon
in the current directory.
java edu.stanford.nlp.parser.oldparser.SimpleChartParser
lex gram start sents
The sentences should be one per line in the file sents.
FileNotFoundException
Stanford NLP Group