Datasets:
Create README.md
Browse files
README.md
ADDED
|
@@ -0,0 +1,77 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
task_categories:
|
| 3 |
+
- text2text-generation
|
| 4 |
+
language:
|
| 5 |
+
- bn
|
| 6 |
+
tags:
|
| 7 |
+
- bangla
|
| 8 |
+
- punctuation-restoration
|
| 9 |
+
- adversarial-examples
|
| 10 |
+
- seq2seq
|
| 11 |
+
- nlp
|
| 12 |
+
pretty_name: Bangla Punctuation Restoration (Adversarial Attack)
|
| 13 |
+
size_categories:
|
| 14 |
+
- 10K<n<100K
|
| 15 |
+
---
|
| 16 |
+
|
| 17 |
+
|
| 18 |
+
# Aminul PR Bengali (Adversarial Attack)
|
| 19 |
+
|
| 20 |
+
**Dataset Name:** `ha-pr-bn-aminul-attack`
|
| 21 |
+
**Language:** Bengali (bn)
|
| 22 |
+
**Task:** Punctuation Restoration (Text-to-Text Generation)
|
| 23 |
+
**Size:** 11,113 conversations
|
| 24 |
+
**License:** [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)
|
| 25 |
+
**Format:** Human-assistant conversations with adversarially perturbed inputs
|
| 26 |
+
|
| 27 |
+
|
| 28 |
+
|
| 29 |
+
## Dataset Description
|
| 30 |
+
|
| 31 |
+
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.
|
| 32 |
+
|
| 33 |
+
|
| 34 |
+
|
| 35 |
+
## Dataset Summary
|
| 36 |
+
|
| 37 |
+
- **Language:** Bengali (bn)
|
| 38 |
+
- **Task:** Punctuation Restoration (Text-to-Text Generation)
|
| 39 |
+
- **Size:** 11,113 adversarial examples
|
| 40 |
+
- **License:** CC BY 4.0
|
| 41 |
+
- **Purpose:** Test the robustness of punctuation models under noisy input conditions
|
| 42 |
+
|
| 43 |
+
|
| 44 |
+
|
| 45 |
+
## Dataset Structure
|
| 46 |
+
|
| 47 |
+
### Data Instances
|
| 48 |
+
|
| 49 |
+
```json
|
| 50 |
+
{
|
| 51 |
+
"input": "শুধু বর্ষা নয় শীত বা গ্রীষ্মেও বেড়ে যাচ্ছে তাপ",
|
| 52 |
+
"target": "শুধু বর্ষা নয়, শীত বা গ্রীষ্মেও বেড়ে যাচ্ছে তাপ।"
|
| 53 |
+
}
|
| 54 |
+
```
|
| 55 |
+
## Usage
|
| 56 |
+
|
| 57 |
+
```python
|
| 58 |
+
from datasets import load_dataset
|
| 59 |
+
|
| 60 |
+
dataset = load_dataset("aminul/ha-pr-bn-aminul-attack")
|
| 61 |
+
print(dataset["train"][0])
|
| 62 |
+
```
|
| 63 |
+
|
| 64 |
+
## Dataset Creation
|
| 65 |
+
|
| 66 |
+
### Attack Methods
|
| 67 |
+
|
| 68 |
+
Generated using `TextAttack` techniques:
|
| 69 |
+
- Word-level swaps
|
| 70 |
+
- Misspellings
|
| 71 |
+
- OCR-style distortions
|
| 72 |
+
- Transliteration and ASR-style noise
|
| 73 |
+
|
| 74 |
+
### Processing
|
| 75 |
+
|
| 76 |
+
1. Perturb the input sentence
|
| 77 |
+
2. Preserve original `target` (punctuated) text
|