nltk.PCFG.check_coverage

PCFG.check_coverage(tokens)

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