Skip to content

Commit

Permalink
get rid of forgotten itervalues
Browse files Browse the repository at this point in the history
  • Loading branch information
piskvorky committed Oct 18, 2020
1 parent c231478 commit 3706346
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions gensim/corpora/sharded_corpus.py
Original file line number Diff line number Diff line change
Expand Up @@ -288,8 +288,7 @@ def init_shards(self, output_prefix, corpus, shardsize=4096, dtype=_default_dtyp
logger.debug('Current chunk dimension: %d x %d', len(doc_chunk), self.dim)

for i, doc in enumerate(doc_chunk):
doc = dict(doc)
current_shard[i][list(doc)] = list(gensim.matutils.itervalues(doc))
current_shard[i][list(doc)] = list(dict(doc).values())

# Handles the updating as well.
if self.sparse_serialization:
Expand Down

0 comments on commit 3706346

Please sign in to comment.