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 19, 2020
1 parent c231478 commit 106e813
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gensim/corpora/sharded_corpus.py
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ def init_shards(self, output_prefix, corpus, shardsize=4096, dtype=_default_dtyp

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(doc.values())

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

0 comments on commit 106e813

Please sign in to comment.