izhx commited on
Commit
b8b9a3d
1 Parent(s): d5e1387

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +1 -1
README.md CHANGED
@@ -26,7 +26,7 @@ def load_openrice():
26
 
27
  ds = datasets.Dataset.from_generator(load_openrice)
28
  print(ds)
29
- dsd = ds.train_test_split(0.2, seed=42)
30
  dsd['test'].to_json('data/test.jsonl', orient='records', force_ascii=False)
31
  dsd['train'].to_json('data/train.jsonl', orient='records', force_ascii=False)
32
  print(dsd)
 
26
 
27
  ds = datasets.Dataset.from_generator(load_openrice)
28
  print(ds)
29
+ dsd = ds.train_test_split(0.1, seed=42)
30
  dsd['test'].to_json('data/test.jsonl', orient='records', force_ascii=False)
31
  dsd['train'].to_json('data/train.jsonl', orient='records', force_ascii=False)
32
  print(dsd)