albertvillanova HF staff commited on
Commit
f9dde12
1 Parent(s): 5ba15a6

Convert dataset to Parquet (#3)

Browse files

- Convert dataset to Parquet (658e029437001b64811d343e8d7b3b49d48ec84a)
- Delete loading script (5d9220638cefa67176913a5356d0cd6328a92c47)
- Delete legacy dataset_infos.json (13e771871b285d3509b5639317c46a209e15caf4)

README.md CHANGED
@@ -18,7 +18,6 @@ source_datasets:
18
  task_categories:
19
  - translation
20
  task_ids: []
21
- paperswithcode_id: null
22
  pretty_name: BBAW, Thesaurus Linguae Aegyptiae, Ancient Egyptian (2018)
23
  dataset_info:
24
  features:
@@ -30,10 +29,15 @@ dataset_info:
30
  dtype: string
31
  splits:
32
  - name: train
33
- num_bytes: 18546162
34
  num_examples: 100736
35
- download_size: 35348686
36
- dataset_size: 18546162
 
 
 
 
 
37
  ---
38
 
39
  # Dataset Card for "bbaw_egyptian"
 
18
  task_categories:
19
  - translation
20
  task_ids: []
 
21
  pretty_name: BBAW, Thesaurus Linguae Aegyptiae, Ancient Egyptian (2018)
22
  dataset_info:
23
  features:
 
29
  dtype: string
30
  splits:
31
  - name: train
32
+ num_bytes: 18533905
33
  num_examples: 100736
34
+ download_size: 9746860
35
+ dataset_size: 18533905
36
+ configs:
37
+ - config_name: default
38
+ data_files:
39
+ - split: train
40
+ path: data/train-*
41
  ---
42
 
43
  # Dataset Card for "bbaw_egyptian"
bbaw_egyptian.py DELETED
@@ -1,89 +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
- """ Middle Egyptian dataset as used in the paper """
16
- import json
17
-
18
- import datasets
19
-
20
-
21
- _CITATION = """\
22
- @misc{OPUS4-2919,
23
- title = {Teilauszug der Datenbank des Vorhabens "Strukturen und Transformationen des Wortschatzes der {\"a}gyptischen Sprache" vom Januar 2018},
24
- institution = {Akademienvorhaben Strukturen und Transformationen des Wortschatzes der {\"a}gyptischen Sprache. Text- und Wissenskultur im alten {\"A}gypten},
25
- type = {other},
26
- year = {2018},
27
- }
28
- """
29
-
30
- _DESCRIPTION = """\
31
- This dataset comprises parallel sentences of hieroglyphic encodings, transcription and translation
32
- as used in the paper Multi-Task Modeling of Phonographic Languages: Translating Middle Egyptian
33
- Hieroglyph. The data triples are extracted from the digital corpus of Egyptian texts compiled by
34
- the project "Strukturen und Transformationen des Wortschatzes der ägyptischen Sprache".
35
- """
36
-
37
- _HOMEPAGE = "https://edoc.bbaw.de/frontdoor/index/index/docId/2919"
38
-
39
- _LICENSE = "Creative Commons-Lizenz - CC BY-SA - 4.0 International"
40
-
41
-
42
- class BbawEgyptian(datasets.GeneratorBasedBuilder):
43
- """
44
- The project `Strukturen und Transformationen des Wortschatzes der ägyptischen Sprache`
45
- is compiling an extensively annotated digital corpus of Egyptian texts.
46
- This publication comprises an excerpt of the internal database's contents.
47
- """
48
-
49
- _URL = "https://phiwi.github.io/"
50
- _URLS = {"all": _URL + "all.json"}
51
-
52
- def _info(self):
53
- features = datasets.Features(
54
- {
55
- "transcription": datasets.Value("string"),
56
- "translation": datasets.Value("string"),
57
- "hieroglyphs": datasets.Value("string"),
58
- }
59
- )
60
- return datasets.DatasetInfo(
61
- description=_DESCRIPTION,
62
- features=features,
63
- supervised_keys=None,
64
- homepage=_HOMEPAGE,
65
- license=_LICENSE,
66
- citation=_CITATION,
67
- )
68
-
69
- def _split_generators(self, dl_manager):
70
- """Returns SplitGenerators."""
71
- my_urls = self._URLS
72
- data_dir = dl_manager.download(my_urls)
73
- return [
74
- datasets.SplitGenerator(
75
- name=datasets.Split.TRAIN,
76
- gen_kwargs={"filepath": data_dir["all"]},
77
- )
78
- ]
79
-
80
- def _generate_examples(self, filepath):
81
- """Yields examples as (key, example) tuples."""
82
- with open(filepath, "r", encoding="utf-8") as f:
83
- data = json.load(f)
84
- for id_, row in enumerate(data):
85
- yield id_, {
86
- "translation": row["translation"],
87
- "transcription": row["transcription"],
88
- "hieroglyphs": row["hieroglyphs"],
89
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
data/train-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2f4c747d3d071afec9833246d7c4967e0cd0b629ba024c90455e31683936500d
3
+ size 9746860
dataset_infos.json DELETED
@@ -1 +0,0 @@
1
- {"default": {"description": "The project `Strukturen und Transformationen des Wortschatzes der \u00e4gyptischen Sprache`\nis compiling an extensively annotated digital corpus of Egyptian texts.\nThis publication comprises an excerpt of the internal database's contents.\n", "citation": "@misc{OPUS4-2919,\ntitle = {Teilauszug der Datenbank des Vorhabens \"Strukturen und Transformationen des Wortschatzes der {\"a}gyptischen Sprache\" vom Januar 2018},\ninstitution = {Akademienvorhaben Strukturen und Transformationen des Wortschatzes der {\"a}gyptischen Sprache. Text- und Wissenskultur im alten {\"A}gypten},\ntype = {other},\nyear = {2018},\n}\n", "homepage": "https://aaew.bbaw.de/tla/index.html", "license": "Creative Commons-Lizenz - CC BY-SA - 4.0 International", "features": {"transcription": {"dtype": "string", "id": null, "_type": "Value"}, "translation": {"dtype": "string", "id": null, "_type": "Value"}, "hieroglyphs": {"dtype": "string", "id": null, "_type": "Value"}}, "post_processed": null, "supervised_keys": null, "builder_name": "bbaw_egyptian", "config_name": "default", "version": {"version_str": "0.0.0", "description": null, "major": 0, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 18546162, "num_examples": 100736, "dataset_name": "bbaw_egyptian"}}, "download_checksums": {"https://phiwi.github.io/all.json": {"num_bytes": 35348686, "checksum": "cd2b2396e4c08d96ba035d2efd33c5c1a755f0e45a7e2857a6c9afc0065ca6d9"}}, "download_size": 35348686, "post_processing_size": null, "dataset_size": 18546162, "size_in_bytes": 53894848}}