__init__ (grammar[, trace]) |
|
backtrack () |
Return the parser to its state before the most recent match or expand operation. |
currently_complete () |
return: | Whether the parser’s current state represents a |
|
expand ([production]) |
Expand the first element of the frontier. |
expandable_productions () |
return: | A list of all the productions for which expansions |
|
frontier () |
return: | A list of the tree locations of all subtrees that |
|
grammar () |
|
initialize (tokens) |
Start parsing a given text. |
match () |
Match the first element of the frontier. |
parse (tokens) |
|
parse_all (sent, *args, **kwargs) |
|
parse_one (sent, *args, **kwargs) |
|
parse_sents (sents, *args, **kwargs) |
Apply self.parse() to each element of sents . |
parses () |
return: | An iterator of the parses that have been found by this |
|
remaining_text () |
return: | The portion of the text that is not yet covered by the |
|
set_grammar (grammar) |
Change the grammar used to parse texts. |
step () |
Perform a single parsing operation. |
trace ([trace]) |
Set the level of tracing output that should be generated when parsing a text. |
tree () |
return: | A partial structure for the text that is |
|
untried_expandable_productions () |
return: | A list of all the untried productions for which |
|
untried_match () |
return: | Whether the first element of the frontier is a token |
|