nltk.CFG.is_flexible_chomsky_normal_form

CFG.is_flexible_chomsky_normal_form()[source]

Return True if all productions are of the forms A -> B C, A -> B, or A -> “s”.