Update README.md
Browse files
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.
|
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)
|