Datasets:
Commit
·
d734769
0
Parent(s):
Update files from the datasets library (from 1.1.3)
Browse filesRelease notes: https://github.com/huggingface/datasets/releases/tag/1.1.3
- .gitattributes +27 -0
- aslg_pc12.py +83 -0
- dataset_infos.json +53 -0
- dummy/0.0.1/dummy_data.zip +3 -0
.gitattributes
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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
|
aslg_pc12.py
ADDED
|
@@ -0,0 +1,83 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 |
+
from __future__ import absolute_import, division, print_function
|
| 18 |
+
|
| 19 |
+
import datasets
|
| 20 |
+
|
| 21 |
+
|
| 22 |
+
_DESCRIPTION = """\
|
| 23 |
+
A large synthetic collection of parallel English and ASL-Gloss texts.
|
| 24 |
+
There are two string features: text, and gloss.
|
| 25 |
+
"""
|
| 26 |
+
|
| 27 |
+
_CITATION = """\
|
| 28 |
+
@inproceedings{othman2012english,
|
| 29 |
+
title={English-asl gloss parallel corpus 2012: Aslg-pc12},
|
| 30 |
+
author={Othman, Achraf and Jemni, Mohamed},
|
| 31 |
+
booktitle={5th Workshop on the Representation and Processing of Sign Languages: Interactions between Corpus and Lexicon LREC},
|
| 32 |
+
year={2012}
|
| 33 |
+
}
|
| 34 |
+
"""
|
| 35 |
+
|
| 36 |
+
_GLOSS_URL = "https://www.achrafothman.net/aslsmt/corpus/sample-corpus-asl-en.asl"
|
| 37 |
+
_TEXT_URL = "https://www.achrafothman.net/aslsmt/corpus/sample-corpus-asl-en.en"
|
| 38 |
+
|
| 39 |
+
_HOMEPAGE = "https://achrafothman.net/site/asl-smt/"
|
| 40 |
+
|
| 41 |
+
|
| 42 |
+
class ASLGPC12(datasets.GeneratorBasedBuilder):
|
| 43 |
+
"""ASLG-PC12: Synthetic English-ASL Gloss Parallel Corpus 2012"""
|
| 44 |
+
|
| 45 |
+
VERSION = datasets.Version("0.0.1") # sample corpus
|
| 46 |
+
|
| 47 |
+
def _info(self):
|
| 48 |
+
return datasets.DatasetInfo(
|
| 49 |
+
description=_DESCRIPTION,
|
| 50 |
+
# This defines the different columns of the dataset and their types
|
| 51 |
+
features=datasets.Features(
|
| 52 |
+
{
|
| 53 |
+
"gloss": datasets.Value("string"), # American sign language gloss
|
| 54 |
+
"text": datasets.Value("string"), # English text
|
| 55 |
+
}
|
| 56 |
+
),
|
| 57 |
+
homepage=_HOMEPAGE,
|
| 58 |
+
citation=_CITATION,
|
| 59 |
+
)
|
| 60 |
+
|
| 61 |
+
def _split_generators(self, dl_manager):
|
| 62 |
+
"""Returns SplitGenerators."""
|
| 63 |
+
|
| 64 |
+
gloss_path, text_path = dl_manager.download([_GLOSS_URL, _TEXT_URL])
|
| 65 |
+
|
| 66 |
+
return [
|
| 67 |
+
datasets.SplitGenerator(
|
| 68 |
+
name=datasets.Split.TRAIN,
|
| 69 |
+
gen_kwargs={"gloss_path": gloss_path, "text_path": text_path},
|
| 70 |
+
)
|
| 71 |
+
]
|
| 72 |
+
|
| 73 |
+
def _generate_examples(self, gloss_path, text_path):
|
| 74 |
+
""" Yields examples. """
|
| 75 |
+
|
| 76 |
+
gloss_f = open(gloss_path, "r", encoding="utf-8")
|
| 77 |
+
text_f = open(text_path, "r", encoding="utf-8")
|
| 78 |
+
|
| 79 |
+
for i, (gloss, text) in enumerate(zip(gloss_f, text_f)):
|
| 80 |
+
yield i, {"gloss": gloss, "text": text}
|
| 81 |
+
|
| 82 |
+
gloss_f.close()
|
| 83 |
+
text_f.close()
|
dataset_infos.json
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 |
+
}
|
dummy/0.0.1/dummy_data.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:87f1ba7124eb67ba0e3c2ef8b4b32ce608c616a678b59d51fa2ab2bfc26752c7
|
| 3 |
+
size 806
|