nltk.PCFG.max_len

PCFG.max_len()

Return the right-hand side length of the longest grammar production.