gensim.utils.get_max_id()

gensim.utils.get_max_id(corpus)[source]

Return the highest feature id that appears in the corpus.

For empty corpora (no features at all), return -1.