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- es
|
| 11 |
+
- fr
|
| 12 |
+
- hi
|
| 13 |
+
- id
|
| 14 |
+
- it
|
| 15 |
+
- ja
|
| 16 |
+
- ko
|
| 17 |
+
- nl
|
| 18 |
+
- pl
|
| 19 |
+
- pt
|
| 20 |
+
- ru
|
| 21 |
+
- sv
|
| 22 |
+
- th
|
| 23 |
+
- tr
|
| 24 |
+
- uk
|
| 25 |
+
- vi
|
| 26 |
+
- zh
|
| 27 |
+
license:
|
| 28 |
+
- apache-2.0
|
| 29 |
+
multilinguality:
|
| 30 |
+
- multilingual
|
| 31 |
+
pretty_name: UTS-Datasets
|
| 32 |
+
size_categories:
|
| 33 |
+
- 10M<n<100M
|
| 34 |
+
source_datasets:
|
| 35 |
+
- opus-100
|
| 36 |
+
- opus_ccmatrix
|
| 37 |
+
- opus_paracrawl
|
| 38 |
+
- open_subtitles
|
| 39 |
+
- wmt19
|
| 40 |
+
- wmt20
|
| 41 |
+
- wmt21
|
| 42 |
+
task_categories:
|
| 43 |
+
- translation
|
| 44 |
+
task_ids:
|
| 45 |
+
- translation
|
| 46 |
---
|
| 47 |
+
|
| 48 |
+
# UTS-Datasets
|
| 49 |
+
|
| 50 |
+
Processed parallel training and validation data for the [Universal Translation System](https://github.com/code-with-zeeshan/universal-translation-system). Generated by the UTS data pipeline with quality enhancement stages.
|
| 51 |
+
|
| 52 |
+
## Dataset Contents
|
| 53 |
+
|
| 54 |
+
### Files
|
| 55 |
+
|
| 56 |
+
| File | Description |
|
| 57 |
+
|------|-------------|
|
| 58 |
+
| `train_final.txt` | ~4M parallel sentences (all language pairs, sampled & augmented) |
|
| 59 |
+
| `val_final.txt` | ~100K validation sentences (held out from training) |
|
| 60 |
+
| `vocab/` | Script-grouped SentencePiece vocabulary packs (6 groups × 32K tokens) |
|
| 61 |
+
| `pipeline_state.json` | Pipeline checkpoint state for resumability |
|
| 62 |
+
|
| 63 |
+
### Language Coverage
|
| 64 |
+
|
| 65 |
+
20 languages, 190 directional pairs:
|
| 66 |
+
|
| 67 |
+
| Group | Languages |
|
| 68 |
+
|-------|-----------|
|
| 69 |
+
| Latin | en, es, fr, de, it, pt, nl, sv, pl, id, vi, tr |
|
| 70 |
+
| CJK | zh, ja, ko |
|
| 71 |
+
| Arabic | ar |
|
| 72 |
+
| Devanagari | hi |
|
| 73 |
+
| Cyrillic | ru, uk |
|
| 74 |
+
| Thai | th |
|
| 75 |
+
|
| 76 |
+
### Training Distribution (top pairs)
|
| 77 |
+
|
| 78 |
+
| Pair | Sentences |
|
| 79 |
+
|------|-----------|
|
| 80 |
+
| en-es | 400K |
|
| 81 |
+
| en-fr | 400K |
|
| 82 |
+
| en-de | 400K |
|
| 83 |
+
| en-zh | 300K |
|
| 84 |
+
| en-ru | 300K |
|
| 85 |
+
| en-ja | 200K |
|
| 86 |
+
| en-ar | 200K |
|
| 87 |
+
| en-pt | 200K |
|
| 88 |
+
| en-it | 200K |
|
| 89 |
+
| en-hi | 100K |
|
| 90 |
+
| Others (10 pairs) | 60K-100K each |
|
| 91 |
+
| Non-English pivots (14 pairs) | 40K each |
|
| 92 |
+
|
| 93 |
+
## Data Processing Pipeline
|
| 94 |
+
|
| 95 |
+
The data was processed through the UTS pipeline stages:
|
| 96 |
+
|
| 97 |
+
1. **Download** — OPUS-100 + supplementary sources (CCMatrix, ParaCrawl, OpenSubtitles, WMT)
|
| 98 |
+
2. **Sampling** — Length filtering (16-128 tokens), language detection, deduplication
|
| 99 |
+
3. **Augmentation** — False friends replacement, idiom insertion, pivot backtranslation
|
| 100 |
+
4. **Knowledge Distillation** — NLLB-3.3B teacher → soft labels (GPU-only stage)
|
| 101 |
+
5. **Quality Filtering** — COMET-22 neural quality scoring (threshold 0.7)
|
| 102 |
+
6. **Vocabulary** — SentencePiece training per script group (unigram model, 32K tokens)
|
| 103 |
+
|
| 104 |
+
## Usage
|
| 105 |
+
|
| 106 |
+
```bash
|
| 107 |
+
# Download via HF Hub
|
| 108 |
+
pip install huggingface_hub
|
| 109 |
+
huggingface-cli download code-with-zeeshan/UTS-Datasets --repo-type dataset --local-dir ./uts_data
|
| 110 |
+
|
| 111 |
+
# Use with UTS training
|
| 112 |
+
uts train --full --config config/override/my_config.yaml --hub-repo-id code-with-zeeshan/UTS-Datasets
|
| 113 |
+
```
|
| 114 |
+
|
| 115 |
+
## Data Format
|
| 116 |
+
|
| 117 |
+
Each line in `train_final.txt` / `val_final.txt`:
|
| 118 |
+
```
|
| 119 |
+
<langpair> ||| <source_text> ||| <target_text>
|
| 120 |
+
```
|
| 121 |
+
|
| 122 |
+
Example:
|
| 123 |
+
```
|
| 124 |
+
en-es ||| Hello world ||| Hola mundo
|
| 125 |
+
```
|
| 126 |
+
|
| 127 |
+
## Recreating This Dataset
|
| 128 |
+
|
| 129 |
+
```bash
|
| 130 |
+
uts config --interactive
|
| 131 |
+
# Enable all stages: download, sample, augment, create_ready,
|
| 132 |
+
# validate, vocab, wiki_bt, knowledge_distillation, comet
|
| 133 |
+
uts data --pipeline --config config/override/my_config.yaml --hub-repo-id code-with-zeeshan/UTS-Datasets
|
| 134 |
+
```
|
| 135 |
+
|
| 136 |
+
## License
|
| 137 |
+
|
| 138 |
+
Apache 2.0
|