Add dataset card
Browse files
README.md
CHANGED
|
@@ -1,25 +1,69 @@
|
|
| 1 |
---
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
configs:
|
| 21 |
-
- config_name: default
|
| 22 |
-
data_files:
|
| 23 |
-
- split: train
|
| 24 |
-
path: data/train-*
|
| 25 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
+
license: cc-by-4.0
|
| 3 |
+
language:
|
| 4 |
+
- en
|
| 5 |
+
- fr
|
| 6 |
+
- de
|
| 7 |
+
- ar
|
| 8 |
+
- zh
|
| 9 |
+
task_categories:
|
| 10 |
+
- translation
|
| 11 |
+
- feature-extraction
|
| 12 |
+
- sentence-similarity
|
| 13 |
+
size_categories:
|
| 14 |
+
- 1K<n<100K
|
| 15 |
+
tags:
|
| 16 |
+
- parallel-sentences
|
| 17 |
+
- multilingual
|
| 18 |
+
- opus-100
|
| 19 |
+
pretty_name: OPUS-100 5-way (en/fr/de/ar/zh)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 20 |
---
|
| 21 |
+
|
| 22 |
+
# OPUS-100 5-way parallel (en / fr / de / ar / zh)
|
| 23 |
+
|
| 24 |
+
Five-way parallel sentences derived from
|
| 25 |
+
[`Helsinki-NLP/opus-100`](https://huggingface.co/datasets/Helsinki-NLP/opus-100).
|
| 26 |
+
|
| 27 |
+
## How it was built
|
| 28 |
+
|
| 29 |
+
OPUS-100 is English-centric and ships ~1M sentence pairs *per* `XX-en` config.
|
| 30 |
+
For each of the four target languages we built a dictionary
|
| 31 |
+
`english_sentence -> non_english` from the `train`, `validation`, and `test`
|
| 32 |
+
splits of the relevant config (`en-fr`, `de-en`, `ar-en`, `en-zh`), then took
|
| 33 |
+
the **intersection of English keys** across all four. Each row therefore has
|
| 34 |
+
the same English anchor sentence aligned to a French, German, Arabic, and
|
| 35 |
+
Chinese translation that originally appeared in OPUS-100.
|
| 36 |
+
|
| 37 |
+
Cleaning per cell:
|
| 38 |
+
|
| 39 |
+
- strip surrounding whitespace, collapse runs of whitespace
|
| 40 |
+
- drop rows where any cell is shorter than 3 or longer than 1000 characters
|
| 41 |
+
- drop control characters
|
| 42 |
+
- on duplicate English keys within a single source config, keep the first occurrence
|
| 43 |
+
- final dedup on the `en` column
|
| 44 |
+
|
| 45 |
+
## Schema
|
| 46 |
+
|
| 47 |
+
| column | language |
|
| 48 |
+
|--------|-----------------|
|
| 49 |
+
| `en` | English (anchor)|
|
| 50 |
+
| `fr` | French |
|
| 51 |
+
| `de` | German |
|
| 52 |
+
| `ar` | Arabic |
|
| 53 |
+
| `zh` | Chinese |
|
| 54 |
+
|
| 55 |
+
Single split: `train` (9329 rows).
|
| 56 |
+
|
| 57 |
+
## Usage
|
| 58 |
+
|
| 59 |
+
```python
|
| 60 |
+
from datasets import load_dataset
|
| 61 |
+
ds = load_dataset("nirmalendu01/opus100-en-fr-de-ar-zh", split="train")
|
| 62 |
+
print(ds[0])
|
| 63 |
+
```
|
| 64 |
+
|
| 65 |
+
## License & citation
|
| 66 |
+
|
| 67 |
+
Inherits the OPUS-100 license (CC BY 4.0). Please cite the original OPUS-100
|
| 68 |
+
paper (Zhang et al., 2020, "Improving Massively Multilingual Neural Machine
|
| 69 |
+
Translation and Zero-Shot Translation") if you use this dataset.
|