nltk.CFG.check_coverage

CFG.check_coverage(tokens)[source]

Check whether the grammar rules cover the given list of tokens. If not, then raise an exception.