Datasets:
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,3 +1,126 @@
|
|
| 1 |
-
---
|
| 2 |
-
license: apache-2.0
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
task_categories:
|
| 4 |
+
- token-classification
|
| 5 |
+
- text-classification
|
| 6 |
+
tags:
|
| 7 |
+
- code
|
| 8 |
+
---
|
| 9 |
+
|
| 10 |
+
# Bangla Punctuation Restoration Dataset
|
| 11 |
+
|
| 12 |
+
A merged, high-quality Bangla dataset for **punctuation restoration**, formatted as **instruction-tuning conversation pairs**.
|
| 13 |
+
The dataset is suitable for fine-tuning Large Language Models (LLMs) and sequence models to restore punctuation in Bangla text.
|
| 14 |
+
|
| 15 |
+
---
|
| 16 |
+
|
| 17 |
+
## Dataset Summary
|
| 18 |
+
|
| 19 |
+
- **Language**: Bengali (Bangla)
|
| 20 |
+
- **Task**: Punctuation Restoration
|
| 21 |
+
- **Format**: JSONL (instruction-style conversations)
|
| 22 |
+
- **Max chunk length**: ~256 characters
|
| 23 |
+
- **Punctuation covered**:
|
| 24 |
+
`। ! ? , ; : -`
|
| 25 |
+
|
| 26 |
+
Each example contains:
|
| 27 |
+
- An **unpunctuated Bangla text** as input
|
| 28 |
+
- A **punctuated Bangla text** as output
|
| 29 |
+
|
| 30 |
+
---
|
| 31 |
+
|
| 32 |
+
## Data Format
|
| 33 |
+
|
| 34 |
+
Each dataset entry follows the structure below:
|
| 35 |
+
|
| 36 |
+
```json
|
| 37 |
+
{
|
| 38 |
+
"conversations": [
|
| 39 |
+
{
|
| 40 |
+
"from": "human",
|
| 41 |
+
"value": "এটি একটি উদাহরণ বাক্য যেখানে কোন বিরামচিহ্ন নেই"
|
| 42 |
+
},
|
| 43 |
+
{
|
| 44 |
+
"from": "gpt",
|
| 45 |
+
"value": "এটি একটি উদাহরণ বাক্য, যেখানে কোনো বিরামচিহ্ন নেই।"
|
| 46 |
+
}
|
| 47 |
+
],
|
| 48 |
+
"source": "source_name",
|
| 49 |
+
"score": 7.83
|
| 50 |
+
}
|
| 51 |
+
````
|
| 52 |
+
|
| 53 |
+
### Field Description
|
| 54 |
+
|
| 55 |
+
| Field | Description |
|
| 56 |
+
| --------------- | -------------------------------------------------- |
|
| 57 |
+
| `conversations` | Instruction-style input–output pair |
|
| 58 |
+
| `source` | Origin of the sample |
|
| 59 |
+
| `score` | Random float (4.0–10.0), placeholder quality score |
|
| 60 |
+
|
| 61 |
+
---
|
| 62 |
+
|
| 63 |
+
## Data Sources
|
| 64 |
+
|
| 65 |
+
This dataset is created by merging and processing three main sources:
|
| 66 |
+
|
| 67 |
+
### 1. Badhon/BanglaQuranPunctuationDataset (Hugging Face)
|
| 68 |
+
|
| 69 |
+
* Bangla Quran text with accurate punctuation
|
| 70 |
+
* High grammatical and punctuation consistency
|
| 71 |
+
|
| 72 |
+
### 2. hishab/hishab-pr-bn-v1 (Hugging Face)
|
| 73 |
+
|
| 74 |
+
* Bangla punctuation restoration dataset
|
| 75 |
+
* Diverse sentence structures and punctuation styles
|
| 76 |
+
|
| 77 |
+
### 3. Web-Collected Bangla Text (Custom Scraper)
|
| 78 |
+
|
| 79 |
+
High-quality Bangla paragraphs collected from:
|
| 80 |
+
|
| 81 |
+
* Bengali Wikipedia
|
| 82 |
+
* Prothom Alo (`prothomalo.com`)
|
| 83 |
+
* BBC Bangla (`bbc.com/bengali`)
|
| 84 |
+
* Bangla blogs:
|
| 85 |
+
|
| 86 |
+
* somewhereinblog.net
|
| 87 |
+
* sachalayatan.com
|
| 88 |
+
* amarblog.com
|
| 89 |
+
|
| 90 |
+
---
|
| 91 |
+
|
| 92 |
+
## Data Processing
|
| 93 |
+
|
| 94 |
+
The following preprocessing steps were applied:
|
| 95 |
+
|
| 96 |
+
### Cleaning
|
| 97 |
+
|
| 98 |
+
* Preserved Bangla punctuation (`। ! ? , ; : -`)
|
| 99 |
+
* Removed encoding artifacts and noisy symbols
|
| 100 |
+
* Ensured Bangla language dominance
|
| 101 |
+
|
| 102 |
+
### Chunking
|
| 103 |
+
|
| 104 |
+
* Text split into chunks of ≤256 characters
|
| 105 |
+
* Sentence-boundary–aware splitting
|
| 106 |
+
* Avoided mid-sentence truncation
|
| 107 |
+
|
| 108 |
+
### Quality Filtering
|
| 109 |
+
|
| 110 |
+
* Minimum and maximum length thresholds
|
| 111 |
+
* Required presence of natural punctuation
|
| 112 |
+
* Removed malformed or low-quality samples
|
| 113 |
+
|
| 114 |
+
### Deduplication
|
| 115 |
+
|
| 116 |
+
* Removed duplicates using punctuated-text matching
|
| 117 |
+
* Improved diversity and reduced redundancy
|
| 118 |
+
|
| 119 |
+
---
|
| 120 |
+
|
| 121 |
+
## Intended Uses
|
| 122 |
+
|
| 123 |
+
* Fine-tuning LLMs for Bangla punctuation restoration
|
| 124 |
+
* Training instruction-following Bangla NLP models
|
| 125 |
+
* Sequence-to-sequence or token-classification approaches
|
| 126 |
+
* ASR post-processing pipelines (speech → text → punctuation)
|