horychtom commited on
Commit
262354b
·
1 Parent(s): 344824e

Update mbib-base.py

Browse files
Files changed (1) hide show
  1. mbib-base.py +1 -1
mbib-base.py CHANGED
@@ -38,7 +38,7 @@ class MBIB(datasets.GeneratorBasedBuilder):
38
 
39
 
40
  def _generate_examples(self, data_dir):
41
- df = pd.read_csv(data_dir)[['text','label']]
42
 
43
  for i, row in df.iterrows():
44
  yield i, {"text":row['text'],"label":row['label']}
 
38
 
39
 
40
  def _generate_examples(self, data_dir):
41
+ df = pd.read_csv(data_dir)[['text','label']].sample(frac=1)
42
 
43
  for i, row in df.iterrows():
44
  yield i, {"text":row['text'],"label":row['label']}