Datasets:
Design upgrade: Sleek tier-1 dataset card matching ViuAI-500M standards
Browse files
README.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
| 1 |
---
|
|
|
|
| 2 |
language:
|
| 3 |
- en
|
| 4 |
- hi
|
| 5 |
-
license: apache-2.0
|
| 6 |
task_categories:
|
| 7 |
- translation
|
| 8 |
size_categories:
|
|
@@ -12,6 +12,7 @@ tags:
|
|
| 12 |
- translation
|
| 13 |
- nmt
|
| 14 |
- viuai
|
|
|
|
| 15 |
- english-hindi
|
| 16 |
- indic
|
| 17 |
- devanagari
|
|
@@ -30,49 +31,48 @@ configs:
|
|
| 30 |
<div align="center">
|
| 31 |
|
| 32 |
# ๐ ViuTranslate-Data
|
| 33 |
-
### *Industry-Standard Bilingual Parallel Corpus (English โ Hindi)*
|
| 34 |
|
| 35 |
-
|
| 36 |
-
[](https://huggingface.co/datasets/ViuAI/ViuTranslate-Data)
|
| 37 |
-
[](https://huggingface.co/datasets/ViuAI/ViuTranslate-Data)
|
| 38 |
-
[](https://www.apache.org/licenses/LICENSE-2.0)
|
| 39 |
-
[-purple.svg?style=for-the-badge)](#)
|
| 40 |
|
| 41 |
-
|
| 42 |
-
|
| 43 |
-
|
|
|
|
|
|
|
| 44 |
|
| 45 |
-
|
| 46 |
|
| 47 |
---
|
| 48 |
|
| 49 |
-
|
| 50 |
|
| 51 |
-
|
|
|
|
|
|
|
| 52 |
|
| 53 |
Every single sentence pair is extracted from official, published academic and institutional corpora. **Zero synthetic data**, zero LLM-prompted dialogues, and zero templated variations were used.
|
| 54 |
|
| 55 |
---
|
| 56 |
|
| 57 |
-
## ๐ Corpus
|
| 58 |
|
| 59 |
-
| Source Corpus | Institution | Curated
|
| 60 |
-
|---|---|---|---|
|
| 61 |
-
| **IIT Bombay English-Hindi Corpus** | CFILT, IIT Bombay | **50,000 Pairs** |
|
| 62 |
-
| **AI4Bharat Samanantar** | IIT Madras / AI4Bharat | **50,000 Pairs** |
|
| 63 |
-
| **IIT Bombay
|
| 64 |
-
| **Total** | โ | **102,502 Pairs** | **13
|
| 65 |
|
| 66 |
---
|
| 67 |
|
| 68 |
-
## ๐ก๏ธ Rigorous Quality Control
|
| 69 |
|
| 70 |
-
|
| 71 |
|
| 72 |
-
1. **Length Ratio
|
| 73 |
$$\quad 0.40 \le \frac{\text{len}(\text{English})}{\text{len}(\text{Hindi})} \le 2.40$$
|
| 74 |
Pairs violating this ratio were strictly pruned to eliminate incomplete or runaway translations.
|
| 75 |
-
2. **Script
|
| 76 |
- English side enforced $\ge 50\%$ Latin alphabetic characters ($[A-Za-z]$).
|
| 77 |
- Hindi side enforced $\ge 40\%$ Devanagari Unicode characters ($[\u0900-\u097F]$).
|
| 78 |
3. **Hygiene & Sanitation:**
|
|
@@ -82,49 +82,50 @@ Real-world web corpora contain significant noise, truncation, and mistranslation
|
|
| 82 |
|
| 83 |
---
|
| 84 |
|
| 85 |
-
##
|
| 86 |
|
| 87 |
```
|
| 88 |
ViuTranslate-Data/
|
| 89 |
-
โโโ README.md #
|
| 90 |
-
โโโ metadata.json #
|
| 91 |
โ
|
| 92 |
โโโ raw/ # Raw Curated Sentence Pairs (JSON)
|
| 93 |
-
โ โโโ viu_translate_100k_train.json # 100,000
|
| 94 |
-
โ โโโ viu_translate_val.json # 2,502 Gold Benchmark
|
| 95 |
โ
|
| 96 |
-
โโโ Pre-tokenized Shards (.npy) #
|
| 97 |
โโโ train_tokens.npy # Token IDs (int32, 54.5 MB)
|
| 98 |
-
โโโ train_labels.npy #
|
| 99 |
-
โโโ train_offsets.npy # Sample
|
| 100 |
-
โโโ train_domains.npy # Direction
|
| 101 |
-
โโโ val_tokens.npy # Validation
|
| 102 |
โโโ val_labels.npy # Validation Labels (int32, 2.2 MB)
|
| 103 |
โโโ val_offsets.npy # Validation Offsets (int64, 0.04 MB)
|
| 104 |
-
โโโ val_domains.npy # Validation
|
| 105 |
```
|
| 106 |
|
| 107 |
---
|
| 108 |
|
| 109 |
-
## ๐ก
|
|
|
|
|
|
|
| 110 |
|
| 111 |
-
### Using Hugging Face `datasets`
|
| 112 |
```python
|
| 113 |
from datasets import load_dataset
|
| 114 |
|
| 115 |
dataset = load_dataset("ViuAI/ViuTranslate-Data", data_files={"train": "raw/viu_translate_100k_train.json"})
|
| 116 |
print("Sample 0:", dataset["train"][0])
|
| 117 |
-
# {'en': 'The sun rises in the east and sets in the west.', 'hi': 'เคธเฅเคฐเค เคชเฅเคฐเฅเคต เคฎเฅเค เคเคเคคเคพ เคนเฅ เคเคฐ เคชเคถเฅเคเคฟเคฎ เคฎเฅเค เคกเฅเคฌเคคเคพ เคนเฅเฅค', 'source': 'iitb_train'}
|
| 118 |
```
|
| 119 |
|
| 120 |
-
###
|
|
|
|
| 121 |
```python
|
| 122 |
import numpy as np
|
| 123 |
from huggingface_hub import hf_hub_download
|
| 124 |
|
| 125 |
tokens_file = hf_hub_download(repo_id="ViuAI/ViuTranslate-Data", filename="train_tokens.npy", repo_type="dataset")
|
| 126 |
tokens = np.load(tokens_file, mmap_mode="r")
|
| 127 |
-
print(f"Loaded {len(tokens):,} memory-mapped tokens
|
| 128 |
```
|
| 129 |
|
| 130 |
---
|
|
@@ -134,7 +135,7 @@ print(f"Loaded {len(tokens):,} memory-mapped tokens successfully.")
|
|
| 134 |
```bibtex
|
| 135 |
@misc{viutranslate_data2026,
|
| 136 |
author = {ViuAI Research Team},
|
| 137 |
-
title = {ViuTranslate-Data: A
|
| 138 |
year = {2026},
|
| 139 |
publisher = {Hugging Face},
|
| 140 |
journal = {Hugging Face Dataset Hub},
|
|
|
|
| 1 |
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
language:
|
| 4 |
- en
|
| 5 |
- hi
|
|
|
|
| 6 |
task_categories:
|
| 7 |
- translation
|
| 8 |
size_categories:
|
|
|
|
| 12 |
- translation
|
| 13 |
- nmt
|
| 14 |
- viuai
|
| 15 |
+
- sarus-500m
|
| 16 |
- english-hindi
|
| 17 |
- indic
|
| 18 |
- devanagari
|
|
|
|
| 31 |
<div align="center">
|
| 32 |
|
| 33 |
# ๐ ViuTranslate-Data
|
|
|
|
| 34 |
|
| 35 |
+
### *A 100% Authentic Human-Curated Parallel Corpus for English โ Hindi Neural Translation*
|
|
|
|
|
|
|
|
|
|
|
|
|
| 36 |
|
| 37 |
+
[](https://opensource.org/licenses/Apache-2.0)
|
| 38 |
+
[](#-dataset-overview)
|
| 39 |
+
[](#-dataset-overview)
|
| 40 |
+
[-purple.svg)](#-quality-control-guardrails)
|
| 41 |
+
[](#-dataset-overview)
|
| 42 |
|
| 43 |
+
[**๐ ViuAI Studio**](https://github.com/ViuAI) | [**๐ค Model Hub**](https://huggingface.co/ViuAI/ViuTranslate) | [**๐ Data Provenance**](#-corpus-provenance--split) | [**๐ก Python Usage**](#-loading-the-dataset)
|
| 44 |
|
| 45 |
---
|
| 46 |
|
| 47 |
+
</div>
|
| 48 |
|
| 49 |
+
## ๐ Introduction & Overview
|
| 50 |
+
|
| 51 |
+
**ViuTranslate-Data** is a production-grade bilingual parallel corpus curated specifically for fine-tuning neural machine translation foundation models (like **ViuAI Sarus-500M**).
|
| 52 |
|
| 53 |
Every single sentence pair is extracted from official, published academic and institutional corpora. **Zero synthetic data**, zero LLM-prompted dialogues, and zero templated variations were used.
|
| 54 |
|
| 55 |
---
|
| 56 |
|
| 57 |
+
## ๐ Corpus Provenance & Split
|
| 58 |
|
| 59 |
+
| Source Corpus | Institution | Curated Pairs | Description |
|
| 60 |
+
| :--- | :--- | :--- | :--- |
|
| 61 |
+
| **IIT Bombay English-Hindi Corpus** | CFILT, IIT Bombay | **50,000 Pairs** | Academic gold standard covering news, judicial, literature, and governmental texts |
|
| 62 |
+
| **AI4Bharat Samanantar** | IIT Madras / AI4Bharat | **50,000 Pairs** | Verified web & publication Indian language corpus |
|
| 63 |
+
| **IIT Bombay Benchmark Test Set** | CFILT, IIT Bombay | **2,502 Pairs** | Internationally accepted gold validation test suite |
|
| 64 |
+
| **Total Corpus** | โ | **102,502 Pairs** | **13,633,518 Active Training Tokens** |
|
| 65 |
|
| 66 |
---
|
| 67 |
|
| 68 |
+
## ๐ก๏ธ Rigorous Quality Control Guardrails
|
| 69 |
|
| 70 |
+
To prevent dataset contamination, hallucinations, and vocabulary pollution, all samples were audited through strict mathematical heuristics:
|
| 71 |
|
| 72 |
+
1. **Length Ratio Boundary:**
|
| 73 |
$$\quad 0.40 \le \frac{\text{len}(\text{English})}{\text{len}(\text{Hindi})} \le 2.40$$
|
| 74 |
Pairs violating this ratio were strictly pruned to eliminate incomplete or runaway translations.
|
| 75 |
+
2. **Script Purity & Unicode Verification:**
|
| 76 |
- English side enforced $\ge 50\%$ Latin alphabetic characters ($[A-Za-z]$).
|
| 77 |
- Hindi side enforced $\ge 40\%$ Devanagari Unicode characters ($[\u0900-\u097F]$).
|
| 78 |
3. **Hygiene & Sanitation:**
|
|
|
|
| 82 |
|
| 83 |
---
|
| 84 |
|
| 85 |
+
## ๐ Repository Structure
|
| 86 |
|
| 87 |
```
|
| 88 |
ViuTranslate-Data/
|
| 89 |
+
โโโ README.md # Official Dataset Card
|
| 90 |
+
โโโ metadata.json # Dataset Configuration & Token Counts
|
| 91 |
โ
|
| 92 |
โโโ raw/ # Raw Curated Sentence Pairs (JSON)
|
| 93 |
+
โ โโโ viu_translate_100k_train.json # 100,000 Verified Academic Pairs (29.6 MB)
|
| 94 |
+
โ โโโ viu_translate_val.json # 2,502 Gold Benchmark Pairs (1.18 MB)
|
| 95 |
โ
|
| 96 |
+
โโโ Pre-tokenized Shards (.npy) # Ready-to-Train Memory-Mapped Arrays
|
| 97 |
โโโ train_tokens.npy # Token IDs (int32, 54.5 MB)
|
| 98 |
+
โโโ train_labels.npy # Loss-Masked Target Tokens (int32, 54.5 MB)
|
| 99 |
+
โโโ train_offsets.npy # Sample Boundaries (int64, 1.6 MB)
|
| 100 |
+
โโโ train_domains.npy # Direction Flags (int32, 0.8 MB)
|
| 101 |
+
โโโ val_tokens.npy # Validation Tokens (int32, 2.2 MB)
|
| 102 |
โโโ val_labels.npy # Validation Labels (int32, 2.2 MB)
|
| 103 |
โโโ val_offsets.npy # Validation Offsets (int64, 0.04 MB)
|
| 104 |
+
โโโ val_domains.npy # Validation Domains (int32, 0.02 MB)
|
| 105 |
```
|
| 106 |
|
| 107 |
---
|
| 108 |
|
| 109 |
+
## ๐ก Loading the Dataset
|
| 110 |
+
|
| 111 |
+
### 1. Using Hugging Face `datasets`
|
| 112 |
|
|
|
|
| 113 |
```python
|
| 114 |
from datasets import load_dataset
|
| 115 |
|
| 116 |
dataset = load_dataset("ViuAI/ViuTranslate-Data", data_files={"train": "raw/viu_translate_100k_train.json"})
|
| 117 |
print("Sample 0:", dataset["train"][0])
|
|
|
|
| 118 |
```
|
| 119 |
|
| 120 |
+
### 2. Loading Pre-tokenized Memory-Mapped Shards (Fastest for Training)
|
| 121 |
+
|
| 122 |
```python
|
| 123 |
import numpy as np
|
| 124 |
from huggingface_hub import hf_hub_download
|
| 125 |
|
| 126 |
tokens_file = hf_hub_download(repo_id="ViuAI/ViuTranslate-Data", filename="train_tokens.npy", repo_type="dataset")
|
| 127 |
tokens = np.load(tokens_file, mmap_mode="r")
|
| 128 |
+
print(f"Loaded {len(tokens):,} memory-mapped tokens.")
|
| 129 |
```
|
| 130 |
|
| 131 |
---
|
|
|
|
| 135 |
```bibtex
|
| 136 |
@misc{viutranslate_data2026,
|
| 137 |
author = {ViuAI Research Team},
|
| 138 |
+
title = {ViuTranslate-Data: A 100% Authentic Human-Curated Parallel Corpus for English-Hindi Translation},
|
| 139 |
year = {2026},
|
| 140 |
publisher = {Hugging Face},
|
| 141 |
journal = {Hugging Face Dataset Hub},
|