gensim.corpora.ShardedCorpus.in_next

ShardedCorpus.in_next(offset)[source]

Determine whether the given offset falls within the next shard. This is a very small speedup: typically, we will be iterating through the data forward. Could save considerable time with a very large number of smaller shards.