Update README.md
Browse files
README.md
CHANGED
|
@@ -60,27 +60,4 @@ The data is organized by language pair and domain. Each language pair directory
|
|
| 60 |
|
| 61 |
Each dataset configuration is provided as a single **tab-separated text file** (`.txt`).
|
| 62 |
|
| 63 |
-
Each line in the file represents a parallel sentence pair, with the source language sentence and the target language sentence separated by a single tab character (`\t`).
|
| 64 |
-
|
| 65 |
-
---
|
| 66 |
-
|
| 67 |
-
## How to Use
|
| 68 |
-
|
| 69 |
-
You can easily load this dataset using the Hugging Face `datasets` library. You will need to specify the configuration name, which is a combination of the language pair and the domain.
|
| 70 |
-
|
| 71 |
-
The configuration name follows the pattern: `{src_lang}-{tgt_lang}_{domain}`. For example, to load the Hindi-Gujarati pair from the general domain, you would use `hi-gu_general`.
|
| 72 |
-
|
| 73 |
-
```python
|
| 74 |
-
# Make sure you have the 'datasets' library installed
|
| 75 |
-
# pip install datasets
|
| 76 |
-
|
| 77 |
-
from datasets import load_dataset
|
| 78 |
-
|
| 79 |
-
# Example 1: Load the English-Hindi pair from the Health domain
|
| 80 |
-
en_hi_health_dataset = load_dataset("HimangY/CoRil-Parallel", "en-hi_health")
|
| 81 |
-
|
| 82 |
-
# Example 2: Load the Hindi-Kannada pair from the Governance domain
|
| 83 |
-
hi_kn_gov_dataset = load_dataset("HimangY/CoRil-Parallel", "hi-kn_governance")
|
| 84 |
-
|
| 85 |
-
# Access the data splits (e.g., train)
|
| 86 |
-
print(en_hi_health_dataset['train'][0])
|
|
|
|
| 60 |
|
| 61 |
Each dataset configuration is provided as a single **tab-separated text file** (`.txt`).
|
| 62 |
|
| 63 |
+
Each line in the file represents a parallel sentence pair, with the source language sentence and the target language sentence separated by a single tab character (`\t`).
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|