edu.stanford.nlp.parser
Interface ViterbiParser

All Superinterfaces:
Parser
All Known Subinterfaces:
KBestViterbiParser, ViterbiParserWithOptions
All Known Implementing Classes:
BiLexPCFGParser, BiLexPCFGParser.N5BiLexPCFGParser, ExhaustiveDependencyParser, ExhaustivePCFGParser, FastFactoredParser, IterativeCKYPCFGParser, LexicalizedParser

public interface ViterbiParser
extends Parser

The interface for Viterbi parsers. Viterbi parsers support getBestParse, which returns a best parse of the input, or null if no parse exists.

Author:
Dan Klein

Method Summary
 Tree getBestParse()
          Returns a best parse of the last sentence on which parse was called, or null if none exists.
 
Methods inherited from interface edu.stanford.nlp.parser.Parser
parse, parse
 

Method Detail

getBestParse

Tree getBestParse()
Returns a best parse of the last sentence on which parse was called, or null if none exists.

Returns:
The tree for the best parse


Stanford NLP Group