system HF staff commited on
Commit
68eecaa
0 Parent(s):

Update files from the datasets library (from 1.2.0)

Browse files

Release notes: https://github.com/huggingface/datasets/releases/tag/1.2.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
README.md ADDED
@@ -0,0 +1,191 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ annotations_creators:
3
+ - expert-generated
4
+ language_creators:
5
+ - found
6
+ languages:
7
+ - he
8
+ licenses:
9
+ - gpl
10
+ multilinguality:
11
+ - monolingual
12
+ size_categories:
13
+ - 1K<n<10K
14
+ source_datasets:
15
+ - original
16
+ task_categories:
17
+ - sequence-modeling
18
+ task_ids:
19
+ - language-modeling
20
+ ---
21
+
22
+ # Dataset Card for HebrewSentiment
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:** https://thisworld.online/
50
+ - **Repository:** https://github.com/thisworld1/thisworld.online
51
+ - **Paper:**
52
+ - **Leaderboard:**
53
+ - **Point of Contact:**
54
+
55
+ ### Dataset Summary
56
+
57
+ HebrewThisWorld is a data set consists of 2028 issues of the newspaper 'This World' edited by Uri Avnery and were published between 1950 and 1989. Released under the AGPLv3 license.
58
+
59
+ Data Annotation:
60
+
61
+ ### Supported Tasks and Leaderboards
62
+
63
+ Language modeling
64
+
65
+ ### Languages
66
+
67
+ Hebrew
68
+
69
+ ## Dataset Structure
70
+
71
+ csv file with "," delimeter
72
+
73
+ ### Data Instances
74
+
75
+ Sample:
76
+
77
+ ```json
78
+ {
79
+ "issue_num": 637,
80
+ "page_count": 16,
81
+ "date": "1950-01-01",
82
+ "date_he": "1 בינואר 1950",
83
+ "year": "1950",
84
+ "href": "https://thisworld.online/1950/637",
85
+ "pdf": "https://olam.eu-central-1.linodeobjects.com/pdfs/B-I0637-D010150.pdf",
86
+ "coverpage": "https://olam.eu-central-1.linodeobjects.com/pages/637/t-1.png",
87
+ "backpage": "https://olam.eu-central-1.linodeobjects.com/pages/637/t-16.png",
88
+ "content": "\nלפיד\nהנוער ־ בירושלים צילומים :\n\nב. רותנברג\n\nוזהו הלפיד\n...",
89
+ "url": "https://thisworld.online/api/1950/637"
90
+ }
91
+ ```
92
+
93
+ ### Data Fields
94
+
95
+ - `issue_num`: ID/Number of the issue
96
+ - `page_count`: Page count of the current issue
97
+ - `date`: Published date
98
+ - `date_he`: Published date in Hebrew
99
+ - `year`: Year of the issue
100
+ - `href`: URL to the issue to scan/print etc.
101
+ - `pdf`: URL to the issue to scan in pdf
102
+ - `coverpage`: URL to coverpage
103
+ - `backpage`: URL to backpage
104
+ - `content`: text content of the issue
105
+ - `url`: URL
106
+
107
+
108
+ ### Data Splits
109
+
110
+ | | train |
111
+ |--------------------------|--------|
112
+ | corpus | 2028 |
113
+
114
+
115
+
116
+ ## Dataset Creation
117
+
118
+
119
+ ### Curation Rationale
120
+
121
+ [More Information Needed]
122
+
123
+ ### Source Data
124
+
125
+ [thisworld.online](https://thisworld.online/)
126
+
127
+ #### Initial Data Collection and Normalization
128
+
129
+ [More Information Needed]
130
+
131
+ #### Who are the source language producers?
132
+
133
+ [More Information Needed]
134
+
135
+ ### Annotations
136
+
137
+
138
+ #### Annotation process
139
+
140
+ [More Information Needed]
141
+
142
+ #### Who are the annotators?
143
+
144
+ Researchers
145
+
146
+ ### Personal and Sensitive Information
147
+
148
+ [More Information Needed]
149
+
150
+ ## Considerations for Using the Data
151
+
152
+ ### Social Impact of Dataset
153
+
154
+ [More Information Needed]
155
+
156
+ ### Discussion of Biases
157
+
158
+ [More Information Needed]
159
+
160
+ ### Other Known Limitations
161
+
162
+ [More Information Needed]
163
+
164
+ ## Additional Information
165
+
166
+ ### Dataset Curators
167
+
168
+ [More Information Needed]
169
+
170
+ ### Licensing Information
171
+
172
+ GNU AGPLv3+
173
+
174
+ This is free software, and you are welcome to redistribute it under certain conditions.
175
+
176
+ This program is free software: you can redistribute it and/or modify
177
+ it under the terms of the GNU Affero General Public License as published by
178
+ the Free Software Foundation, either version 3 of the License, or
179
+ (at your option) any later version.
180
+
181
+ This program is distributed in the hope that it will be useful,
182
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
183
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
184
+ GNU Affero General Public License for more details.
185
+
186
+ You should have received a copy of the GNU Affero General Public License
187
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
188
+
189
+ ### Citation Information
190
+
191
+ [More Information Needed]
dataset_infos.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"default": {"description": "HebrewThisWorld is a data set consists of 2028 issues of the newspaper 'This World' edited by Uri Avnery and were published between 1950 and 1989. Released under the AGPLv3 license.", "citation": "", "homepage": "https://github.com/thisworld1/thisworld.online/", "license": "", "features": {"issue_num": {"dtype": "int64", "id": null, "_type": "Value"}, "page_count": {"dtype": "int64", "id": null, "_type": "Value"}, "date": {"dtype": "string", "id": null, "_type": "Value"}, "date_he": {"dtype": "string", "id": null, "_type": "Value"}, "year": {"dtype": "string", "id": null, "_type": "Value"}, "href": {"dtype": "string", "id": null, "_type": "Value"}, "pdf": {"dtype": "string", "id": null, "_type": "Value"}, "coverpage": {"dtype": "string", "id": null, "_type": "Value"}, "backpage": {"dtype": "string", "id": null, "_type": "Value"}, "content": {"dtype": "string", "id": null, "_type": "Value"}, "url": {"dtype": "string", "id": null, "_type": "Value"}}, "post_processed": null, "supervised_keys": null, "builder_name": "hebrew_this_world", "config_name": "default", "version": {"version_str": "0.1.0", "description": null, "major": 0, "minor": 1, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 678389435, "num_examples": 2028, "dataset_name": "hebrew_this_world"}}, "download_checksums": {"https://github.com/imvladikon/datasets_additional/raw/master/data/thisworld1/metadata_0.csv": {"num_bytes": 75500976, "checksum": "6bdd5bffdf1a0156c28af17fa5559e25b0a445d95eb2db7224224988459eab25"}, "https://github.com/imvladikon/datasets_additional/raw/master/data/thisworld1/metadata_1.csv": {"num_bytes": 98806411, "checksum": "542f7f82080cd38188b179a9454407c91a38bee23667febda1d2cefd056e1a20"}, "https://github.com/imvladikon/datasets_additional/raw/master/data/thisworld1/metadata_2.csv": {"num_bytes": 52317583, "checksum": "75388e25df01a3030bdc23742c57c6ace037fa21f8c40da223f328d02890a4c2"}, "https://github.com/imvladikon/datasets_additional/raw/master/data/thisworld1/metadata_3.csv": {"num_bytes": 59818746, "checksum": "7114779c7d42a79380c9746dc35e5aeadb21cbcf8b5c60ad5ebbc49799a9781d"}, "https://github.com/imvladikon/datasets_additional/raw/master/data/thisworld1/metadata_4.csv": {"num_bytes": 80224234, "checksum": "a9df595d73d4f54e20bc8534deee6e0a8590f16290f676db5c8d82c53a28d2a5"}, "https://github.com/imvladikon/datasets_additional/raw/master/data/thisworld1/metadata_5.csv": {"num_bytes": 51232585, "checksum": "2f832e0009b111f021d30aa089893b62d8a31ada1268682cfa7053352b59ffe0"}, "https://github.com/imvladikon/datasets_additional/raw/master/data/thisworld1/metadata_6.csv": {"num_bytes": 55858833, "checksum": "ac89fd1edcf4a5ea5056ab67e99003233f7cf7908e4133a557ea6c4e8d0fc221"}, "https://github.com/imvladikon/datasets_additional/raw/master/data/thisworld1/metadata_7.csv": {"num_bytes": 56670479, "checksum": "75d6d31a2bd9ff6743e99ea7fc7fa00f416a902e3eb92491d28423d9042c32d7"}, "https://github.com/imvladikon/datasets_additional/raw/master/data/thisworld1/metadata_8.csv": {"num_bytes": 50387222, "checksum": "82f09227d76864a01bd4e44b9a7824cb6555551eaaa91157f2fcca83edd6a821"}, "https://github.com/imvladikon/datasets_additional/raw/master/data/thisworld1/metadata_9.csv": {"num_bytes": 97505843, "checksum": "c78cebb562c44ebb67777cf77e385567dd494f61a2b2f793f2b8512ae7615150"}}, "download_size": 678322912, "post_processing_size": null, "dataset_size": 678389435, "size_in_bytes": 1356712347}}
dummy/0.1.0/dummy_data.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:392c55168cdd7b53dd3099ce609ac058122e5b709b0d216d9ec7a43517aaf2eb
3
+ size 6281
hebrew_this_world.py ADDED
@@ -0,0 +1,98 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ """HebrewThisWorld: A corpus from https://thisworld.online/."""
18
+
19
+ from __future__ import absolute_import, division, print_function
20
+
21
+ import csv
22
+ import ctypes
23
+
24
+ import datasets
25
+
26
+
27
+ _DESCRIPTION = """\
28
+ HebrewThisWorld is a data set consists of 2028 issues of the newspaper 'This World' edited by Uri Avnery and were published between 1950 and 1989. Released under the AGPLv3 license."""
29
+
30
+ csv.field_size_limit(int(ctypes.c_ulong(-1).value // 2))
31
+
32
+ _TRAIN_DOWNLOAD_URLS = [
33
+ "https://github.com/imvladikon/datasets_additional/raw/master/data/thisworld1/metadata_0.csv",
34
+ "https://github.com/imvladikon/datasets_additional/raw/master/data/thisworld1/metadata_1.csv",
35
+ "https://github.com/imvladikon/datasets_additional/raw/master/data/thisworld1/metadata_2.csv",
36
+ "https://github.com/imvladikon/datasets_additional/raw/master/data/thisworld1/metadata_3.csv",
37
+ "https://github.com/imvladikon/datasets_additional/raw/master/data/thisworld1/metadata_4.csv",
38
+ "https://github.com/imvladikon/datasets_additional/raw/master/data/thisworld1/metadata_5.csv",
39
+ "https://github.com/imvladikon/datasets_additional/raw/master/data/thisworld1/metadata_6.csv",
40
+ "https://github.com/imvladikon/datasets_additional/raw/master/data/thisworld1/metadata_7.csv",
41
+ "https://github.com/imvladikon/datasets_additional/raw/master/data/thisworld1/metadata_8.csv",
42
+ "https://github.com/imvladikon/datasets_additional/raw/master/data/thisworld1/metadata_9.csv",
43
+ ]
44
+
45
+
46
+ class HebrewThisWorld(datasets.GeneratorBasedBuilder):
47
+ """HebrewThisWorld: Corpus from the newspaper ThisWorld"""
48
+
49
+ VERSION = datasets.Version("0.1.0")
50
+
51
+ def _info(self):
52
+ return datasets.DatasetInfo(
53
+ description=_DESCRIPTION,
54
+ features=datasets.Features(
55
+ {
56
+ "issue_num": datasets.Value("int64"),
57
+ "page_count": datasets.Value("int64"),
58
+ "date": datasets.Value("string"),
59
+ "date_he": datasets.Value("string"),
60
+ "year": datasets.Value("string"),
61
+ "href": datasets.Value("string"),
62
+ "pdf": datasets.Value("string"),
63
+ "coverpage": datasets.Value("string"),
64
+ "backpage": datasets.Value("string"),
65
+ "content": datasets.Value("string"),
66
+ "url": datasets.Value("string"),
67
+ }
68
+ ),
69
+ homepage="https://github.com/thisworld1/thisworld.online/",
70
+ )
71
+
72
+ def _split_generators(self, dl_manager):
73
+ train_path = dl_manager.download_and_extract(_TRAIN_DOWNLOAD_URLS)
74
+
75
+ return [
76
+ datasets.SplitGenerator(name=datasets.Split.TRAIN, gen_kwargs={"filepath": train_path}),
77
+ ]
78
+
79
+ def _generate_examples(self, filepath):
80
+ """Generate Hebrew ThisWorld examples."""
81
+ for file in filepath:
82
+ with open(file, encoding="utf-8") as csv_file:
83
+ csv_reader = csv.DictReader(csv_file)
84
+ for data in csv_reader:
85
+ id_ = data["issue_num"]
86
+ yield id_, {
87
+ "issue_num": data["issue_num"],
88
+ "page_count": data["page_count"],
89
+ "date": data["date"],
90
+ "date_he": data["date_he"],
91
+ "year": data["year"],
92
+ "href": data["href"],
93
+ "pdf": data["pdf"],
94
+ "coverpage": data["coverpage"],
95
+ "backpage": data["backpage"],
96
+ "content": data["content"],
97
+ "url": data["url"],
98
+ }