ViuAI commited on
Commit
c08fb43
ยท
verified ยท
1 Parent(s): 4882d67

Design upgrade: Sleek tier-1 dataset card matching ViuAI-500M standards

Browse files
Files changed (1) hide show
  1. README.md +42 -41
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
- [![Dataset Provider](https://img.shields.io/badge/Provider-ViuAI%20Research-blue.svg?style=for-the-badge&logo=huggingface)](https://huggingface.co/ViuAI)
36
- [![Total Pairs](https://img.shields.io/badge/Curated%20Pairs-102%2C502-green.svg?style=for-the-badge)](https://huggingface.co/datasets/ViuAI/ViuTranslate-Data)
37
- [![Active Tokens](https://img.shields.io/badge/Tokens-13.6%20Million-orange.svg?style=for-the-badge)](https://huggingface.co/datasets/ViuAI/ViuTranslate-Data)
38
- [![License](https://img.shields.io/badge/License-Apache%202.0-red.svg?style=for-the-badge)](https://www.apache.org/licenses/LICENSE-2.0)
39
- [![Synthetic Data](https://img.shields.io/badge/Synthetic%20Data-0%25%20(100%25%20Human)-purple.svg?style=for-the-badge)](#)
40
 
41
- <p align="center">
42
- <b>100% Human-Curated</b> โ€ข <b>Academic Ground-Truth</b> โ€ข <b>Pre-tokenized Memory-Mapped Shards</b> โ€ข <b>Strictly Filtered</b>
43
- </p>
 
 
44
 
45
- </div>
46
 
47
  ---
48
 
49
- ## ๐Ÿ“– Dataset Summary
50
 
51
- **ViuTranslate-Data** is a production-grade English $\leftrightarrow$ Hindi 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 Statistics & Sourcing
58
 
59
- | Source Corpus | Institution | Curated Clean Pairs | Domain Diversity |
60
- |---|---|---|---|
61
- | **IIT Bombay English-Hindi Corpus** | CFILT, IIT Bombay | **50,000 Pairs** | Government, literature, science, judicial, and news texts |
62
- | **AI4Bharat Samanantar** | IIT Madras / AI4Bharat | **50,000 Pairs** | Large-scale verified Indian language web & publication texts |
63
- | **IIT Bombay Gold Benchmark Test Set**| CFILT, IIT Bombay | **2,502 Pairs** | Internationally recognized gold benchmark validation set |
64
- | **Total** | โ€” | **102,502 Pairs** | **13.6 Million Active Training Tokens** |
65
 
66
  ---
67
 
68
- ## ๐Ÿ›ก๏ธ Rigorous Quality Control Filters
69
 
70
- Real-world web corpora contain significant noise, truncation, and mistranslations. To ensure only golden data enters training, the following mathematical filters were applied:
71
 
72
- 1. **Length Ratio Guardrail:**
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 Identification & Character Purity:**
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
- ## ๐Ÿ—‚๏ธ Repository Layout
86
 
87
  ```
88
  ViuTranslate-Data/
89
- โ”œโ”€โ”€ README.md # Comprehensive Dataset Documentation
90
- โ”œโ”€โ”€ metadata.json # Token counts & domain definitions
91
  โ”‚
92
  โ”œโ”€โ”€ raw/ # Raw Curated Sentence Pairs (JSON)
93
- โ”‚ โ”œโ”€โ”€ viu_translate_100k_train.json # 100,000 Clean Real Training Pairs (29.6 MB)
94
- โ”‚ โ””โ”€โ”€ viu_translate_val.json # 2,502 Gold Benchmark Validation Pairs (1.18 MB)
95
  โ”‚
96
- โ””โ”€โ”€ Pre-tokenized Shards (.npy) # Fast Memory-Mapped Binary Arrays
97
  โ”œโ”€โ”€ train_tokens.npy # Token IDs (int32, 54.5 MB)
98
- โ”œโ”€โ”€ train_labels.npy # Target completion labels with -100 masking (int32)
99
- โ”œโ”€โ”€ train_offsets.npy # Sample boundary pointers (int64, 1.6 MB)
100
- โ”œโ”€โ”€ train_domains.npy # Direction IDs (int32, 0.8 MB)
101
- โ”œโ”€โ”€ val_tokens.npy # Validation Token IDs (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 Domain IDs (int32, 0.02 MB)
105
  ```
106
 
107
  ---
108
 
109
- ## ๐Ÿ’ก How to Load in Python
 
 
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
- ### Direct Download of Binary Shards
 
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 successfully.")
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 Curated 100K+ Real Academic Parallel Corpus for English-Hindi Translation},
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
+ [![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)
38
+ [![Dataset Pairs](https://img.shields.io/badge/Pairs-102%2C502-green.svg)](#-dataset-overview)
39
+ [![Active Tokens](https://img.shields.io/badge/Active%20Tokens-13.6%20Million-orange.svg)](#-dataset-overview)
40
+ [![Synthetic Data](https://img.shields.io/badge/Synthetic%20Data-0%25%20(Pure%20Human)-purple.svg)](#-quality-control-guardrails)
41
+ [![Languages](https://img.shields.io/badge/Languages-English%20%7C%20Hindi-red.svg)](#-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},