File size: 3,192 Bytes
1213428
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
---
license: apache-2.0
task_categories:
- token-classification
- text-classification
tags:
- code
---

# Bangla Punctuation Restoration Dataset

A merged, high-quality Bangla dataset for **punctuation restoration**, formatted as **instruction-tuning conversation pairs**.  
The dataset is suitable for fine-tuning Large Language Models (LLMs) and sequence models to restore punctuation in Bangla text.

---

## Dataset Summary

- **Language**: Bengali (Bangla)
- **Task**: Punctuation Restoration
- **Format**: JSONL (instruction-style conversations)
- **Max chunk length**: ~256 characters
- **Punctuation covered**:  
  `। ! ? , ; : -`

Each example contains:
- An **unpunctuated Bangla text** as input
- A **punctuated Bangla text** as output

---

## Data Format

Each dataset entry follows the structure below:

```json
{
  "conversations": [
    {
      "from": "human",
      "value": "এটি একটি উদাহরণ বাক্য যেখানে কোন বিরামচিহ্ন নেই"
    },
    {
      "from": "gpt",
      "value": "এটি একটি উদাহরণ বাক্য, যেখানে কোনো বিরামচিহ্ন নেই।"
    }
  ],
  "source": "source_name",
  "score": 7.83
}
````

### Field Description

| Field           | Description                                        |
| --------------- | -------------------------------------------------- |
| `conversations` | Instruction-style input–output pair                |
| `source`        | Origin of the sample                               |
| `score`         | Random float (4.0–10.0), placeholder quality score |

---

## Data Sources

This dataset is created by merging and processing three main sources:

### 1. Badhon/BanglaQuranPunctuationDataset (Hugging Face)

* Bangla Quran text with accurate punctuation
* High grammatical and punctuation consistency

### 2. hishab/hishab-pr-bn-v1 (Hugging Face)

* Bangla punctuation restoration dataset
* Diverse sentence structures and punctuation styles

### 3. Web-Collected Bangla Text (Custom Scraper)

High-quality Bangla paragraphs collected from:

* Bengali Wikipedia
* Prothom Alo (`prothomalo.com`)
* BBC Bangla (`bbc.com/bengali`)
* Bangla blogs:

  * somewhereinblog.net
  * sachalayatan.com
  * amarblog.com

---

## Data Processing

The following preprocessing steps were applied:

### Cleaning

* Preserved Bangla punctuation (`। ! ? , ; : -`)
* Removed encoding artifacts and noisy symbols
* Ensured Bangla language dominance

### Chunking

* Text split into chunks of ≤256 characters
* Sentence-boundary–aware splitting
* Avoided mid-sentence truncation

### Quality Filtering

* Minimum and maximum length thresholds
* Required presence of natural punctuation
* Removed malformed or low-quality samples

### Deduplication

* Removed duplicates using punctuated-text matching
* Improved diversity and reduced redundancy

---

## Intended Uses

* Fine-tuning LLMs for Bangla punctuation restoration
* Training instruction-following Bangla NLP models
* Sequence-to-sequence or token-classification approaches
* ASR post-processing pipelines (speech → text → punctuation)