gensim.utils.ClippedCorpus.__init__¶
-
ClippedCorpus.
__init__
(corpus, max_docs=None)[source]¶ Return a corpus that is the “head” of input iterable corpus.
Any documents after max_docs are ignored. This effectively limits the length of the returned corpus to <= max_docs. Set max_docs=None for “no limit”, effectively wrapping the entire input corpus.