up
Interface Parser

All Known Implementing Classes:
MyParser, SimpleParser, StupidParser

public interface Parser

A Viterbi parser.


Method Summary
 Tree getBestParse(java.util.List<java.lang.String> words)
          Returns a best parse tree for the specified word sequence.
 

Method Detail

getBestParse

Tree getBestParse(java.util.List<java.lang.String> words)
Returns a best parse tree for the specified word sequence.

Parameters:
words - a sequence of word tokens
Returns:
a best parse tree for the specified word sequence, or null if this parser cannot parse the specified sequence