Skip to content

Commit

Permalink
fixed copy&replace error in chunksize
Browse files Browse the repository at this point in the history
  • Loading branch information
piskvorky committed Jul 7, 2011
1 parent e4a1563 commit 53bd35f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions gensim/test/simspeed2.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,8 @@
start = time()
if chunksize > 1:
sims = []
for chunksize in gensim.utils.chunksizeize_serial(query, chunksize):
_ = index_dense[chunksize]
for chunk in gensim.utils.chunkize_serial(query, chunksize):
_ = index_dense[chunk]
else:
for vec in query:
_ = index_dense[vec]
Expand All @@ -128,8 +128,8 @@
start = time()
if chunksize > 1:
sims = []
for chunksize in gensim.utils.chunksizeize_serial(query, chunksize):
_ = index_sparse[chunksize]
for chunk in gensim.utils.chunkize_serial(query, chunksize):
_ = index_sparse[chunk]
else:
for vec in query:
_ = index_sparse[vec]
Expand Down

0 comments on commit 53bd35f

Please sign in to comment.