def __call__(self, sents, min_count):
    words = [word for sent in sents for word in sent]
    word_count = {w: 0 for w in set(words)}
    for w in words:
        word_count[w] += 1
    ignored_word_count = 0
    for (word, count) in word_count.items():
        if (count <= min_count):
            ignored_word_count += 1
            continue
        self.add(word)
    return ignored_word_count
def __call__(self, sents, min_count):
    words = [word for sent in sents for word in sent]
    word_count = {w: 0 for w in set(words)}
    for w in words:
        word_count[w] += 1
    ignored_word_count = 0
    for (word, count) in word_count.items():
        if (count <= min_count):
            ignored_word_count += 1
            continue
        self.add(word)
    return ignored_word_count