Datasets:
proadhikary
commited on
Commit
•
f9e6181
1
Parent(s):
7bc8f99
Update README.md
Browse files
README.md
CHANGED
@@ -50,11 +50,29 @@ This dataset is primarily intended for training and evaluating machine translati
|
|
50 |
|
51 |
## Dataset Structure
|
52 |
|
53 |
-
###
|
54 |
|
55 |
-
|
56 |
-
|
|
|
57 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
58 |
|
59 |
## Dataset Creation
|
60 |
|
|
|
50 |
|
51 |
## Dataset Structure
|
52 |
|
53 |
+
### Load the dataset
|
54 |
|
55 |
+
Using Huggingface:
|
56 |
+
```python
|
57 |
+
from datasets import load_dataset
|
58 |
|
59 |
+
ds = load_dataset("proadhikary/parallel-english-mizo")
|
60 |
+
```
|
61 |
+
|
62 |
+
Using Pandas:
|
63 |
+
```python
|
64 |
+
import pandas as pd
|
65 |
+
|
66 |
+
splits = {'train': 'data/train-00000-of-00001.parquet', 'test': 'data/test-00000-of-00001.parquet'}
|
67 |
+
df = pd.read_parquet("hf://datasets/proadhikary/parallel-english-mizo/" + splits["train"])
|
68 |
+
```
|
69 |
+
|
70 |
+
|
71 |
+
|
72 |
+
### Data Splits
|
73 |
+
|
74 |
+
- `train`: Contains the majority of the parallel sentences for model training.
|
75 |
+
- `test`: 20% sentences reserved for testing model performance.
|
76 |
|
77 |
## Dataset Creation
|
78 |
|