Hi, I'm having some trouble figuring out how to use the Parser class.
 Sorry if this is a noob question.

The Parser interface doesn't seem to have any parse() method that accepts a
tokenized sentence or string.  The parse() methods accept a Parse object,
i.e. the root of a parse tree, which seems weird to me -- if something is
already parsed, why do you need to parse it?  The only thing I can think of
is that you're supposed to pass it an empty Parse node and maybe it fills
in the children.  But -- how do you tell it what to actually parse?

Meanwhile, the documentation says to use a method from the command line
tool:

String sentence = *"The quick brown fox jumps over the lazy dog ."*;
Parse topParses[] = ParserTool.parseLine(sentence, parser, 1);

Is that really the only way to parse a sentence -- to use a class from the
command line tool?  Also, I can't find any information about the ParserTool
class anywhere in the javadocs so this is a nonstarter.

Can anyone on the list point me to some information about how to use this
class?  Thanks.

Reply via email to