parquet-converter commited on
Commit
5e09d89
·
1 Parent(s): 3e81525

Update parquet files

Browse files
README.md DELETED
@@ -1,174 +0,0 @@
1
- ---
2
- annotations_creators:
3
- - expert-generated
4
- language_creators:
5
- - other
6
- language:
7
- - pl
8
- license:
9
- - cc-by-sa-3.0
10
- multilinguality:
11
- - monolingual
12
- size_categories:
13
- - 1K<n<10K
14
- source_datasets:
15
- - original
16
- task_categories:
17
- - summarization
18
- task_ids:
19
- - news-articles-summarization
20
- paperswithcode_id: null
21
- pretty_name: psc
22
- dataset_info:
23
- features:
24
- - name: extract_text
25
- dtype: string
26
- - name: summary_text
27
- dtype: string
28
- - name: label
29
- dtype:
30
- class_label:
31
- names:
32
- 0: '0'
33
- 1: '1'
34
- splits:
35
- - name: train
36
- num_bytes: 5026582
37
- num_examples: 4302
38
- - name: test
39
- num_bytes: 1292103
40
- num_examples: 1078
41
- download_size: 2357808
42
- dataset_size: 6318685
43
- ---
44
-
45
- # Dataset Card for [Dataset Name]
46
-
47
- ## Table of Contents
48
- - [Dataset Description](#dataset-description)
49
- - [Dataset Summary](#dataset-summary)
50
- - [Supported Tasks and Leaderboards](#supported-tasks-and-leaderboards)
51
- - [Languages](#languages)
52
- - [Dataset Structure](#dataset-structure)
53
- - [Data Instances](#data-instances)
54
- - [Data Fields](#data-fields)
55
- - [Data Splits](#data-splits)
56
- - [Dataset Creation](#dataset-creation)
57
- - [Curation Rationale](#curation-rationale)
58
- - [Source Data](#source-data)
59
- - [Annotations](#annotations)
60
- - [Personal and Sensitive Information](#personal-and-sensitive-information)
61
- - [Considerations for Using the Data](#considerations-for-using-the-data)
62
- - [Social Impact of Dataset](#social-impact-of-dataset)
63
- - [Discussion of Biases](#discussion-of-biases)
64
- - [Other Known Limitations](#other-known-limitations)
65
- - [Additional Information](#additional-information)
66
- - [Dataset Curators](#dataset-curators)
67
- - [Licensing Information](#licensing-information)
68
- - [Citation Information](#citation-information)
69
- - [Contributions](#contributions)
70
-
71
- ## Dataset Description
72
-
73
- - **Homepage:**
74
- http://zil.ipipan.waw.pl/PolishSummariesCorpus
75
- - **Repository:**
76
- - **Paper:**
77
- - **Leaderboard:**
78
- - **Point of Contact:**
79
-
80
- ### Dataset Summary
81
-
82
- The Polish Summaries Corpus contains news articles and their summaries. We used summaries of the same article as positive pairs and sampled the most similar summaries of different articles as negatives.
83
-
84
-
85
- ### Supported Tasks and Leaderboards
86
-
87
- [More Information Needed]
88
-
89
- ### Languages
90
-
91
- Polish
92
-
93
- ## Dataset Structure
94
-
95
- ### Data Instances
96
-
97
- [More Information Needed]
98
-
99
- ### Data Fields
100
-
101
- - extract_text: text to summarise
102
- - summary_text: summary of extracted text
103
- - label: 1 indicates summary is similar, 0 means that it is not similar
104
-
105
- ### Data Splits
106
-
107
- Data is splitted in train and test dataset. Test dataset doesn't have label column, so -1 is set instead.
108
-
109
- ## Dataset Creation
110
-
111
- ### Curation Rationale
112
-
113
- [More Information Needed]
114
-
115
- ### Source Data
116
-
117
- #### Initial Data Collection and Normalization
118
-
119
- [More Information Needed]
120
-
121
- #### Who are the source language producers?
122
-
123
- [More Information Needed]
124
-
125
- ### Annotations
126
-
127
- #### Annotation process
128
-
129
- [More Information Needed]
130
-
131
- #### Who are the annotators?
132
-
133
- [More Information Needed]
134
-
135
- ### Personal and Sensitive Information
136
-
137
- [More Information Needed]
138
-
139
- ## Considerations for Using the Data
140
-
141
- ### Social Impact of Dataset
142
-
143
- [More Information Needed]
144
-
145
- ### Discussion of Biases
146
-
147
- [More Information Needed]
148
-
149
- ### Other Known Limitations
150
-
151
- [More Information Needed]
152
-
153
- ## Additional Information
154
-
155
- ### Dataset Curators
156
-
157
- [More Information Needed]
158
-
159
- ### Licensing Information
160
-
161
- CC BY-SA 3.0
162
-
163
- ### Citation Information
164
-
165
- @inproceedings{ogro:kop:14:lrec,
166
- title={The {P}olish {S}ummaries {C}orpus},
167
- author={Ogrodniczuk, Maciej and Kope{\'c}, Mateusz},
168
- booktitle = "Proceedings of the Ninth International {C}onference on {L}anguage {R}esources and {E}valuation, {LREC}~2014",
169
- year = "2014",
170
- }
171
-
172
- ### Contributions
173
-
174
- Thanks to [@abecadel](https://github.com/abecadel) for adding this dataset.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
dataset_infos.json DELETED
@@ -1 +0,0 @@
1
- {"default": {"description": "The Polish Summaries Corpus contains news articles and their summaries. We used summaries of the same article as positive pairs and sampled the most similar summaries of different articles as negatives.\n", "citation": "@inproceedings{ogro:kop:14:lrec,\ntitle={The {P}olish {S}ummaries {C}orpus},\nauthor={Ogrodniczuk, Maciej and Kope{'c}, Mateusz},\nbooktitle = \"Proceedings of the Ninth International {C}onference on {L}anguage {R}esources and {E}valuation, {LREC}~2014\",\nyear = \"2014\",\n}\n", "homepage": "http://zil.ipipan.waw.pl/PolishSummariesCorpus", "license": "CC BY-SA 3.0", "features": {"extract_text": {"dtype": "string", "id": null, "_type": "Value"}, "summary_text": {"dtype": "string", "id": null, "_type": "Value"}, "label": {"num_classes": 2, "names": ["0", "1"], "names_file": null, "id": null, "_type": "ClassLabel"}}, "post_processed": null, "supervised_keys": null, "builder_name": "psc", "config_name": "default", "version": {"version_str": "1.1.0", "description": null, "major": 1, "minor": 1, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 5026582, "num_examples": 4302, "dataset_name": "psc"}, "test": {"name": "test", "num_bytes": 1292103, "num_examples": 1078, "dataset_name": "psc"}}, "download_checksums": {"https://klejbenchmark.com/static/data/klej_psc.zip": {"num_bytes": 2357808, "checksum": "78f00802c4631e64b64f6379dd1e8307449390c9e7c03395c3cbfba2ac7ddfc7"}}, "download_size": 2357808, "post_processing_size": null, "dataset_size": 6318685, "size_in_bytes": 8676493}}
 
 
default/psc-test.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:680a1004ab95e838f6db95aaf2b5921963d65f81e299a1bec2aa2881565b4925
3
+ size 423231
default/psc-train.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cc2193ad7b653d7853371d3d510c94aa8cecc2b5e3e16f7e03f1572d557a1eda
3
+ size 2245491
psc.py DELETED
@@ -1,91 +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
- """Polish Summaries Corpus"""
16
-
17
-
18
- import csv
19
- import os
20
-
21
- import datasets
22
-
23
-
24
- _CITATION = """\
25
- @inproceedings{ogro:kop:14:lrec,
26
- title={The {P}olish {S}ummaries {C}orpus},
27
- author={Ogrodniczuk, Maciej and Kope{\'c}, Mateusz},
28
- booktitle = "Proceedings of the Ninth International {C}onference on {L}anguage {R}esources and {E}valuation, {LREC}~2014",
29
- year = "2014",
30
- }
31
- """
32
-
33
- _DESCRIPTION = """\
34
- The Polish Summaries Corpus contains news articles and their summaries. We used summaries of the same article as positive pairs and sampled the most similar summaries of different articles as negatives.
35
- """
36
-
37
- _HOMEPAGE = "http://zil.ipipan.waw.pl/PolishSummariesCorpus"
38
-
39
- _LICENSE = "CC BY-SA 3.0"
40
-
41
- _URLs = "https://klejbenchmark.com/static/data/klej_psc.zip"
42
-
43
-
44
- class PSC(datasets.GeneratorBasedBuilder):
45
- """Polish Summaries Corpus"""
46
-
47
- VERSION = datasets.Version("1.1.0")
48
-
49
- def _info(self):
50
- return datasets.DatasetInfo(
51
- description=_DESCRIPTION,
52
- features=datasets.Features(
53
- {
54
- "extract_text": datasets.Value("string"),
55
- "summary_text": datasets.Value("string"),
56
- "label": datasets.ClassLabel(names=["0", "1"]),
57
- }
58
- ),
59
- supervised_keys=None,
60
- homepage=_HOMEPAGE,
61
- license=_LICENSE,
62
- citation=_CITATION,
63
- )
64
-
65
- def _split_generators(self, dl_manager):
66
- """Returns SplitGenerators."""
67
- data_dir = dl_manager.download_and_extract(_URLs)
68
- return [
69
- datasets.SplitGenerator(
70
- name=datasets.Split.TRAIN,
71
- gen_kwargs={
72
- "filepath": os.path.join(data_dir, "train.tsv"),
73
- "split": "train",
74
- },
75
- ),
76
- datasets.SplitGenerator(
77
- name=datasets.Split.TEST,
78
- gen_kwargs={"filepath": os.path.join(data_dir, "test_features.tsv"), "split": "test"},
79
- ),
80
- ]
81
-
82
- def _generate_examples(self, filepath, split):
83
- """Yields examples."""
84
- with open(filepath, encoding="utf-8") as f:
85
- reader = csv.DictReader(f, delimiter="\t", quoting=csv.QUOTE_NONE)
86
- for id_, row in enumerate(reader):
87
- yield id_, {
88
- "extract_text": row["extract_text"],
89
- "summary_text": row["summary_text"],
90
- "label": -1 if split == "test" else row["label"],
91
- }