parquet-converter
commited on
Commit
•
7c8c2d7
1
Parent(s):
6299947
Update parquet files
Browse files- .gitattributes +0 -37
- README.md +0 -9
- de/mtop_intent-test.parquet +3 -0
- de/mtop_intent-train.parquet +3 -0
- de/mtop_intent-validation.parquet +3 -0
- de/test.jsonl +0 -0
- de/train.jsonl +0 -0
- de/validation.jsonl +0 -0
- en/mtop_intent-test.parquet +3 -0
- en/mtop_intent-train.parquet +3 -0
- en/mtop_intent-validation.parquet +3 -0
- en/test.jsonl +0 -0
- en/train.jsonl +0 -0
- en/validation.jsonl +0 -0
- es/mtop_intent-test.parquet +3 -0
- es/mtop_intent-train.parquet +3 -0
- es/mtop_intent-validation.parquet +3 -0
- es/test.jsonl +0 -0
- es/train.jsonl +0 -0
- es/validation.jsonl +0 -0
- fr/mtop_intent-test.parquet +3 -0
- fr/mtop_intent-train.parquet +3 -0
- fr/mtop_intent-validation.parquet +3 -0
- fr/test.jsonl +0 -0
- fr/train.jsonl +0 -0
- fr/validation.jsonl +0 -0
- hi/mtop_intent-test.parquet +3 -0
- hi/mtop_intent-train.parquet +3 -0
- hi/mtop_intent-validation.parquet +3 -0
- hi/test.jsonl +0 -0
- hi/train.jsonl +0 -0
- hi/validation.jsonl +0 -0
- mtop-intent.py +0 -65
- mtop_intent.py +0 -65
- th/mtop_intent-test.parquet +3 -0
- th/mtop_intent-train.parquet +3 -0
- th/mtop_intent-validation.parquet +3 -0
- th/test.jsonl +0 -0
- th/train.jsonl +0 -0
- th/validation.jsonl +0 -0
.gitattributes
DELETED
@@ -1,37 +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 |
-
*.model filter=lfs diff=lfs merge=lfs -text
|
11 |
-
*.msgpack filter=lfs diff=lfs merge=lfs -text
|
12 |
-
*.onnx filter=lfs diff=lfs merge=lfs -text
|
13 |
-
*.ot filter=lfs diff=lfs merge=lfs -text
|
14 |
-
*.parquet filter=lfs diff=lfs merge=lfs -text
|
15 |
-
*.pb filter=lfs diff=lfs merge=lfs -text
|
16 |
-
*.pt filter=lfs diff=lfs merge=lfs -text
|
17 |
-
*.pth filter=lfs diff=lfs merge=lfs -text
|
18 |
-
*.rar filter=lfs diff=lfs merge=lfs -text
|
19 |
-
saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
20 |
-
*.tar.* filter=lfs diff=lfs merge=lfs -text
|
21 |
-
*.tflite filter=lfs diff=lfs merge=lfs -text
|
22 |
-
*.tgz filter=lfs diff=lfs merge=lfs -text
|
23 |
-
*.wasm filter=lfs diff=lfs merge=lfs -text
|
24 |
-
*.xz filter=lfs diff=lfs merge=lfs -text
|
25 |
-
*.zip filter=lfs diff=lfs merge=lfs -text
|
26 |
-
*.zstandard filter=lfs diff=lfs merge=lfs -text
|
27 |
-
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
28 |
-
# Audio files - uncompressed
|
29 |
-
*.pcm filter=lfs diff=lfs merge=lfs -text
|
30 |
-
*.sam filter=lfs diff=lfs merge=lfs -text
|
31 |
-
*.raw filter=lfs diff=lfs merge=lfs -text
|
32 |
-
# Audio files - compressed
|
33 |
-
*.aac filter=lfs diff=lfs merge=lfs -text
|
34 |
-
*.flac filter=lfs diff=lfs merge=lfs -text
|
35 |
-
*.mp3 filter=lfs diff=lfs merge=lfs -text
|
36 |
-
*.ogg filter=lfs diff=lfs merge=lfs -text
|
37 |
-
*.wav filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
README.md
DELETED
@@ -1,9 +0,0 @@
|
|
1 |
-
---
|
2 |
-
language:
|
3 |
-
- de
|
4 |
-
- en
|
5 |
-
- es
|
6 |
-
- fr
|
7 |
-
- hi
|
8 |
-
- th
|
9 |
-
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
de/mtop_intent-test.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:25356c3ff29619d3dd992158baf020fd7ee216d92a3c578a19693125fb951bfc
|
3 |
+
size 140227
|
de/mtop_intent-train.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:a571bc25679316060dbe05b7987a8f1d1bca24edbcb715c190e8f6dcd9a89ef2
|
3 |
+
size 499050
|
de/mtop_intent-validation.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:6399ff232cd120899cff5c7405a243a3a3faaeb0e4d7e936f2c86e8c13242f6c
|
3 |
+
size 74126
|
de/test.jsonl
DELETED
The diff for this file is too large to render.
See raw diff
|
|
de/train.jsonl
DELETED
The diff for this file is too large to render.
See raw diff
|
|
de/validation.jsonl
DELETED
The diff for this file is too large to render.
See raw diff
|
|
en/mtop_intent-test.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:fac8a295f9382941b6beaabb3eb25e1619ed8d6d36045dd24025f4879bfe70ca
|
3 |
+
size 168274
|
en/mtop_intent-train.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:80be94d56cc8d80f04481cb93cfbd080612c6349a8b33d8c086d0610f4874594
|
3 |
+
size 594290
|
en/mtop_intent-validation.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:aa71c908296f165e2b1075b5b7f359045b8f960c197d5fbe4248e8462f3b95a9
|
3 |
+
size 87261
|
en/test.jsonl
DELETED
The diff for this file is too large to render.
See raw diff
|
|
en/train.jsonl
DELETED
The diff for this file is too large to render.
See raw diff
|
|
en/validation.jsonl
DELETED
The diff for this file is too large to render.
See raw diff
|
|
es/mtop_intent-test.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:90a44859579ae9fd4e4e833ace0f9b237c82017795dc219778ef0caf89d2b7f1
|
3 |
+
size 107848
|
es/mtop_intent-train.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:680f1f5d13ad987622c5b25d27fdd2ede422dcbd5fa61746cf1348703532f0e9
|
3 |
+
size 362977
|
es/mtop_intent-validation.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:9f77e6b14d684b5db854739a9f7b2477f8c6262c6de869fdf667e9508c2cef97
|
3 |
+
size 59845
|
es/test.jsonl
DELETED
The diff for this file is too large to render.
See raw diff
|
|
es/train.jsonl
DELETED
The diff for this file is too large to render.
See raw diff
|
|
es/validation.jsonl
DELETED
The diff for this file is too large to render.
See raw diff
|
|
fr/mtop_intent-test.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:cf66d821f05b3ad8e6c9e3dc5914391d3c6a9aaff109728be0c5d37cfbc5d836
|
3 |
+
size 129355
|
fr/mtop_intent-train.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:ce863bcac9e1e62f6b345b748e1e2f200a427c52a015ecb7b1cfd392e6520f2e
|
3 |
+
size 438960
|
fr/mtop_intent-validation.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:0afe00024f250400807f9e9068fbd03d6379a308bdcd280a955dbc89d2c7bf74
|
3 |
+
size 65588
|
fr/test.jsonl
DELETED
The diff for this file is too large to render.
See raw diff
|
|
fr/train.jsonl
DELETED
The diff for this file is too large to render.
See raw diff
|
|
fr/validation.jsonl
DELETED
The diff for this file is too large to render.
See raw diff
|
|
hi/mtop_intent-test.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:73edf64d0ae89e8167ab8e5a81edc524c8f654ba1302099f31705c7a452702c7
|
3 |
+
size 141464
|
hi/mtop_intent-train.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:1fbc5252696096166b48eeddb2348a570247c204bc7e0a0a9c367f37d09a61dc
|
3 |
+
size 542962
|
hi/mtop_intent-validation.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:2057abb29eec6717ba3016dd6f8c2bff4e611514dac737b8c864abb640e1ed5b
|
3 |
+
size 108205
|
hi/test.jsonl
DELETED
The diff for this file is too large to render.
See raw diff
|
|
hi/train.jsonl
DELETED
The diff for this file is too large to render.
See raw diff
|
|
hi/validation.jsonl
DELETED
The diff for this file is too large to render.
See raw diff
|
|
mtop-intent.py
DELETED
@@ -1,65 +0,0 @@
|
|
1 |
-
import json
|
2 |
-
import datasets
|
3 |
-
|
4 |
-
_DESCRIPTION = "MTOP: Multilingual Task-Oriented Semantic Parsing"
|
5 |
-
_LANGUAGES = ["en", "de", "es", "fr", "hi", "th"]
|
6 |
-
|
7 |
-
URL = "" # https://huggingface.co/datasets/mteb/mtop/resolve/main/"
|
8 |
-
_URLs = {
|
9 |
-
split: {
|
10 |
-
"train": URL + f"{split}/train.jsonl",
|
11 |
-
"test": URL + f"{split}/test.jsonl",
|
12 |
-
"validation": URL + f"{split}/validation.jsonl",
|
13 |
-
}
|
14 |
-
for split in _LANGUAGES
|
15 |
-
}
|
16 |
-
|
17 |
-
|
18 |
-
class MTOP(datasets.GeneratorBasedBuilder):
|
19 |
-
"""MTOP Dataset."""
|
20 |
-
|
21 |
-
BUILDER_CONFIGS = [
|
22 |
-
datasets.BuilderConfig(name=name, description=f"This part of my dataset covers {name} part of MTOP Dataset.",)
|
23 |
-
for name in _LANGUAGES
|
24 |
-
]
|
25 |
-
|
26 |
-
DEFAULT_CONFIG_NAME = "en"
|
27 |
-
|
28 |
-
def _info(self):
|
29 |
-
return datasets.DatasetInfo(
|
30 |
-
description=_DESCRIPTION,
|
31 |
-
features=datasets.Features(
|
32 |
-
{
|
33 |
-
"id": datasets.Value("int64"),
|
34 |
-
"text": datasets.Value("string"),
|
35 |
-
"label": datasets.Value("int32"),
|
36 |
-
"label_text": datasets.Value("string"),
|
37 |
-
}
|
38 |
-
),
|
39 |
-
supervised_keys=None,
|
40 |
-
)
|
41 |
-
|
42 |
-
def _split_generators(self, dl_manager):
|
43 |
-
"""Returns SplitGenerators."""
|
44 |
-
my_urls = _URLs[self.config.name]
|
45 |
-
data_dir = dl_manager.download_and_extract(my_urls)
|
46 |
-
return [
|
47 |
-
datasets.SplitGenerator(
|
48 |
-
name=datasets.Split.TRAIN,
|
49 |
-
# These kwargs will be passed to _generate_examples
|
50 |
-
gen_kwargs={"text_path": data_dir["train"]},
|
51 |
-
),
|
52 |
-
datasets.SplitGenerator(name=datasets.Split.VALIDATION, gen_kwargs={"text_path": data_dir["validation"]},),
|
53 |
-
datasets.SplitGenerator(
|
54 |
-
name=datasets.Split.TEST,
|
55 |
-
# These kwargs will be passed to _generate_examples
|
56 |
-
gen_kwargs={"text_path": data_dir["test"]},
|
57 |
-
),
|
58 |
-
]
|
59 |
-
|
60 |
-
def _generate_examples(self, text_path):
|
61 |
-
"""Yields examples."""
|
62 |
-
with open(text_path, encoding="utf-8") as f:
|
63 |
-
texts = f.readlines()
|
64 |
-
for i, text in enumerate(texts):
|
65 |
-
yield i, json.loads(text)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
mtop_intent.py
DELETED
@@ -1,65 +0,0 @@
|
|
1 |
-
import json
|
2 |
-
import datasets
|
3 |
-
|
4 |
-
_DESCRIPTION = "MTOP: Multilingual Task-Oriented Semantic Parsing"
|
5 |
-
_LANGUAGES = ["en", "de", "es", "fr", "hi", "th"]
|
6 |
-
|
7 |
-
URL = "" # https://huggingface.co/datasets/mteb/mtop/resolve/main/"
|
8 |
-
_URLs = {
|
9 |
-
split: {
|
10 |
-
"train": URL + f"{split}/train.jsonl",
|
11 |
-
"test": URL + f"{split}/test.jsonl",
|
12 |
-
"validation": URL + f"{split}/validation.jsonl",
|
13 |
-
}
|
14 |
-
for split in _LANGUAGES
|
15 |
-
}
|
16 |
-
|
17 |
-
|
18 |
-
class MTOP_INTENT(datasets.GeneratorBasedBuilder):
|
19 |
-
"""MTOP Dataset."""
|
20 |
-
|
21 |
-
BUILDER_CONFIGS = [
|
22 |
-
datasets.BuilderConfig(name=name, description=f"This part of my dataset covers {name} part of MTOP Dataset.",)
|
23 |
-
for name in _LANGUAGES
|
24 |
-
]
|
25 |
-
|
26 |
-
DEFAULT_CONFIG_NAME = "en"
|
27 |
-
|
28 |
-
def _info(self):
|
29 |
-
return datasets.DatasetInfo(
|
30 |
-
description=_DESCRIPTION,
|
31 |
-
features=datasets.Features(
|
32 |
-
{
|
33 |
-
"id": datasets.Value("int64"),
|
34 |
-
"text": datasets.Value("string"),
|
35 |
-
"label": datasets.Value("int32"),
|
36 |
-
"label_text": datasets.Value("string"),
|
37 |
-
}
|
38 |
-
),
|
39 |
-
supervised_keys=None,
|
40 |
-
)
|
41 |
-
|
42 |
-
def _split_generators(self, dl_manager):
|
43 |
-
"""Returns SplitGenerators."""
|
44 |
-
my_urls = _URLs[self.config.name]
|
45 |
-
data_dir = dl_manager.download_and_extract(my_urls)
|
46 |
-
return [
|
47 |
-
datasets.SplitGenerator(
|
48 |
-
name=datasets.Split.TRAIN,
|
49 |
-
# These kwargs will be passed to _generate_examples
|
50 |
-
gen_kwargs={"text_path": data_dir["train"]},
|
51 |
-
),
|
52 |
-
datasets.SplitGenerator(name=datasets.Split.VALIDATION, gen_kwargs={"text_path": data_dir["validation"]},),
|
53 |
-
datasets.SplitGenerator(
|
54 |
-
name=datasets.Split.TEST,
|
55 |
-
# These kwargs will be passed to _generate_examples
|
56 |
-
gen_kwargs={"text_path": data_dir["test"]},
|
57 |
-
),
|
58 |
-
]
|
59 |
-
|
60 |
-
def _generate_examples(self, text_path):
|
61 |
-
"""Yields examples."""
|
62 |
-
with open(text_path, encoding="utf-8") as f:
|
63 |
-
texts = f.readlines()
|
64 |
-
for i, text in enumerate(texts):
|
65 |
-
yield i, json.loads(text)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
th/mtop_intent-test.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:4fec85f61c4628ac523f8301346c73a4d1ef9ed17637f3724d0680adfe6a47f2
|
3 |
+
size 143556
|
th/mtop_intent-train.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:c0e9dcc925411aba4c083d29a2e23cec18f78cc6137a3d312dbff91cd6b20c30
|
3 |
+
size 531035
|
th/mtop_intent-validation.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:64833e8a1a39d31b23e0d1b36b4f06a6de627c7bc2e7b076bcd9c47b1d67fe8e
|
3 |
+
size 90884
|
th/test.jsonl
DELETED
The diff for this file is too large to render.
See raw diff
|
|
th/train.jsonl
DELETED
The diff for this file is too large to render.
See raw diff
|
|
th/validation.jsonl
DELETED
The diff for this file is too large to render.
See raw diff
|
|