Datasets:
Commit
•
5995f76
1
Parent(s):
b656a40
Update parquet files
Browse files- .gitattributes +0 -37
- ItuFaroeseDanish/itu_faroese_danish-train.parquet +3 -0
- README.md +0 -144
- dataset_infos.json +0 -1
- itu_faroese_danish.py +0 -101
- itu_fo_da_monolithic.tsv +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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ItuFaroeseDanish/itu_faroese_danish-train.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:616a682935f672f1f4a360d262d34efce79cbd6f9fe212437871308719fd1855
|
3 |
+
size 669576
|
README.md
DELETED
@@ -1,144 +0,0 @@
|
|
1 |
-
---
|
2 |
-
annotations_creators:
|
3 |
-
- expert-generated
|
4 |
-
language_creators:
|
5 |
-
- found
|
6 |
-
language:
|
7 |
-
- da
|
8 |
-
- fo
|
9 |
-
license:
|
10 |
-
- cc-by-4.0
|
11 |
-
multilinguality:
|
12 |
-
- multilingual
|
13 |
-
pretty_name: ITU Faroese Danish parallel text
|
14 |
-
size_categories:
|
15 |
-
- 1K<n<10K
|
16 |
-
source_datasets:
|
17 |
-
- original
|
18 |
-
task_categories:
|
19 |
-
- translation
|
20 |
-
task_ids: []
|
21 |
-
---
|
22 |
-
|
23 |
-
|
24 |
-
## Table of Contents
|
25 |
-
- [Dataset Description](#dataset-description)
|
26 |
-
- [Dataset Summary](#dataset-summary)
|
27 |
-
- [Supported Tasks](#supported-tasks-and-leaderboards)
|
28 |
-
- [Languages](#languages)
|
29 |
-
- [Dataset Structure](#dataset-structure)
|
30 |
-
- [Data Instances](#data-instances)
|
31 |
-
- [Data Fields](#data-instances)
|
32 |
-
- [Data Splits](#data-instances)
|
33 |
-
- [Dataset Creation](#dataset-creation)
|
34 |
-
- [Curation Rationale](#curation-rationale)
|
35 |
-
- [Source Data](#source-data)
|
36 |
-
- [Annotations](#annotations)
|
37 |
-
- [Personal and Sensitive Information](#personal-and-sensitive-information)
|
38 |
-
- [Considerations for Using the Data](#considerations-for-using-the-data)
|
39 |
-
- [Social Impact of Dataset](#social-impact-of-dataset)
|
40 |
-
- [Discussion of Biases](#discussion-of-biases)
|
41 |
-
- [Other Known Limitations](#other-known-limitations)
|
42 |
-
- [Additional Information](#additional-information)
|
43 |
-
- [Dataset Curators](#dataset-curators)
|
44 |
-
- [Licensing Information](#licensing-information)
|
45 |
-
- [Citation Information](#citation-information)
|
46 |
-
|
47 |
-
## Dataset Description
|
48 |
-
|
49 |
-
- **Homepage:**
|
50 |
-
- **Repository:**
|
51 |
-
- **Paper:** [https://arxiv.org/abs/2206.08727](https://arxiv.org/abs/2206.08727)
|
52 |
-
- **Leaderboard:**
|
53 |
-
- **Point of Contact:** [Leon Derczynski](https://github.com/leondz)
|
54 |
-
|
55 |
-
### Dataset Summary
|
56 |
-
|
57 |
-
This is a native-speaker-generated parallel corpus of Faroese and Danish
|
58 |
-
|
59 |
-
### Supported Tasks and Leaderboards
|
60 |
-
|
61 |
-
*
|
62 |
-
|
63 |
-
### Languages
|
64 |
-
|
65 |
-
* Danish
|
66 |
-
* Faroese
|
67 |
-
|
68 |
-
## Dataset Structure
|
69 |
-
|
70 |
-
### Data Instances
|
71 |
-
3995 parallel sentences
|
72 |
-
|
73 |
-
### Data Fields
|
74 |
-
|
75 |
-
* `id`: the sentence pair ID, `string`
|
76 |
-
* `origin`: the original sentence identifier text, `string`
|
77 |
-
* `fo`: the Faroese text, `string`
|
78 |
-
* `da`: the Danish text, `string`
|
79 |
-
|
80 |
-
### Data Splits
|
81 |
-
|
82 |
-
Monolithic
|
83 |
-
|
84 |
-
## Dataset Creation
|
85 |
-
|
86 |
-
### Curation Rationale
|
87 |
-
|
88 |
-
To gather a broad range of topics about the Faroes and the rest of the world, to enable a general-purpose Faroese:Danish translation system
|
89 |
-
|
90 |
-
### Source Data
|
91 |
-
|
92 |
-
#### Initial Data Collection and Normalization
|
93 |
-
|
94 |
-
* EUROparl Danish
|
95 |
-
* Dimmaletting, Faroese newspaper
|
96 |
-
* Tatoeba Danish / Faroese
|
97 |
-
|
98 |
-
#### Who are the source language producers?
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
### Annotations
|
103 |
-
|
104 |
-
#### Annotation process
|
105 |
-
|
106 |
-
No annotations
|
107 |
-
|
108 |
-
#### Who are the annotators?
|
109 |
-
|
110 |
-
Two Faroese native speakers, one male one female, in their 20s, masters degrees, living in Denmark
|
111 |
-
|
112 |
-
### Personal and Sensitive Information
|
113 |
-
|
114 |
-
None due to the sources used
|
115 |
-
|
116 |
-
## Considerations for Using the Data
|
117 |
-
|
118 |
-
### Social Impact of Dataset
|
119 |
-
|
120 |
-
|
121 |
-
|
122 |
-
### Discussion of Biases
|
123 |
-
|
124 |
-
[Needs More Information]
|
125 |
-
|
126 |
-
### Other Known Limitations
|
127 |
-
|
128 |
-
[Needs More Information]
|
129 |
-
|
130 |
-
## Additional Information
|
131 |
-
|
132 |
-
### Dataset Curators
|
133 |
-
|
134 |
-
This collection of Faroese is curated by Leon Derczynski
|
135 |
-
|
136 |
-
### Licensing Information
|
137 |
-
|
138 |
-
Creative Commons Attribution 4.0
|
139 |
-
|
140 |
-
### Citation Information
|
141 |
-
|
142 |
-
```
|
143 |
-
|
144 |
-
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
dataset_infos.json
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
{"ItuFaroeseDanish": {"description": "\n", "citation": "\n", "homepage": "", "license": "", "features": {"id": {"dtype": "string", "id": null, "_type": "Value"}, "origin": {"dtype": "string", "id": null, "_type": "Value"}, "fo": {"dtype": "string", "id": null, "_type": "Value"}, "da": {"dtype": "string", "id": null, "_type": "Value"}}, "post_processed": null, "supervised_keys": null, "task_templates": null, "builder_name": "itu_faroese_danish", "config_name": "ItuFaroeseDanish", "version": {"version_str": "1.0.0", "description": null, "major": 1, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 990565, "num_examples": 3995, "dataset_name": "itu_faroese_danish"}}, "download_checksums": {"itu_fo_da_monolithic.tsv": {"num_bytes": 1183643, "checksum": "a449fc9adaaa71a360130ea51a47846697c510b6a379e44ba00beef981a02437"}}, "download_size": 1183643, "post_processing_size": null, "dataset_size": 990565, "size_in_bytes": 2174208}}
|
|
|
|
itu_faroese_danish.py
DELETED
@@ -1,101 +0,0 @@
|
|
1 |
-
# coding=utf-8
|
2 |
-
# Copyright 2020 HuggingFace Datasets Authors.
|
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 |
-
|
16 |
-
# Lint as: python3
|
17 |
-
"""Faroese-Danish parallel corpus from ITU Copenhagen"""
|
18 |
-
|
19 |
-
import os
|
20 |
-
|
21 |
-
import datasets
|
22 |
-
|
23 |
-
|
24 |
-
logger = datasets.logging.get_logger(__name__)
|
25 |
-
|
26 |
-
|
27 |
-
_CITATION = """\
|
28 |
-
|
29 |
-
"""
|
30 |
-
|
31 |
-
_DESCRIPTION = """\
|
32 |
-
|
33 |
-
"""
|
34 |
-
|
35 |
-
_URL = "itu_fo_da_monolithic.tsv"
|
36 |
-
|
37 |
-
|
38 |
-
class ItuFaroeseDanishConfig(datasets.BuilderConfig):
|
39 |
-
"""BuilderConfig for ItuFaroeseDanish"""
|
40 |
-
|
41 |
-
def __init__(self, **kwargs):
|
42 |
-
"""BuilderConfig ItuFaroeseDanish.
|
43 |
-
|
44 |
-
Args:
|
45 |
-
**kwargs: keyword arguments forwarded to super.
|
46 |
-
"""
|
47 |
-
super(ItuFaroeseDanishConfig, self).__init__(**kwargs)
|
48 |
-
|
49 |
-
|
50 |
-
class ItuFaroeseDanish(datasets.GeneratorBasedBuilder):
|
51 |
-
"""ItuFaroeseDanish dataset."""
|
52 |
-
|
53 |
-
BUILDER_CONFIGS = [
|
54 |
-
ItuFaroeseDanishConfig(name="ItuFaroeseDanish", version=datasets.Version("1.0.0"), description="Faroese-Danish parallel text from ITU Copenhagen"),
|
55 |
-
]
|
56 |
-
|
57 |
-
def _info(self):
|
58 |
-
return datasets.DatasetInfo(
|
59 |
-
description=_DESCRIPTION,
|
60 |
-
features=datasets.Features(
|
61 |
-
{
|
62 |
-
"id": datasets.Value("string"),
|
63 |
-
"origin": datasets.Value("string"),
|
64 |
-
"fo": datasets.Value("string"),
|
65 |
-
"da": datasets.Value("string"),
|
66 |
-
}
|
67 |
-
),
|
68 |
-
supervised_keys=None,
|
69 |
-
homepage="",
|
70 |
-
citation=_CITATION,
|
71 |
-
)
|
72 |
-
|
73 |
-
def _split_generators(self, dl_manager):
|
74 |
-
"""Returns SplitGenerators."""
|
75 |
-
downloaded_file = dl_manager.download_and_extract(_URL)
|
76 |
-
|
77 |
-
return [
|
78 |
-
datasets.SplitGenerator(name=datasets.Split.TRAIN, gen_kwargs={"filepath": downloaded_file}),
|
79 |
-
]
|
80 |
-
|
81 |
-
def _generate_examples(self, filepath):
|
82 |
-
logger.info("⏳ Generating examples from = %s", filepath)
|
83 |
-
texts = {"fao":{}, "dan":{}}
|
84 |
-
with open(filepath, encoding="utf-8") as f:
|
85 |
-
for line in f:
|
86 |
-
line = line.strip()
|
87 |
-
if line:
|
88 |
-
code, text = line.split("\t")
|
89 |
-
origin, language = code.split("_")
|
90 |
-
texts[language][origin] = text
|
91 |
-
if texts["fao"].keys() != texts["dan"].keys():
|
92 |
-
raise ValueError("Faroese and Danish keys don't match")
|
93 |
-
guid = 0
|
94 |
-
for origin in texts["fao"]:
|
95 |
-
yield guid, {
|
96 |
-
"id": str(guid),
|
97 |
-
"origin": origin,
|
98 |
-
"fo": texts["fao"][origin],
|
99 |
-
"da": texts["dan"][origin],
|
100 |
-
}
|
101 |
-
guid += 1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
itu_fo_da_monolithic.tsv
DELETED
The diff for this file is too large to render.
See raw diff
|
|