parquet-converter
commited on
Commit
·
c0d75fb
1
Parent(s):
66c76ea
Update parquet files
Browse files- .gitattributes +0 -37
- MorisienMT.py +0 -90
- README.md +0 -28
- data/en-cr.zip → cr/morisien_mt-test.parquet +2 -2
- data/cr.zip → cr/morisien_mt-train.parquet +2 -2
- data/fr-cr.zip → cr/morisien_mt-validation.parquet +2 -2
- en-cr/morisien_mt-test.parquet +3 -0
- en-cr/morisien_mt-train.parquet +3 -0
- en-cr/morisien_mt-validation.parquet +3 -0
- fr-cr/morisien_mt-test.parquet +3 -0
- fr-cr/morisien_mt-train.parquet +3 -0
- fr-cr/morisien_mt-validation.parquet +3 -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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
MorisienMT.py
DELETED
@@ -1,90 +0,0 @@
|
|
1 |
-
import json
|
2 |
-
import os
|
3 |
-
|
4 |
-
import datasets
|
5 |
-
|
6 |
-
_CITATION = """\
|
7 |
-
Not Yet
|
8 |
-
"""
|
9 |
-
|
10 |
-
_DESCRIPTION = """\
|
11 |
-
This is the MorisienMT dataset for Muritian Creole Machine translation, English-Creole and French-Creole machine translation to be specific. See readme/datacard for details.
|
12 |
-
"""
|
13 |
-
_HOMEPAGE = "https://huggingface.co/datasets/prajdabre/MorisienMT"
|
14 |
-
|
15 |
-
_LICENSE = "Creative Commons Attribution-NonCommercial 4.0 International Public License"
|
16 |
-
|
17 |
-
_URL = "https://huggingface.co/datasets/prajdabre/MorisienMT/resolve/main/data/{}.zip"
|
18 |
-
|
19 |
-
|
20 |
-
_LANGUAGE_PAIRS = [
|
21 |
-
"en-cr",
|
22 |
-
"fr-cr",
|
23 |
-
"cr"
|
24 |
-
]
|
25 |
-
|
26 |
-
|
27 |
-
class MorisienMT(datasets.GeneratorBasedBuilder):
|
28 |
-
VERSION = datasets.Version("1.0.0")
|
29 |
-
|
30 |
-
BUILDER_CONFIGS = [
|
31 |
-
datasets.BuilderConfig(
|
32 |
-
name="{}".format(lang),
|
33 |
-
version=datasets.Version("1.0.0")
|
34 |
-
)
|
35 |
-
for lang in _LANGUAGE_PAIRS
|
36 |
-
]
|
37 |
-
|
38 |
-
def _info(self):
|
39 |
-
return datasets.DatasetInfo(
|
40 |
-
description=_DESCRIPTION,
|
41 |
-
features=datasets.Features(
|
42 |
-
{
|
43 |
-
"input": datasets.Value("string"),
|
44 |
-
"target": datasets.Value("string"),
|
45 |
-
}
|
46 |
-
),
|
47 |
-
supervised_keys=None,
|
48 |
-
homepage=_HOMEPAGE,
|
49 |
-
citation=_CITATION,
|
50 |
-
license=_LICENSE,
|
51 |
-
version=self.VERSION,
|
52 |
-
)
|
53 |
-
|
54 |
-
def _split_generators(self, dl_manager):
|
55 |
-
"""Returns SplitGenerators."""
|
56 |
-
lang = str(self.config.name)
|
57 |
-
url = _URL.format(lang)
|
58 |
-
|
59 |
-
data_dir = dl_manager.download_and_extract(url)
|
60 |
-
return [
|
61 |
-
datasets.SplitGenerator(
|
62 |
-
name=datasets.Split.TRAIN,
|
63 |
-
gen_kwargs={
|
64 |
-
"filepath": os.path.join(data_dir, lang + "_train.jsonl"),
|
65 |
-
},
|
66 |
-
),
|
67 |
-
datasets.SplitGenerator(
|
68 |
-
name=datasets.Split.TEST,
|
69 |
-
gen_kwargs={
|
70 |
-
"filepath": os.path.join(data_dir, lang + "_test.jsonl"),
|
71 |
-
},
|
72 |
-
),
|
73 |
-
datasets.SplitGenerator(
|
74 |
-
name=datasets.Split.VALIDATION,
|
75 |
-
gen_kwargs={
|
76 |
-
"filepath": os.path.join(data_dir, lang + "_dev.jsonl"),
|
77 |
-
},
|
78 |
-
),
|
79 |
-
]
|
80 |
-
|
81 |
-
def _generate_examples(self, filepath):
|
82 |
-
"""Yields examples as (key, example) tuples."""
|
83 |
-
with open(filepath, encoding="utf-8") as f:
|
84 |
-
for idx_, row in enumerate(f):
|
85 |
-
data = json.loads(row)
|
86 |
-
yield idx_, {
|
87 |
-
"input": data["input"],
|
88 |
-
"target": data["target"],
|
89 |
-
|
90 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
README.md
DELETED
@@ -1,28 +0,0 @@
|
|
1 |
-
---
|
2 |
-
license: cc
|
3 |
-
---
|
4 |
-
|
5 |
-
MorisienMT is a dataset for Mauritian Creole Machine Translation.
|
6 |
-
This dataset consists of training, development and test set splits for English--Creole as well as French--Creole translation.
|
7 |
-
The data comes from a variety of sources and hence can be considered as belonging to the general domain.
|
8 |
-
|
9 |
-
The development and test sets consist of 500 and 1000 sentences respectively. Both evaluation sets are trilingual.
|
10 |
-
|
11 |
-
The training set for English--Creole contains 21,810 lines.
|
12 |
-
The training set for French--Creole contains 15,239 lines.
|
13 |
-
Additionally, one can extract a trilingual English-French-Creole training set of 13,861 lines using Creole as a pivot.
|
14 |
-
|
15 |
-
Finally, we also provide a Creole monolingual corpus of 45,364 lines.
|
16 |
-
|
17 |
-
Note that a significant portion of the dataset is a dictionary of word pairs/triplets, nevertheless it is a start.
|
18 |
-
|
19 |
-
Usage: (TODO: beautify)
|
20 |
-
1. Using huggingface datasets: load_dataset("prajdabre/MorisienMT", "en-cr", split="train")
|
21 |
-
2. Convert to moses format: load the dataset as in step 1, each item is a json object so iterate over the loaded dataset object and use the key and value, "input" and "target" respectively, to get the translation pairs.
|
22 |
-
|
23 |
-
Feel free to use the dataset for your research but don't forget to attribute our upcoming paper which will be uploaded to arxiv shortly.
|
24 |
-
|
25 |
-
Note: MorisienMT was originally partly developed by Dr Aneerav Sukhoo from the University of Mauritius in 2014 when he was a visiting researcher in IIT Bombay.
|
26 |
-
Dr Sukhoo and I worked on the MT experiments together, but never publicly released the dataset back then.
|
27 |
-
Furthermore, the dataset splits and experiments were not done in a highly principled manner, which is required in the present day.
|
28 |
-
Therefore, we improve the quality of splits and officially release the data for people to use.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
data/en-cr.zip → cr/morisien_mt-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:7f2c2d7caa5279043fe7a78911eda6395b8bb70352ce7d3b4c1df4ca66c55854
|
3 |
+
size 1088
|
data/cr.zip → cr/morisien_mt-train.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:472f18eb2407fa6655de36fb7db21dae47b2fe547d8b41093cdd1e8f2ad5a08e
|
3 |
+
size 2892092
|
data/fr-cr.zip → cr/morisien_mt-validation.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:7f2c2d7caa5279043fe7a78911eda6395b8bb70352ce7d3b4c1df4ca66c55854
|
3 |
+
size 1088
|
en-cr/morisien_mt-test.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:48706ad5938c2016885bd14301505586a3f138bd20a6f36edf3ebe12c788708d
|
3 |
+
size 114299
|
en-cr/morisien_mt-train.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:954b2af1ba4d45264a9c38495fff1f1493c80024130e131ffad969953d124239
|
3 |
+
size 1066873
|
en-cr/morisien_mt-validation.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:82c295c8fdfaabc9431aabdfd8ce56047841f50b28c613566779d85bb7baa326
|
3 |
+
size 59911
|
fr-cr/morisien_mt-test.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:acab701d2f5dd6b5247da2da2fa1731a4e7c0ea43260421ef706e16511d5c661
|
3 |
+
size 122928
|
fr-cr/morisien_mt-train.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:c7d323267a548190d68551759b882357c7b348220129451329a8818cbd898454
|
3 |
+
size 391115
|
fr-cr/morisien_mt-validation.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:9bf3db81dc51ec679f7cd116be4a941cea658528b90ffb42a525297b5524890f
|
3 |
+
size 64741
|