gensim.utils.prune_vocab()

gensim.utils.prune_vocab(vocab, min_reduce, trim_rule=None)[source]

Remove all entries from the vocab dictionary with count smaller than min_reduce.

Modifies vocab in place, returns the sum of all counts that were pruned.