|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectup.MyParser
public class MyParser
Skeleton class for your own implementation of a Viterbi parser.
Constructor Summary | |
---|---|
MyParser(Grammar grammar)
Constructs a new parser for the specified grammar. |
Method Summary | |
---|---|
Tree |
getBestParse(java.util.List<java.lang.String> words)
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 MyParser(Grammar grammar)
grammar
- the grammar for which to construct the parserMethod Detail |
---|
public Tree getBestParse(java.util.List<java.lang.String> words)
getBestParse
in interface Parser
words
- a sequence of words
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 |