nltk.BottomUpLeftCornerChartParser

class nltk.BottomUpLeftCornerChartParser(grammar, **parser_args)[source]

A ChartParser using a bottom-up left-corner parsing strategy. This strategy is often more efficient than standard bottom-up. See ChartParser for more information.

Methods

__init__(grammar, **parser_args)
chart_parse(tokens[, trace]) Return the final parse Chart from which all possible parse trees can be extracted.
grammar()
parse(tokens[, tree_class])
parse_all(sent, *args, **kwargs)
rtype:list(Tree)
parse_one(sent, *args, **kwargs)
rtype:Tree or None
parse_sents(sents, *args, **kwargs) Apply self.parse() to each element of sents.