nltk.CFG.max_len

CFG.max_len()[source]

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