parquet-converter
commited on
Commit
•
99dcadc
1
Parent(s):
181031f
Update parquet files
Browse files- .gitattributes +0 -51
- IndicXParaphrase.py +0 -75
- as/indic_x_paraphrase-test.parquet +3 -0
- bn/indic_x_paraphrase-test.parquet +3 -0
- data/as.tsv +0 -0
- data/bn.tsv +0 -0
- data/gu.tsv +0 -0
- data/hi.tsv +0 -0
- data/kn.tsv +0 -0
- data/ml.tsv +0 -0
- data/mr.tsv +0 -0
- data/or.tsv +0 -0
- data/pa.tsv +0 -0
- data/te.tsv +0 -0
- gu/indic_x_paraphrase-test.parquet +3 -0
- hi/indic_x_paraphrase-test.parquet +3 -0
- kn/indic_x_paraphrase-test.parquet +3 -0
- ml/indic_x_paraphrase-test.parquet +3 -0
- mr/indic_x_paraphrase-test.parquet +3 -0
- or/indic_x_paraphrase-test.parquet +3 -0
- pa/indic_x_paraphrase-test.parquet +3 -0
- te/indic_x_paraphrase-test.parquet +3 -0
.gitattributes
DELETED
@@ -1,51 +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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
IndicXParaphrase.py
DELETED
@@ -1,75 +0,0 @@
|
|
1 |
-
"""TODO(Indicxparaphrase): Add a description here."""
|
2 |
-
|
3 |
-
|
4 |
-
import json
|
5 |
-
import pandas as pd
|
6 |
-
import datasets
|
7 |
-
|
8 |
-
|
9 |
-
_HOMEPAGE = ""
|
10 |
-
|
11 |
-
_CITATION = """\
|
12 |
-
|
13 |
-
"""
|
14 |
-
|
15 |
-
_DESCRIPTION = """\
|
16 |
-
|
17 |
-
"""
|
18 |
-
|
19 |
-
_LANG = ["as", "bn", "gu", "hi", "kn", "ml", "mr", "or", "pa", "te"]
|
20 |
-
_URL = "https://huggingface.co/datasets/ai4bharat/IndicXParaphrase/resolve/main/data/{language}.tsv"
|
21 |
-
_VERSION = datasets.Version("1.0.0", "First version of Indicxparaphrase")
|
22 |
-
|
23 |
-
|
24 |
-
class Indicxparaphrase(datasets.GeneratorBasedBuilder):
|
25 |
-
"""TODO(Indicxparaphrase): Short description of my dataset."""
|
26 |
-
BUILDER_CONFIGS = [
|
27 |
-
datasets.BuilderConfig(
|
28 |
-
name=f"{lang}",
|
29 |
-
description=f"Cross-lingual paraphrase dataset for language {lang}",
|
30 |
-
version=_VERSION,
|
31 |
-
)
|
32 |
-
for lang in _LANG
|
33 |
-
]
|
34 |
-
|
35 |
-
def _info(self):
|
36 |
-
return datasets.DatasetInfo(
|
37 |
-
description=_DESCRIPTION + self.config.description,
|
38 |
-
features=datasets.Features(
|
39 |
-
{
|
40 |
-
"english": datasets.Value("string"),
|
41 |
-
"sentence1": datasets.Value("string"),
|
42 |
-
"sentence2": datasets.Value("string"),
|
43 |
-
"label": datasets.features.ClassLabel(names=["0", "1"]),
|
44 |
-
}
|
45 |
-
),
|
46 |
-
homepage=_HOMEPAGE,
|
47 |
-
citation=_CITATION,
|
48 |
-
)
|
49 |
-
|
50 |
-
def _split_generators(self, dl_manager):
|
51 |
-
"""Returns SplitGenerators."""
|
52 |
-
language = self.config.name
|
53 |
-
splits = {datasets.Split.TEST: "test"}
|
54 |
-
data_urls = {
|
55 |
-
split: _URL.format(language=language) for split in splits
|
56 |
-
}
|
57 |
-
dl_paths = dl_manager.download(data_urls)
|
58 |
-
return [
|
59 |
-
datasets.SplitGenerator(
|
60 |
-
name=split,
|
61 |
-
gen_kwargs={"filepath": dl_paths[split]},
|
62 |
-
)
|
63 |
-
for split in splits
|
64 |
-
]
|
65 |
-
|
66 |
-
def _generate_examples(self, filepath):
|
67 |
-
"""Yields examples."""
|
68 |
-
df = pd.read_csv(filepath, sep="\t")
|
69 |
-
for idx, row in df.iterrows():
|
70 |
-
yield idx, {
|
71 |
-
"english": row['en'],
|
72 |
-
"sentence1": row['sentence1'],
|
73 |
-
"sentence2": row['sentence2'],
|
74 |
-
"label": row['label'],
|
75 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
as/indic_x_paraphrase-test.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:ae50a0c3b6c7d3ff7704a55ea1ce3017ced11dc78530077ce56bfe0d5ca25dfa
|
3 |
+
size 367072
|
bn/indic_x_paraphrase-test.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:4e1711d38369c2918e30bf5ac97c2a8ef6c8ecf4396901b02082019864c9205f
|
3 |
+
size 319753
|
data/as.tsv
DELETED
The diff for this file is too large to render.
See raw diff
|
|
data/bn.tsv
DELETED
The diff for this file is too large to render.
See raw diff
|
|
data/gu.tsv
DELETED
The diff for this file is too large to render.
See raw diff
|
|
data/hi.tsv
DELETED
The diff for this file is too large to render.
See raw diff
|
|
data/kn.tsv
DELETED
The diff for this file is too large to render.
See raw diff
|
|
data/ml.tsv
DELETED
The diff for this file is too large to render.
See raw diff
|
|
data/mr.tsv
DELETED
The diff for this file is too large to render.
See raw diff
|
|
data/or.tsv
DELETED
The diff for this file is too large to render.
See raw diff
|
|
data/pa.tsv
DELETED
The diff for this file is too large to render.
See raw diff
|
|
data/te.tsv
DELETED
The diff for this file is too large to render.
See raw diff
|
|
gu/indic_x_paraphrase-test.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:7cc1f0ead792174235cc23a636a243099cb5e03a76a3f26050aa72c86d0142c5
|
3 |
+
size 330921
|
hi/indic_x_paraphrase-test.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:5620f1c7251478342b51a007650e1cfab587c1cf73d912172464959962bdff76
|
3 |
+
size 330902
|
kn/indic_x_paraphrase-test.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:5ad1e1592406d0464ec7d5ef4ce9dd66ef59dd88bcceeebf872f386a268a2e77
|
3 |
+
size 378921
|
ml/indic_x_paraphrase-test.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:d8fc0b4b889101e5f883ec386bc0c3aa67a4257f6c3795756e4f033f08a0e2c6
|
3 |
+
size 369970
|
mr/indic_x_paraphrase-test.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:18da94828032e2d9b7599879ca92278c395675ab1a5c2710a6bd1e86694d98ef
|
3 |
+
size 364851
|
or/indic_x_paraphrase-test.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:19f1d9aa616bea8e9e9a8237781e480e15ca0d6158d8703da7041cb2db274a90
|
3 |
+
size 346133
|
pa/indic_x_paraphrase-test.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:07b7cb1fc52c7f841bf13163806841085bd3ebbac42fd65c58d1b2f4f919600f
|
3 |
+
size 334527
|
te/indic_x_paraphrase-test.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:fb9c0150c0ed9bac9229e01f45f1e6d80f6ecb12dbc4f49b64f6b22fbcaa8a54
|
3 |
+
size 349151
|