Skip to content

Commit

Permalink
[fix] Ordering of batch texts is incorrect
Browse files Browse the repository at this point in the history
  • Loading branch information
bhavnicksm committed Jan 7, 2025
1 parent 504a936 commit f2d5313
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/chonkie/chunker/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ def _process_batch_multiprocessing(self,
unit="texts",
bar_format="{desc}: [{bar:20}] {percentage:3.0f}% • {n_fmt}/{total_fmt} texts chunked [{elapsed}<{remaining}, {rate_fmt}] 🌱",
ascii=' >=') as pbar:
for result in pool.imap_unordered(self.chunk, texts, chunksize=chunksize):
for result in pool.imap(self.chunk, texts, chunksize=chunksize):
results.append(result)
pbar.update()
return results
Expand Down

0 comments on commit f2d5313

Please sign in to comment.