Datasets:
Commit
·
865fcf2
1
Parent(s):
f330ca4
Update parquet files
Browse files- .gitattributes +0 -27
- README.md +0 -160
- dataset_infos.json +0 -1
- opus_memat.py +0 -88
- xh-en/opus_memat-train.parquet +3 -0
.gitattributes
DELETED
@@ -1,27 +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 |
-
*.bin.* filter=lfs diff=lfs merge=lfs -text
|
5 |
-
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
6 |
-
*.ftz filter=lfs diff=lfs merge=lfs -text
|
7 |
-
*.gz filter=lfs diff=lfs merge=lfs -text
|
8 |
-
*.h5 filter=lfs diff=lfs merge=lfs -text
|
9 |
-
*.joblib filter=lfs diff=lfs merge=lfs -text
|
10 |
-
*.lfs.* 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 |
-
*.onnx filter=lfs diff=lfs merge=lfs -text
|
14 |
-
*.ot filter=lfs diff=lfs merge=lfs -text
|
15 |
-
*.parquet filter=lfs diff=lfs merge=lfs -text
|
16 |
-
*.pb filter=lfs diff=lfs merge=lfs -text
|
17 |
-
*.pt filter=lfs diff=lfs merge=lfs -text
|
18 |
-
*.pth filter=lfs diff=lfs merge=lfs -text
|
19 |
-
*.rar filter=lfs diff=lfs merge=lfs -text
|
20 |
-
saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
21 |
-
*.tar.* filter=lfs diff=lfs merge=lfs -text
|
22 |
-
*.tflite filter=lfs diff=lfs merge=lfs -text
|
23 |
-
*.tgz 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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
README.md
DELETED
@@ -1,160 +0,0 @@
|
|
1 |
-
---
|
2 |
-
annotations_creators:
|
3 |
-
- found
|
4 |
-
language_creators:
|
5 |
-
- found
|
6 |
-
language:
|
7 |
-
- en
|
8 |
-
- xh
|
9 |
-
license:
|
10 |
-
- unknown
|
11 |
-
multilinguality:
|
12 |
-
- translation
|
13 |
-
size_categories:
|
14 |
-
- 100K<n<1M
|
15 |
-
source_datasets:
|
16 |
-
- original
|
17 |
-
task_categories:
|
18 |
-
- translation
|
19 |
-
task_ids: []
|
20 |
-
paperswithcode_id: null
|
21 |
-
pretty_name: OpusMemat
|
22 |
-
dataset_info:
|
23 |
-
features:
|
24 |
-
- name: translation
|
25 |
-
dtype:
|
26 |
-
translation:
|
27 |
-
languages:
|
28 |
-
- xh
|
29 |
-
- en
|
30 |
-
config_name: xh-en
|
31 |
-
splits:
|
32 |
-
- name: train
|
33 |
-
num_bytes: 25400570
|
34 |
-
num_examples: 154764
|
35 |
-
download_size: 8382865
|
36 |
-
dataset_size: 25400570
|
37 |
-
---
|
38 |
-
|
39 |
-
# Dataset Card for [opus_memat]
|
40 |
-
|
41 |
-
## Table of Contents
|
42 |
-
- [Dataset Description](#dataset-description)
|
43 |
-
- [Dataset Summary](#dataset-summary)
|
44 |
-
- [Supported Tasks and Leaderboards](#supported-tasks-and-leaderboards)
|
45 |
-
- [Languages](#languages)
|
46 |
-
- [Dataset Structure](#dataset-structure)
|
47 |
-
- [Data Instances](#data-instances)
|
48 |
-
- [Data Fields](#data-fields)
|
49 |
-
- [Data Splits](#data-splits)
|
50 |
-
- [Dataset Creation](#dataset-creation)
|
51 |
-
- [Curation Rationale](#curation-rationale)
|
52 |
-
- [Source Data](#source-data)
|
53 |
-
- [Annotations](#annotations)
|
54 |
-
- [Personal and Sensitive Information](#personal-and-sensitive-information)
|
55 |
-
- [Considerations for Using the Data](#considerations-for-using-the-data)
|
56 |
-
- [Social Impact of Dataset](#social-impact-of-dataset)
|
57 |
-
- [Discussion of Biases](#discussion-of-biases)
|
58 |
-
- [Other Known Limitations](#other-known-limitations)
|
59 |
-
- [Additional Information](#additional-information)
|
60 |
-
- [Dataset Curators](#dataset-curators)
|
61 |
-
- [Licensing Information](#licensing-information)
|
62 |
-
- [Citation Information](#citation-information)
|
63 |
-
- [Contributions](#contributions)
|
64 |
-
|
65 |
-
## Dataset Description
|
66 |
-
|
67 |
-
- **Homepage:**[memat](http://opus.nlpl.eu/memat.php)
|
68 |
-
- **Repository:**
|
69 |
-
- **Paper:**
|
70 |
-
- **Leaderboard:**
|
71 |
-
- **Point of Contact:**
|
72 |
-
|
73 |
-
### Dataset Summary
|
74 |
-
|
75 |
-
Xhosa-English parallel corpora, funded by EPSRC, the Medical Machine Translation project worked on machine translation between ixiXhosa and English, with a focus on the medical domain.
|
76 |
-
|
77 |
-
### Supported Tasks and Leaderboards
|
78 |
-
|
79 |
-
The underlying task is machine translation from Xhosa to English
|
80 |
-
|
81 |
-
### Languages
|
82 |
-
|
83 |
-
[More Information Needed]
|
84 |
-
|
85 |
-
## Dataset Structure
|
86 |
-
|
87 |
-
### Data Instances
|
88 |
-
|
89 |
-
[More Information Needed]
|
90 |
-
|
91 |
-
### Data Fields
|
92 |
-
|
93 |
-
[More Information Needed]
|
94 |
-
|
95 |
-
### Data Splits
|
96 |
-
|
97 |
-
[More Information Needed]
|
98 |
-
|
99 |
-
## Dataset Creation
|
100 |
-
|
101 |
-
### Curation Rationale
|
102 |
-
|
103 |
-
[More Information Needed]
|
104 |
-
|
105 |
-
### Source Data
|
106 |
-
|
107 |
-
#### Initial Data Collection and Normalization
|
108 |
-
|
109 |
-
[More Information Needed]
|
110 |
-
|
111 |
-
#### Who are the source language producers?
|
112 |
-
|
113 |
-
[More Information Needed]
|
114 |
-
|
115 |
-
### Annotations
|
116 |
-
|
117 |
-
#### Annotation process
|
118 |
-
|
119 |
-
[More Information Needed]
|
120 |
-
|
121 |
-
#### Who are the annotators?
|
122 |
-
|
123 |
-
[More Information Needed]
|
124 |
-
|
125 |
-
### Personal and Sensitive Information
|
126 |
-
|
127 |
-
[More Information Needed]
|
128 |
-
|
129 |
-
## Considerations for Using the Data
|
130 |
-
|
131 |
-
### Social Impact of Dataset
|
132 |
-
|
133 |
-
[More Information Needed]
|
134 |
-
|
135 |
-
### Discussion of Biases
|
136 |
-
|
137 |
-
[More Information Needed]
|
138 |
-
|
139 |
-
### Other Known Limitations
|
140 |
-
|
141 |
-
[More Information Needed]
|
142 |
-
|
143 |
-
## Additional Information
|
144 |
-
|
145 |
-
### Dataset Curators
|
146 |
-
|
147 |
-
[More Information Needed]
|
148 |
-
|
149 |
-
### Licensing Information
|
150 |
-
|
151 |
-
[More Information Needed]
|
152 |
-
|
153 |
-
### Citation Information
|
154 |
-
|
155 |
-
J. Tiedemann, 2012, Parallel Data, Tools and Interfaces in OPUS. In Proceedings of the 8th International Conference on Language Resources and Evaluation (LREC 2012)
|
156 |
-
|
157 |
-
|
158 |
-
### Contributions
|
159 |
-
|
160 |
-
Thanks to [@spatil6](https://github.com/spatil6) for adding this dataset.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
dataset_infos.json
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
{"xh-en": {"description": "Xhosa-English parallel corpora, funded by EPSRC, the Medical Machine Translation project worked on machine translation between ixiXhosa and English, with a focus on the medical domain.", "citation": "J. Tiedemann, 2012, Parallel Data, Tools and Interfaces in OPUS. In Proceedings of the 8th International Conference on Language Resources and Evaluation (LREC 2012)\n\n", "homepage": "http://opus.nlpl.eu/memat.php", "license": "", "features": {"translation": {"languages": ["xh", "en"], "id": null, "_type": "Translation"}}, "post_processed": null, "supervised_keys": null, "builder_name": "opus_memat", "config_name": "xh-en", "version": {"version_str": "1.0.0", "description": null, "major": 1, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 25400570, "num_examples": 154764, "dataset_name": "opus_memat"}}, "download_checksums": {"https://object.pouta.csc.fi/OPUS-memat/v1/moses/en-xh.txt.zip": {"num_bytes": 8382865, "checksum": "2114fea4207f3a463b3c406d9f9661892bb62883b24d3befd7cf4b93dc001613"}}, "download_size": 8382865, "post_processing_size": null, "dataset_size": 25400570, "size_in_bytes": 33783435}}
|
|
|
|
opus_memat.py
DELETED
@@ -1,88 +0,0 @@
|
|
1 |
-
# coding=utf-8
|
2 |
-
# Copyright 2020 The HuggingFace Datasets Authors and the current dataset script contributor.
|
3 |
-
#
|
4 |
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
5 |
-
# you may not use this file except in compliance with the License.
|
6 |
-
# You may obtain a copy of the License at
|
7 |
-
#
|
8 |
-
# http://www.apache.org/licenses/LICENSE-2.0
|
9 |
-
#
|
10 |
-
# Unless required by applicable law or agreed to in writing, software
|
11 |
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
12 |
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13 |
-
# See the License for the specific language governing permissions and
|
14 |
-
# limitations under the License.
|
15 |
-
"""Xhosa-English parallel corpora, """
|
16 |
-
|
17 |
-
|
18 |
-
import os
|
19 |
-
|
20 |
-
import datasets
|
21 |
-
|
22 |
-
|
23 |
-
_CITATION = """\
|
24 |
-
J. Tiedemann, 2012, Parallel Data, Tools and Interfaces in OPUS. In Proceedings of the 8th\
|
25 |
-
International Conference on Language Resources and Evaluation (LREC 2012)
|
26 |
-
|
27 |
-
"""
|
28 |
-
|
29 |
-
_DESCRIPTION = """\
|
30 |
-
Xhosa-English parallel corpora, funded by EPSRC, the Medical Machine Translation project worked on machine translation\
|
31 |
-
between ixiXhosa and English, with a focus on the medical domain."""
|
32 |
-
|
33 |
-
|
34 |
-
_URLs = {"train": "https://object.pouta.csc.fi/OPUS-memat/v1/moses/en-xh.txt.zip"}
|
35 |
-
|
36 |
-
|
37 |
-
class OpusMemat(datasets.GeneratorBasedBuilder):
|
38 |
-
|
39 |
-
VERSION = datasets.Version("1.0.0")
|
40 |
-
|
41 |
-
BUILDER_CONFIGS = [
|
42 |
-
datasets.BuilderConfig(name="xh-en", version=VERSION, description="Xhosa-English parallel corpora")
|
43 |
-
]
|
44 |
-
|
45 |
-
def _info(self):
|
46 |
-
return datasets.DatasetInfo(
|
47 |
-
description=_DESCRIPTION,
|
48 |
-
features=datasets.Features(
|
49 |
-
{"translation": datasets.features.Translation(languages=tuple(self.config.name.split("-")))}
|
50 |
-
),
|
51 |
-
supervised_keys=None,
|
52 |
-
homepage="http://opus.nlpl.eu/memat.php",
|
53 |
-
citation=_CITATION,
|
54 |
-
)
|
55 |
-
|
56 |
-
def _split_generators(self, dl_manager):
|
57 |
-
"""Returns SplitGenerators."""
|
58 |
-
data_dir = dl_manager.download_and_extract(_URLs)
|
59 |
-
return [
|
60 |
-
datasets.SplitGenerator(
|
61 |
-
name=datasets.Split.TRAIN,
|
62 |
-
# These kwargs will be passed to _generate_examples
|
63 |
-
gen_kwargs={
|
64 |
-
"source_file": os.path.join(data_dir["train"], "memat.en-xh.xh"),
|
65 |
-
"target_file": os.path.join(data_dir["train"], "memat.en-xh.en"),
|
66 |
-
"split": "train",
|
67 |
-
},
|
68 |
-
),
|
69 |
-
]
|
70 |
-
|
71 |
-
def _generate_examples(self, source_file, target_file, split):
|
72 |
-
"""This function returns the examples in the raw (text) form."""
|
73 |
-
with open(source_file, encoding="utf-8") as f:
|
74 |
-
source_sentences = f.read().split("\n")
|
75 |
-
with open(target_file, encoding="utf-8") as f:
|
76 |
-
target_sentences = f.read().split("\n")
|
77 |
-
|
78 |
-
assert len(target_sentences) == len(source_sentences), "Sizes do not match: %d vs %d for %s vs %s." % (
|
79 |
-
len(source_sentences),
|
80 |
-
len(target_sentences),
|
81 |
-
source_file,
|
82 |
-
target_file,
|
83 |
-
)
|
84 |
-
|
85 |
-
source, target = tuple(self.config.name.split("-"))
|
86 |
-
for idx, (l1, l2) in enumerate(zip(source_sentences, target_sentences)):
|
87 |
-
result = {"translation": {source: l1, target: l2}}
|
88 |
-
yield idx, result
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
xh-en/opus_memat-train.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:8bf377f4cf20df0314d030ec35d80aba00256e0f8e13408b784d261561d6f7e6
|
3 |
+
size 14115560
|