Datasets:
File size: 1,836 Bytes
5591273 f4acc08 5591273 bc02384 5591273 | 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 | ---
task_categories:
- text2text-generation
language:
- bn
tags:
- bangla
- punctuation-restoration
- adversarial-examples
- seq2seq
- nlp
pretty_name: Bangla Punctuation Restoration (Adversarial Attack)
size_categories:
- 10K<n<100K
---
# ha-pr-bn-aminul-attack
**Dataset Name:** `ha-pr-bn-aminul-attack`
**Language:** Bengali (bn)
**Task:** Punctuation Restoration (Text-to-Text Generation)
**Size:** 11,113 conversations
**Format:** Human-assistant conversations with adversarially perturbed inputs
## Dataset Description
This dataset extends `ha-pr-bn-aminul-generated` with **adversarial attacks** on the unpunctuated inputs. It simulates noisy or corrupted Bangla text, often produced by OCR, ASR, or user typos. The assistant still returns the original, correct punctuated version.
## Dataset Summary
- **Language:** Bengali (bn)
- **Task:** Punctuation Restoration (Text-to-Text Generation)
- **Size:** 11,113 adversarial examples
- **License:** CC BY 4.0
- **Purpose:** Test the robustness of punctuation models under noisy input conditions
## Dataset Structure
### Data Instances
```json
{
"input": "শুধু বর্ষা নয় শীত বা গ্রীষ্মেও বেড়ে যাচ্ছে তাপ",
"target": "শুধু বর্ষা নয়, শীত বা গ্রীষ্মেও বেড়ে যাচ্ছে তাপ।"
}
```
## Usage
```python
from datasets import load_dataset
dataset = load_dataset("aminul/ha-pr-bn-aminul-attack")
print(dataset["train"][0])
```
## Dataset Creation
### Attack Methods
Generated using `TextAttack` techniques:
- Word-level swaps
- Misspellings
- OCR-style distortions
- Transliteration and ASR-style noise
### Processing
1. Perturb the input sentence
2. Preserve original `target` (punctuated) text |