Update README.md
Browse files
README.md
CHANGED
|
@@ -43,8 +43,8 @@ This dataset only has train split. To split out a test split, use
|
|
| 43 |
```python
|
| 44 |
from datasets import load_dataset
|
| 45 |
train_split = load_dataset("TingChen-ppmc/Shanghai_Dialect_Conversational_Speech_Corpus", split="train")
|
| 46 |
-
# where
|
| 47 |
-
corpus = train_split.train_test_split(
|
| 48 |
```
|
| 49 |
|
| 50 |
A sample data would be
|
|
|
|
| 43 |
```python
|
| 44 |
from datasets import load_dataset
|
| 45 |
train_split = load_dataset("TingChen-ppmc/Shanghai_Dialect_Conversational_Speech_Corpus", split="train")
|
| 46 |
+
# where test_size=0.5 denotes 0.5 of the dataset will be split to test split
|
| 47 |
+
corpus = train_split.train_test_split(test_size=0.5)
|
| 48 |
```
|
| 49 |
|
| 50 |
A sample data would be
|