|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectup.SimpleParser
public class SimpleParser
A simple chart-based CKY parser.
Constructor Summary | |
---|---|
SimpleParser(Grammar grammar)
Constructs a new parser for the specified grammar. |
Method Summary | |
---|---|
Tree |
getBestParse(java.util.List<java.lang.String> tokens)
Returns a best parse tree for the specified word sequence. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SimpleParser(Grammar grammar)
grammar
- the grammar to be used by this parserMethod Detail |
---|
public Tree getBestParse(java.util.List<java.lang.String> tokens)
Parser
getBestParse
in interface Parser
tokens
- a sequence of word tokens
null
if this parser cannot parse the specified sequence
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |