nltk.SteppingRecursiveDescentParser.set_grammar

SteppingRecursiveDescentParser.set_grammar(grammar)[source]

Change the grammar used to parse texts.

Parameters:grammar (CFG) – The new grammar.