parquet-converter commited on
Commit
5ab7038
·
1 Parent(s): 81385c1

Update parquet files

Browse files
README.md DELETED
@@ -1,228 +0,0 @@
1
- ---
2
- annotations_creators:
3
- - expert-generated
4
- language_creators:
5
- - found
6
- language:
7
- - he
8
- license:
9
- - agpl-3.0
10
- multilinguality:
11
- - monolingual
12
- size_categories:
13
- - 1K<n<10K
14
- source_datasets:
15
- - original
16
- task_categories:
17
- - text-generation
18
- - fill-mask
19
- task_ids:
20
- - language-modeling
21
- - masked-language-modeling
22
- paperswithcode_id: null
23
- pretty_name: HebrewSentiment
24
- dataset_info:
25
- features:
26
- - name: issue_num
27
- dtype: int64
28
- - name: page_count
29
- dtype: int64
30
- - name: date
31
- dtype: string
32
- - name: date_he
33
- dtype: string
34
- - name: year
35
- dtype: string
36
- - name: href
37
- dtype: string
38
- - name: pdf
39
- dtype: string
40
- - name: coverpage
41
- dtype: string
42
- - name: backpage
43
- dtype: string
44
- - name: content
45
- dtype: string
46
- - name: url
47
- dtype: string
48
- splits:
49
- - name: train
50
- num_bytes: 678389435
51
- num_examples: 2028
52
- download_size: 678322912
53
- dataset_size: 678389435
54
- ---
55
-
56
- # Dataset Card for HebrewSentiment
57
-
58
- ## Table of Contents
59
- - [Dataset Description](#dataset-description)
60
- - [Dataset Summary](#dataset-summary)
61
- - [Supported Tasks and Leaderboards](#supported-tasks-and-leaderboards)
62
- - [Languages](#languages)
63
- - [Dataset Structure](#dataset-structure)
64
- - [Data Instances](#data-instances)
65
- - [Data Fields](#data-fields)
66
- - [Data Splits](#data-splits)
67
- - [Dataset Creation](#dataset-creation)
68
- - [Curation Rationale](#curation-rationale)
69
- - [Source Data](#source-data)
70
- - [Annotations](#annotations)
71
- - [Personal and Sensitive Information](#personal-and-sensitive-information)
72
- - [Considerations for Using the Data](#considerations-for-using-the-data)
73
- - [Social Impact of Dataset](#social-impact-of-dataset)
74
- - [Discussion of Biases](#discussion-of-biases)
75
- - [Other Known Limitations](#other-known-limitations)
76
- - [Additional Information](#additional-information)
77
- - [Dataset Curators](#dataset-curators)
78
- - [Licensing Information](#licensing-information)
79
- - [Citation Information](#citation-information)
80
- - [Contributions](#contributions)
81
-
82
- ## Dataset Description
83
-
84
- - **Homepage:** https://thisworld.online/
85
- - **Repository:** https://github.com/thisworld1/thisworld.online
86
- - **Paper:**
87
- - **Leaderboard:**
88
- - **Point of Contact:**
89
-
90
- ### Dataset Summary
91
-
92
- 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.
93
-
94
- Data Annotation:
95
-
96
- ### Supported Tasks and Leaderboards
97
-
98
- Language modeling
99
-
100
- ### Languages
101
-
102
- Hebrew
103
-
104
- ## Dataset Structure
105
-
106
- csv file with "," delimeter
107
-
108
- ### Data Instances
109
-
110
- Sample:
111
-
112
- ```json
113
- {
114
- "issue_num": 637,
115
- "page_count": 16,
116
- "date": "1950-01-01",
117
- "date_he": "1 בינואר 1950",
118
- "year": "1950",
119
- "href": "https://thisworld.online/1950/637",
120
- "pdf": "https://olam.eu-central-1.linodeobjects.com/pdfs/B-I0637-D010150.pdf",
121
- "coverpage": "https://olam.eu-central-1.linodeobjects.com/pages/637/t-1.png",
122
- "backpage": "https://olam.eu-central-1.linodeobjects.com/pages/637/t-16.png",
123
- "content": "\nלפיד\nהנוער ־ בירושלים צילומים :\n\nב. רותנברג\n\nוזהו הלפיד\n...",
124
- "url": "https://thisworld.online/api/1950/637"
125
- }
126
- ```
127
-
128
- ### Data Fields
129
-
130
- - `issue_num`: ID/Number of the issue
131
- - `page_count`: Page count of the current issue
132
- - `date`: Published date
133
- - `date_he`: Published date in Hebrew
134
- - `year`: Year of the issue
135
- - `href`: URL to the issue to scan/print etc.
136
- - `pdf`: URL to the issue to scan in pdf
137
- - `coverpage`: URL to coverpage
138
- - `backpage`: URL to backpage
139
- - `content`: text content of the issue
140
- - `url`: URL
141
-
142
-
143
- ### Data Splits
144
-
145
- | | train |
146
- |--------|------:|
147
- | corpus | 2028 |
148
-
149
- ## Dataset Creation
150
-
151
-
152
- ### Curation Rationale
153
-
154
- [More Information Needed]
155
-
156
- ### Source Data
157
-
158
- [thisworld.online](https://thisworld.online/)
159
-
160
- #### Initial Data Collection and Normalization
161
-
162
- [More Information Needed]
163
-
164
- #### Who are the source language producers?
165
-
166
- [More Information Needed]
167
-
168
- ### Annotations
169
-
170
-
171
- #### Annotation process
172
-
173
- [More Information Needed]
174
-
175
- #### Who are the annotators?
176
-
177
- Researchers
178
-
179
- ### Personal and Sensitive Information
180
-
181
- [More Information Needed]
182
-
183
- ## Considerations for Using the Data
184
-
185
- ### Social Impact of Dataset
186
-
187
- [More Information Needed]
188
-
189
- ### Discussion of Biases
190
-
191
- [More Information Needed]
192
-
193
- ### Other Known Limitations
194
-
195
- [More Information Needed]
196
-
197
- ## Additional Information
198
-
199
- ### Dataset Curators
200
-
201
- [More Information Needed]
202
-
203
- ### Licensing Information
204
-
205
- GNU AGPLv3+
206
-
207
- This is free software, and you are welcome to redistribute it under certain conditions.
208
-
209
- This program is free software: you can redistribute it and/or modify
210
- it under the terms of the GNU Affero General Public License as published by
211
- the Free Software Foundation, either version 3 of the License, or
212
- (at your option) any later version.
213
-
214
- This program is distributed in the hope that it will be useful,
215
- but WITHOUT ANY WARRANTY; without even the implied warranty of
216
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
217
- GNU Affero General Public License for more details.
218
-
219
- You should have received a copy of the GNU Affero General Public License
220
- along with this program. If not, see <http://www.gnu.org/licenses/>.
221
-
222
- ### Citation Information
223
-
224
- https://thisworld.online/
225
-
226
- ### Contributions
227
-
228
- Thanks to [@lhoestq](https://github.com/lhoestq), [@imvladikon](https://github.com/imvladikon) for adding this dataset.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
dataset_infos.json DELETED
@@ -1 +0,0 @@
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}}
 
 
default/hebrew_this_world-train-00000-of-00002.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0d9b159b4b1413f63beddc2aef99b33403f2ccee4359b0b85280c2fd816dce50
3
+ size 370138792
default/hebrew_this_world-train-00001-of-00002.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:033eca4cbfb8105d4a3eebde1d4f073d2e6d8c260af34da34374fbe5228ff6bb
3
+ size 7210713
hebrew_this_world.py DELETED
@@ -1,97 +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
- """HebrewThisWorld: A corpus from https://thisworld.online/."""
18
-
19
-
20
- import csv
21
- import ctypes
22
-
23
- import datasets
24
-
25
-
26
- _DESCRIPTION = """\
27
- 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."""
28
-
29
- csv.field_size_limit(int(ctypes.c_ulong(-1).value // 2))
30
-
31
- _TRAIN_DOWNLOAD_URLS = [
32
- "https://github.com/imvladikon/datasets_additional/raw/master/data/thisworld1/metadata_0.csv",
33
- "https://github.com/imvladikon/datasets_additional/raw/master/data/thisworld1/metadata_1.csv",
34
- "https://github.com/imvladikon/datasets_additional/raw/master/data/thisworld1/metadata_2.csv",
35
- "https://github.com/imvladikon/datasets_additional/raw/master/data/thisworld1/metadata_3.csv",
36
- "https://github.com/imvladikon/datasets_additional/raw/master/data/thisworld1/metadata_4.csv",
37
- "https://github.com/imvladikon/datasets_additional/raw/master/data/thisworld1/metadata_5.csv",
38
- "https://github.com/imvladikon/datasets_additional/raw/master/data/thisworld1/metadata_6.csv",
39
- "https://github.com/imvladikon/datasets_additional/raw/master/data/thisworld1/metadata_7.csv",
40
- "https://github.com/imvladikon/datasets_additional/raw/master/data/thisworld1/metadata_8.csv",
41
- "https://github.com/imvladikon/datasets_additional/raw/master/data/thisworld1/metadata_9.csv",
42
- ]
43
-
44
-
45
- class HebrewThisWorld(datasets.GeneratorBasedBuilder):
46
- """HebrewThisWorld: Corpus from the newspaper ThisWorld"""
47
-
48
- VERSION = datasets.Version("0.1.0")
49
-
50
- def _info(self):
51
- return datasets.DatasetInfo(
52
- description=_DESCRIPTION,
53
- features=datasets.Features(
54
- {
55
- "issue_num": datasets.Value("int64"),
56
- "page_count": datasets.Value("int64"),
57
- "date": datasets.Value("string"),
58
- "date_he": datasets.Value("string"),
59
- "year": datasets.Value("string"),
60
- "href": datasets.Value("string"),
61
- "pdf": datasets.Value("string"),
62
- "coverpage": datasets.Value("string"),
63
- "backpage": datasets.Value("string"),
64
- "content": datasets.Value("string"),
65
- "url": datasets.Value("string"),
66
- }
67
- ),
68
- homepage="https://github.com/thisworld1/thisworld.online/",
69
- )
70
-
71
- def _split_generators(self, dl_manager):
72
- train_path = dl_manager.download_and_extract(_TRAIN_DOWNLOAD_URLS)
73
-
74
- return [
75
- datasets.SplitGenerator(name=datasets.Split.TRAIN, gen_kwargs={"filepath": train_path}),
76
- ]
77
-
78
- def _generate_examples(self, filepath):
79
- """Generate Hebrew ThisWorld examples."""
80
- for file in filepath:
81
- with open(file, encoding="utf-8") as csv_file:
82
- csv_reader = csv.DictReader(csv_file)
83
- for data in csv_reader:
84
- id_ = data["issue_num"]
85
- yield id_, {
86
- "issue_num": data["issue_num"],
87
- "page_count": data["page_count"],
88
- "date": data["date"],
89
- "date_he": data["date_he"],
90
- "year": data["year"],
91
- "href": data["href"],
92
- "pdf": data["pdf"],
93
- "coverpage": data["coverpage"],
94
- "backpage": data["backpage"],
95
- "content": data["content"],
96
- "url": data["url"],
97
- }