Datasets:
parquet-converter
commited on
Commit
·
2522560
1
Parent(s):
55a7cf0
Update parquet files
Browse files- .gitattributes +0 -52
- .gitignore +0 -1
- BanglaParaphrase.py +0 -88
- README.md +0 -180
- data/BanglaParaphrase.zip → bn/bangla_paraphrase-test.parquet +2 -2
- bn/bangla_paraphrase-train.parquet +3 -0
- bn/bangla_paraphrase-validation.parquet +3 -0
.gitattributes
DELETED
@@ -1,52 +0,0 @@
|
|
1 |
-
*.7z filter=lfs diff=lfs merge=lfs -text
|
2 |
-
*.arrow filter=lfs diff=lfs merge=lfs -text
|
3 |
-
*.bin filter=lfs diff=lfs merge=lfs -text
|
4 |
-
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
5 |
-
*.ftz filter=lfs diff=lfs merge=lfs -text
|
6 |
-
*.gz filter=lfs diff=lfs merge=lfs -text
|
7 |
-
*.h5 filter=lfs diff=lfs merge=lfs -text
|
8 |
-
*.joblib filter=lfs diff=lfs merge=lfs -text
|
9 |
-
*.lfs.* filter=lfs diff=lfs merge=lfs -text
|
10 |
-
*.lz4 filter=lfs diff=lfs merge=lfs -text
|
11 |
-
*.model filter=lfs diff=lfs merge=lfs -text
|
12 |
-
*.msgpack filter=lfs diff=lfs merge=lfs -text
|
13 |
-
*.npy filter=lfs diff=lfs merge=lfs -text
|
14 |
-
*.npz filter=lfs diff=lfs merge=lfs -text
|
15 |
-
*.onnx filter=lfs diff=lfs merge=lfs -text
|
16 |
-
*.ot filter=lfs diff=lfs merge=lfs -text
|
17 |
-
*.parquet filter=lfs diff=lfs merge=lfs -text
|
18 |
-
*.pb filter=lfs diff=lfs merge=lfs -text
|
19 |
-
*.pickle filter=lfs diff=lfs merge=lfs -text
|
20 |
-
*.pkl filter=lfs diff=lfs merge=lfs -text
|
21 |
-
*.pt filter=lfs diff=lfs merge=lfs -text
|
22 |
-
*.pth filter=lfs diff=lfs merge=lfs -text
|
23 |
-
*.rar filter=lfs diff=lfs merge=lfs -text
|
24 |
-
saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
25 |
-
*.tar.* filter=lfs diff=lfs merge=lfs -text
|
26 |
-
*.tflite filter=lfs diff=lfs merge=lfs -text
|
27 |
-
*.tgz filter=lfs diff=lfs merge=lfs -text
|
28 |
-
*.wasm filter=lfs diff=lfs merge=lfs -text
|
29 |
-
*.xz filter=lfs diff=lfs merge=lfs -text
|
30 |
-
*.zip filter=lfs diff=lfs merge=lfs -text
|
31 |
-
*.zst filter=lfs diff=lfs merge=lfs -text
|
32 |
-
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
33 |
-
# Audio files - uncompressed
|
34 |
-
*.pcm filter=lfs diff=lfs merge=lfs -text
|
35 |
-
*.sam filter=lfs diff=lfs merge=lfs -text
|
36 |
-
*.raw filter=lfs diff=lfs merge=lfs -text
|
37 |
-
# Audio files - compressed
|
38 |
-
*.aac filter=lfs diff=lfs merge=lfs -text
|
39 |
-
*.flac filter=lfs diff=lfs merge=lfs -text
|
40 |
-
*.mp3 filter=lfs diff=lfs merge=lfs -text
|
41 |
-
*.ogg filter=lfs diff=lfs merge=lfs -text
|
42 |
-
*.wav filter=lfs diff=lfs merge=lfs -text
|
43 |
-
# Image files - uncompressed
|
44 |
-
*.bmp filter=lfs diff=lfs merge=lfs -text
|
45 |
-
*.gif filter=lfs diff=lfs merge=lfs -text
|
46 |
-
*.png filter=lfs diff=lfs merge=lfs -text
|
47 |
-
*.tiff filter=lfs diff=lfs merge=lfs -text
|
48 |
-
# Image files - compressed
|
49 |
-
*.jpg filter=lfs diff=lfs merge=lfs -text
|
50 |
-
*.jpeg filter=lfs diff=lfs merge=lfs -text
|
51 |
-
*.webp filter=lfs diff=lfs merge=lfs -text
|
52 |
-
train.jsonl filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.gitignore
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
**/.DS_Store
|
|
|
|
BanglaParaphrase.py
DELETED
@@ -1,88 +0,0 @@
|
|
1 |
-
import json
|
2 |
-
import os
|
3 |
-
|
4 |
-
import datasets
|
5 |
-
|
6 |
-
_CITATION = """
|
7 |
-
to be added
|
8 |
-
"""
|
9 |
-
|
10 |
-
_DESCRIPTION = """\
|
11 |
-
We present a high quality bangla paraphrase dataset containing about 466k paraphrase pairs. The paraphrases ensures high quality by being semantically coherent and syntactically diverse.
|
12 |
-
|
13 |
-
"""
|
14 |
-
_HOMEPAGE = "https://github.com/csebuetnlp/banglaparaphrase"
|
15 |
-
|
16 |
-
_LICENSE = "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License (CC BY-NC-SA 4.0)"
|
17 |
-
|
18 |
-
_URL = "https://huggingface.co/datasets/csebuetnlp/BanglaParaphrase/resolve/main/data/BanglaParaphrase.zip"
|
19 |
-
|
20 |
-
|
21 |
-
_LANGUAGES = [
|
22 |
-
"bn"
|
23 |
-
]
|
24 |
-
|
25 |
-
|
26 |
-
class IndicParaphrase(datasets.GeneratorBasedBuilder):
|
27 |
-
VERSION = datasets.Version("1.0.0")
|
28 |
-
|
29 |
-
BUILDER_CONFIGS = [
|
30 |
-
datasets.BuilderConfig(
|
31 |
-
name="bn",
|
32 |
-
version=datasets.Version("1.0.0")
|
33 |
-
)
|
34 |
-
]
|
35 |
-
|
36 |
-
def _info(self):
|
37 |
-
return datasets.DatasetInfo(
|
38 |
-
description=_DESCRIPTION,
|
39 |
-
features=datasets.Features(
|
40 |
-
{
|
41 |
-
"source": datasets.Value("string"),
|
42 |
-
"target": datasets.Value("string")
|
43 |
-
}
|
44 |
-
),
|
45 |
-
supervised_keys=None,
|
46 |
-
homepage=_HOMEPAGE,
|
47 |
-
citation=_CITATION,
|
48 |
-
license=_LICENSE,
|
49 |
-
version=self.VERSION,
|
50 |
-
)
|
51 |
-
|
52 |
-
def _split_generators(self, dl_manager):
|
53 |
-
"""Returns SplitGenerators."""
|
54 |
-
url = _URL
|
55 |
-
data_dir = dl_manager.download_and_extract(url)
|
56 |
-
|
57 |
-
return [
|
58 |
-
datasets.SplitGenerator(
|
59 |
-
name=datasets.Split.TRAIN,
|
60 |
-
gen_kwargs={
|
61 |
-
"filepath": os.path.join(data_dir, "BanglaParaphrase/train.jsonl"),
|
62 |
-
},
|
63 |
-
),
|
64 |
-
datasets.SplitGenerator(
|
65 |
-
name=datasets.Split.TEST,
|
66 |
-
gen_kwargs={
|
67 |
-
"filepath": os.path.join(data_dir, "BanglaParaphrase/test.jsonl"),
|
68 |
-
},
|
69 |
-
),
|
70 |
-
datasets.SplitGenerator(
|
71 |
-
name=datasets.Split.VALIDATION,
|
72 |
-
gen_kwargs={
|
73 |
-
"filepath": os.path.join(data_dir, "BanglaParaphrase/validation.jsonl"),
|
74 |
-
},
|
75 |
-
),
|
76 |
-
]
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
def _generate_examples(self, filepath):
|
81 |
-
"""Yields examples as (key, example) tuples."""
|
82 |
-
with open(filepath, encoding="utf-8") as f:
|
83 |
-
for idx_, row in enumerate(f):
|
84 |
-
data = json.loads(row)
|
85 |
-
yield idx_, {
|
86 |
-
"source": data["source"],
|
87 |
-
"target": data["target"],
|
88 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
README.md
DELETED
@@ -1,180 +0,0 @@
|
|
1 |
-
---
|
2 |
-
annotations_creators:
|
3 |
-
- found
|
4 |
-
language_creators:
|
5 |
-
- found
|
6 |
-
language:
|
7 |
-
- bn
|
8 |
-
license:
|
9 |
-
- cc-by-nc-sa-4.0
|
10 |
-
multilinguality:
|
11 |
-
- monolingual
|
12 |
-
size_categories:
|
13 |
-
- 100k<n<1M
|
14 |
-
source_datasets:
|
15 |
-
- original
|
16 |
-
task_categories:
|
17 |
-
- text2text-generation
|
18 |
-
task_ids: []
|
19 |
-
pretty_name: BanglaParaphrase
|
20 |
-
tags:
|
21 |
-
- conditional-text-generation
|
22 |
-
- paraphrase-generation
|
23 |
-
---
|
24 |
-
|
25 |
-
# Dataset Card for "BanglaParaphrase"
|
26 |
-
|
27 |
-
## Table of Contents
|
28 |
-
- [Dataset Card Creation Guide](#dataset-card-creation-guide)
|
29 |
-
- [Table of Contents](#table-of-contents)
|
30 |
-
- [Dataset Description](#dataset-description)
|
31 |
-
- [Dataset Summary](#dataset-summary)
|
32 |
-
- [Supported Tasks and Leaderboards](#supported-tasks-and-leaderboards)
|
33 |
-
- [Languages](#languages)
|
34 |
-
- [Dataset Structure](#dataset-structure)
|
35 |
-
- [Data Instances](#data-instances)
|
36 |
-
- [Data Fields](#data-fields)
|
37 |
-
- [Data Splits](#data-splits)
|
38 |
-
- [Dataset Creation](#dataset-creation)
|
39 |
-
- [Curation Rationale](#curation-rationale)
|
40 |
-
- [Source Data](#source-data)
|
41 |
-
- [Initial Data Collection and Normalization](#initial-data-collection-and-normalization)
|
42 |
-
- [Who are the source language producers?](#who-are-the-source-language-producers)
|
43 |
-
- [Annotations](#annotations)
|
44 |
-
- [Annotation process](#annotation-process)
|
45 |
-
- [Who are the annotators?](#who-are-the-annotators)
|
46 |
-
- [Personal and Sensitive Information](#personal-and-sensitive-information)
|
47 |
-
- [Considerations for Using the Data](#considerations-for-using-the-data)
|
48 |
-
- [Social Impact of Dataset](#social-impact-of-dataset)
|
49 |
-
- [Discussion of Biases](#discussion-of-biases)
|
50 |
-
- [Other Known Limitations](#other-known-limitations)
|
51 |
-
- [Additional Information](#additional-information)
|
52 |
-
- [Dataset Curators](#dataset-curators)
|
53 |
-
- [Licensing Information](#licensing-information)
|
54 |
-
- [Citation Information](#citation-information)
|
55 |
-
- [Contributions](#contributions)
|
56 |
-
|
57 |
-
## Dataset Description
|
58 |
-
|
59 |
-
- **Repository:** [https://github.com/csebuetnlp/banglaparaphrase](https://github.com/csebuetnlp/banglaparaphrase)
|
60 |
-
- **Paper:** [BanglaParaphrase: A High-Quality Bangla Paraphrase Dataset](https://arxiv.org/abs/2210.05109)
|
61 |
-
- **Point of Contact:** [Najrin Sultana](mailto:[email protected])
|
62 |
-
|
63 |
-
### Dataset Summary
|
64 |
-
|
65 |
-
We present BanglaParaphrase, a high quality synthetic Bangla paraphrase dataset containing about 466k paraphrase pairs.
|
66 |
-
The paraphrases ensures high quality by being semantically coherent and syntactically diverse.
|
67 |
-
|
68 |
-
### Supported Tasks and Leaderboards
|
69 |
-
|
70 |
-
[More information needed](https://github.com/csebuetnlp/banglaparaphrase)
|
71 |
-
|
72 |
-
### Languages
|
73 |
-
|
74 |
-
- `bengali`
|
75 |
-
|
76 |
-
|
77 |
-
## Loading the dataset
|
78 |
-
```python
|
79 |
-
from datasets import load_dataset
|
80 |
-
|
81 |
-
from datasets import load_dataset
|
82 |
-
|
83 |
-
ds = load_dataset("csebuetnlp/BanglaParaphrase")
|
84 |
-
```
|
85 |
-
|
86 |
-
## Dataset Structure
|
87 |
-
|
88 |
-
### Data Instances
|
89 |
-
|
90 |
-
One example from the `train` part of the dataset is given below in JSON format.
|
91 |
-
```
|
92 |
-
{
|
93 |
-
"source": "বেশিরভাগ সময় প্রকৃতির দয়ার ওপরেই বেঁচে থাকতেন উপজাতিরা।",
|
94 |
-
"target": "বেশিরভাগ সময়ই উপজাতিরা প্রকৃতির দয়ার উপর নির্ভরশীল ছিল।"
|
95 |
-
}
|
96 |
-
```
|
97 |
-
|
98 |
-
### Data Fields
|
99 |
-
- 'source': A string representing the source sentence.
|
100 |
-
- 'target': A string representing the target sentence.
|
101 |
-
|
102 |
-
### Data Splits
|
103 |
-
Dataset with train-dev-test example counts are given below:
|
104 |
-
|
105 |
-
Language | ISO 639-1 Code | Train | Validation | Test |
|
106 |
-
-------------- | ---------------- | ------- | ----- | ------ |
|
107 |
-
Bengali | bn | 419, 967 | 233, 31 | 233, 32 |
|
108 |
-
|
109 |
-
|
110 |
-
## Dataset Creation
|
111 |
-
|
112 |
-
### Curation Rationale
|
113 |
-
|
114 |
-
[More information needed](https://github.com/csebuetnlp/banglaparaphrase)
|
115 |
-
|
116 |
-
### Source Data
|
117 |
-
|
118 |
-
[Roar Bangla](https://roar.media/bangla)
|
119 |
-
|
120 |
-
#### Initial Data Collection and Normalization
|
121 |
-
|
122 |
-
[Detailed in the paper](https://arxiv.org/abs/2210.05109)
|
123 |
-
|
124 |
-
|
125 |
-
#### Who are the source language producers?
|
126 |
-
|
127 |
-
[Detailed in the paper](https://arxiv.org/abs/2210.05109)
|
128 |
-
|
129 |
-
|
130 |
-
### Annotations
|
131 |
-
|
132 |
-
[Detailed in the paper](https://arxiv.org/abs/2210.05109)
|
133 |
-
|
134 |
-
|
135 |
-
#### Annotation process
|
136 |
-
|
137 |
-
[Detailed in the paper](https://arxiv.org/abs/2210.05109)
|
138 |
-
|
139 |
-
#### Who are the annotators?
|
140 |
-
|
141 |
-
[Detailed in the paper](https://arxiv.org/abs/2210.05109)
|
142 |
-
|
143 |
-
### Personal and Sensitive Information
|
144 |
-
|
145 |
-
[More information needed](https://github.com/csebuetnlp/banglaparaphrase)
|
146 |
-
|
147 |
-
## Considerations for Using the Data
|
148 |
-
|
149 |
-
### Social Impact of Dataset
|
150 |
-
|
151 |
-
[More information needed](https://github.com/csebuetnlp/banglaparaphrase)
|
152 |
-
|
153 |
-
### Discussion of Biases
|
154 |
-
|
155 |
-
[More information needed](https://github.com/csebuetnlp/banglaparaphrase)
|
156 |
-
|
157 |
-
### Other Known Limitations
|
158 |
-
|
159 |
-
[More information needed](https://github.com/csebuetnlp/banglaparaphrase)
|
160 |
-
|
161 |
-
## Additional Information
|
162 |
-
|
163 |
-
### Dataset Curators
|
164 |
-
|
165 |
-
[More information needed](https://github.com/csebuetnlp/banglaparaphrase)
|
166 |
-
|
167 |
-
### Licensing Information
|
168 |
-
|
169 |
-
Contents of this repository are restricted to only non-commercial research purposes under the [Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License (CC BY-NC-SA 4.0)](https://creativecommons.org/licenses/by-nc-sa/4.0/). Copyright of the dataset contents belongs to the original copyright holders.
|
170 |
-
### Citation Information
|
171 |
-
```
|
172 |
-
@article{akil2022banglaparaphrase,
|
173 |
-
title={BanglaParaphrase: A High-Quality Bangla Paraphrase Dataset},
|
174 |
-
author={Akil, Ajwad and Sultana, Najrin and Bhattacharjee, Abhik and Shahriyar, Rifat},
|
175 |
-
journal={arXiv preprint arXiv:2210.05109},
|
176 |
-
year={2022}
|
177 |
-
}
|
178 |
-
```
|
179 |
-
|
180 |
-
### Contributions
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
data/BanglaParaphrase.zip → bn/bangla_paraphrase-test.parquet
RENAMED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:0bc503ac70b8fbf0ddf038d72987638ac4e82581f309d8f7a5d2e97a5fe159fa
|
3 |
+
size 4236551
|
bn/bangla_paraphrase-train.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:b3380335d7824431d993548cd67d4daada7a8936dd8d8f8fa4122cd72445fbb9
|
3 |
+
size 76115644
|
bn/bangla_paraphrase-validation.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:d4864439832e58efe7b5bb87def98cbac4881f28d5fc344909a42bdcc68f1c42
|
3 |
+
size 4222035
|