gensim.similarities.Similarity.query_shards

Similarity.query_shards(query)[source]

Return the result of applying shard[query] for each shard in self.shards, as a sequence.

If PARALLEL_SHARDS is set, the shards are queried in parallel, using the multiprocessing module.