class_docstr: tests Vocabulary Class
class_docstr_tok: ["tests","Vocabulary","Class"]
code: def test_membership_check_respects_cutoff(self):
      # a was seen 2 times, so it should be considered part of the vocabulary
      self.assertTrue("a" in self.vocab)
      # "c" was seen once, it shouldn't be considered part of the vocab
      self.assertFalse("c" in self.vocab)
      # "z" was never seen at all, also shouldn't be considered in the vocab
      self.assertFalse("z" in self.vocab)
  
imports: import unittest
  from collections import Counter
  from timeit import timeit
  from nltk.lm import Vocabulary
label_desc: Use image node_id 7 for calling the NgramModelVocabularyTests obj's underlying member method code with example usage: obj.test_membership_check_respects_cutoff() without return types