kardosdrur commited on
Commit
78b38b8
1 Parent(s): b2eb1e8

Added train-test splits

Browse files
Files changed (1) hide show
  1. generate_dataset.py +1 -0
generate_dataset.py CHANGED
@@ -37,6 +37,7 @@ def main():
37
  with open(file) as in_file:
38
  threads.append(in_file.read().split("\n"))
39
  dataset = Dataset.from_generator(partial(generate_dataset, threads))
 
40
  dataset.push_to_hub("kardosdrur/hestenet-qa")
41
 
42
 
 
37
  with open(file) as in_file:
38
  threads.append(in_file.read().split("\n"))
39
  dataset = Dataset.from_generator(partial(generate_dataset, threads))
40
+ dataset = dataset.train_test_split(test_size=0.2, shuffle=True)
41
  dataset.push_to_hub("kardosdrur/hestenet-qa")
42
 
43