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