dmlc / gluon-nlp

NLP made easy
https://nlp.gluon.ai/
Apache License 2.0
2.56k stars 538 forks source link

fix prepare_openwebtext #1289

Closed ZiyueHuang closed 4 years ago

ZiyueHuang commented 4 years ago

Description

The current implementation will raise TypeError: 'NoneType' object is not iterable, since random.shuffle() shuffles the input in place and returns None.

cc @szhengac @sxjscience

Checklist

Essentials

Changes

Comments

cc @dmlc/gluon-nlp-team

codecov[bot] commented 4 years ago

Codecov Report

Merging #1289 into numpy will not change coverage. The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##            numpy    #1289   +/-   ##
=======================================
  Coverage   83.60%   83.60%           
=======================================
  Files          42       42           
  Lines        6375     6375           
=======================================
  Hits         5330     5330           
  Misses       1045     1045           
zheyuye commented 4 years ago

Thanks for fixing this.