albertvillanova HF staff commited on
Commit
cb7cd27
1 Parent(s): 4e0d9bd

Convert dataset to Parquet (#3)

Browse files

- Convert dataset to Parquet (2f74a295af88599fda9151cefa35469da83d8958)
- Delete loading script (2fee6b1f771b520e7abdc898eddafa4daff146ac)
- Delete legacy dataset_infos.json (9dcad1e446161e4e4a4d324cdf9d40b321a2a9a5)

README.md CHANGED
@@ -2,16 +2,15 @@
2
  annotations_creators:
3
  - crowdsourced
4
  - expert-generated
 
 
5
  language:
6
  - ase
7
  - en
8
- language_creators:
9
- - found
10
  license:
11
  - cc-by-nc-4.0
12
  multilinguality:
13
  - translation
14
- pretty_name: English-ASL Gloss Parallel Corpus 2012
15
  size_categories:
16
  - 10K<n<100K
17
  source_datasets:
@@ -20,6 +19,7 @@ task_categories:
20
  - translation
21
  task_ids: []
22
  paperswithcode_id: aslg-pc12
 
23
  dataset_info:
24
  features:
25
  - name: gloss
@@ -28,10 +28,15 @@ dataset_info:
28
  dtype: string
29
  splits:
30
  - name: train
31
- num_bytes: 13497111
32
  num_examples: 87710
33
- download_size: 12773431
34
- dataset_size: 13497111
 
 
 
 
 
35
  ---
36
 
37
  # Dataset Card for "aslg_pc12"
 
2
  annotations_creators:
3
  - crowdsourced
4
  - expert-generated
5
+ language_creators:
6
+ - found
7
  language:
8
  - ase
9
  - en
 
 
10
  license:
11
  - cc-by-nc-4.0
12
  multilinguality:
13
  - translation
 
14
  size_categories:
15
  - 10K<n<100K
16
  source_datasets:
 
19
  - translation
20
  task_ids: []
21
  paperswithcode_id: aslg-pc12
22
+ pretty_name: English-ASL Gloss Parallel Corpus 2012
23
  dataset_info:
24
  features:
25
  - name: gloss
 
28
  dtype: string
29
  splits:
30
  - name: train
31
+ num_bytes: 13475111
32
  num_examples: 87710
33
+ download_size: 7583458
34
+ dataset_size: 13475111
35
+ configs:
36
+ - config_name: default
37
+ data_files:
38
+ - split: train
39
+ path: data/train-*
40
  ---
41
 
42
  # Dataset Card for "aslg_pc12"
aslg_pc12.py DELETED
@@ -1,82 +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
- """ASLG-PC12: Synthetic English-ASL Gloss Parallel Corpus 2012"""
16
-
17
-
18
- import datasets
19
-
20
-
21
- _DESCRIPTION = """\
22
- A large synthetic collection of parallel English and ASL-Gloss texts.
23
- There are two string features: text, and gloss.
24
- """
25
-
26
- _CITATION = """\
27
- @inproceedings{othman2012english,
28
- title={English-asl gloss parallel corpus 2012: Aslg-pc12},
29
- author={Othman, Achraf and Jemni, Mohamed},
30
- booktitle={5th Workshop on the Representation and Processing of Sign Languages: Interactions between Corpus and Lexicon LREC},
31
- year={2012}
32
- }
33
- """
34
-
35
- _GLOSS_URL = "https://www.achrafothman.net/aslsmt/corpus/sample-corpus-asl-en.asl"
36
- _TEXT_URL = "https://www.achrafothman.net/aslsmt/corpus/sample-corpus-asl-en.en"
37
-
38
- _HOMEPAGE = "https://achrafothman.net/site/asl-smt/"
39
-
40
-
41
- class ASLGPC12(datasets.GeneratorBasedBuilder):
42
- """ASLG-PC12: Synthetic English-ASL Gloss Parallel Corpus 2012"""
43
-
44
- VERSION = datasets.Version("0.0.1") # sample corpus
45
-
46
- def _info(self):
47
- return datasets.DatasetInfo(
48
- description=_DESCRIPTION,
49
- # This defines the different columns of the dataset and their types
50
- features=datasets.Features(
51
- {
52
- "gloss": datasets.Value("string"), # American sign language gloss
53
- "text": datasets.Value("string"), # English text
54
- }
55
- ),
56
- homepage=_HOMEPAGE,
57
- citation=_CITATION,
58
- )
59
-
60
- def _split_generators(self, dl_manager):
61
- """Returns SplitGenerators."""
62
-
63
- gloss_path, text_path = dl_manager.download([_GLOSS_URL, _TEXT_URL])
64
-
65
- return [
66
- datasets.SplitGenerator(
67
- name=datasets.Split.TRAIN,
68
- gen_kwargs={"gloss_path": gloss_path, "text_path": text_path},
69
- )
70
- ]
71
-
72
- def _generate_examples(self, gloss_path, text_path):
73
- """Yields examples."""
74
-
75
- gloss_f = open(gloss_path, "r", encoding="utf-8")
76
- text_f = open(text_path, "r", encoding="utf-8")
77
-
78
- for i, (gloss, text) in enumerate(zip(gloss_f, text_f)):
79
- yield i, {"gloss": gloss, "text": text}
80
-
81
- gloss_f.close()
82
- text_f.close()
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
data/train-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a4661fe4a0ad021884f68be05a496e58fdcf9aeba0c627a2c5f807c4c2accfcc
3
+ size 7583458
dataset_infos.json DELETED
@@ -1,53 +0,0 @@
1
- {
2
- "default": {
3
- "description": "Synthetic English-ASL Gloss Parallel Corpus 2012\n",
4
- "citation": "@inproceedings{othman2012english,\n title={English-asl gloss parallel corpus 2012: Aslg-pc12},\n author={Othman, Achraf and Jemni, Mohamed},\n booktitle={5th Workshop on the Representation and Processing of Sign Languages: Interactions between Corpus and Lexicon LREC},\n year={2012}\n}\n",
5
- "homepage": "https://achrafothman.net/site/asl-smt/",
6
- "license": "",
7
- "features": {
8
- "gloss": {
9
- "dtype": "string",
10
- "id": null,
11
- "_type": "Value"
12
- },
13
- "text": {
14
- "dtype": "string",
15
- "id": null,
16
- "_type": "Value"
17
- }
18
- },
19
- "post_processed": null,
20
- "supervised_keys": null,
21
- "builder_name": "aslgp_c12",
22
- "config_name": "default",
23
- "version": {
24
- "version_str": "0.0.1",
25
- "description": null,
26
- "major": 0,
27
- "minor": 0,
28
- "patch": 1
29
- },
30
- "splits": {
31
- "train": {
32
- "name": "train",
33
- "num_bytes": 13497111,
34
- "num_examples": 87710,
35
- "dataset_name": "aslgp_c12"
36
- }
37
- },
38
- "download_checksums": {
39
- "https://www.achrafothman.net/aslsmt/corpus/sample-corpus-asl-en.asl": {
40
- "num_bytes": 6457824,
41
- "checksum": "e550698336419edaaedfc51882541eb033db83257fa2167900ac0db9fae91633"
42
- },
43
- "https://www.achrafothman.net/aslsmt/corpus/sample-corpus-asl-en.en": {
44
- "num_bytes": 6315607,
45
- "checksum": "889732ced6ceaeab352efd647de65ac29e1ac7adb1206b2703d9d35432924f6a"
46
- }
47
- },
48
- "download_size": 12773431,
49
- "post_processing_size": null,
50
- "dataset_size": 13497111,
51
- "size_in_bytes": 26270542
52
- }
53
- }