parquet-converter commited on
Commit
85bd1e1
1 Parent(s): cf72f8a

Update parquet files

Browse files
CC-NEWS-ES-titles.py DELETED
@@ -1,96 +0,0 @@
1
- # coding=utf-8
2
- # Copyright 2020 The TensorFlow Datasets Authors and the 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
- """CC-NEWS-ES-titles: Title generation from CC-NEWS in Spanish."""
18
-
19
-
20
- import json
21
-
22
- import datasets
23
- from datasets.tasks import Summarization
24
-
25
-
26
- logger = datasets.logging.get_logger(__name__)
27
-
28
-
29
- _CITATION = """ """
30
- _DESCRIPTION = ""
31
- _HOMEPAGE = ""
32
-
33
- _LICENSE = ""
34
-
35
- _URL = "https://huggingface.co/datasets/LeoCordoba/CC-NEWS-ES-titles/resolve/main/"
36
- _URLS = {
37
- "train": _URL + "train.jsonl",
38
- "test": _URL + "test.jsonl",
39
- "eval": _URL + "eval.jsonl"
40
- }
41
-
42
- class CCNewsESTitlesConfig(datasets.BuilderConfig):
43
- """BuilderConfig for CCNewsESTitles."""
44
-
45
- def __init__(self, **kwargs):
46
- """BuilderConfig for CCNewsESTitles.
47
- Args:
48
- **kwargs: keyword arguments forwarded to super.
49
- """
50
- super(CCNewsESTitlesConfig, self).__init__(**kwargs)
51
-
52
- class CCNewsESTitles(datasets.GeneratorBasedBuilder):
53
- """Title generation dataset in Spanish from CC-NEWS"""
54
- VERSION = datasets.Version("1.0.0")
55
-
56
- BUILDER_CONFIGS = [
57
- CCNewsESTitlesConfig(
58
- ),
59
- ]
60
-
61
- def _info(self):
62
- return datasets.DatasetInfo(
63
- description=_DESCRIPTION,
64
- features=datasets.Features(
65
- {
66
- "text": datasets.Value("string"),
67
- "output_text": datasets.Value("string")
68
- }
69
- ),
70
- homepage=_HOMEPAGE,
71
- license=_LICENSE,
72
- citation=_CITATION,
73
- )
74
- def _split_generators(self, dl_manager):
75
- """Returns SplitGenerators."""
76
-
77
- train = dl_manager.download_and_extract(_URLS["train"])
78
- eval_ = dl_manager.download_and_extract(_URLS["eval"])
79
- test = dl_manager.download_and_extract(_URLS["test"])
80
-
81
- return [
82
- datasets.SplitGenerator(name=datasets.Split.TRAIN, gen_kwargs={"filepath": train}),
83
- datasets.SplitGenerator(name=datasets.Split.VALIDATION, gen_kwargs={"filepath": eval_}),
84
- datasets.SplitGenerator(name=datasets.Split.TEST, gen_kwargs={"filepath": test})
85
- ]
86
-
87
-
88
- def _generate_examples(self, filepath):
89
- logger.info("generating examples from = %s", filepath)
90
- data = []
91
- with open(filepath) as f:
92
- for line in f:
93
- data.append(json.loads(line))
94
-
95
- for idx, obs in enumerate(data):
96
- yield idx, obs
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
README.md DELETED
@@ -1,170 +0,0 @@
1
- ---
2
- annotations_creators:
3
- - no-annotation
4
- language_creators:
5
- - found
6
- language:
7
- - es
8
- license:
9
- - mit
10
- multilinguality:
11
- - monolingual
12
- size_categories:
13
- - 100K<n<1M
14
- source_datasets:
15
- - cc-news
16
- task_categories:
17
- - conditional-text-generation
18
- task_ids:
19
- - summarization
20
- ---
21
-
22
- # Dataset Card for CC-NEWS-ES-titles
23
-
24
- ## Table of Contents
25
- - [Dataset Description](#dataset-description)
26
- - [Dataset Summary](#dataset-summary)
27
- - [Supported Tasks and Leaderboards](#supported-tasks-and-leaderboards)
28
- - [Languages](#languages)
29
- - [Dataset Structure](#dataset-structure)
30
- - [Data Instances](#data-instances)
31
- - [Data Fields](#data-fields)
32
- - [Data Splits](#data-splits)
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
- - [Contributions](#contributions)
47
-
48
- ## Dataset Description
49
-
50
- - **Homepage:**
51
- - **Repository:** [CC-NEWS-ES-titles dataset repository](https://huggingface.co/datasets/LeoCordoba/CC-NEWS-ES-titles)
52
- - **Paper:**
53
- - **Leaderboard:**
54
- - **Point of Contact:** [Leonardo Ignacio Córdoba](https://www.linkedin.com/in/leonardo-ignacio-c%C3%B3rdoba/)
55
-
56
- ### Dataset Summary
57
-
58
- CC-NEWS-ES-titles is a Spanish-language dataset for news titles generation. The text and titles comes from 2019 and 2020 CC-NEWS data (which is part of Common Crawl).
59
-
60
- It contains 402.310 pairs of news title and body, splitted in :
61
-
62
- - Train: 370.125
63
-
64
- - Eval: 16.092
65
-
66
- - Test: 16.092
67
-
68
- ### Supported Tasks and Leaderboards
69
-
70
- - `text-classification`, `sentiment-classification`: The dataset can be used to train a model for news title generation which can be considered a subset of abstractive summarization.
71
-
72
-
73
- ### Languages
74
-
75
- The text is in Spanish. The BCP-47 code for Spanish is es.
76
-
77
- ## Dataset Structure
78
-
79
- ### Data Instances
80
-
81
- Each data instance contains the following features: _text_ and _output_text_.
82
-
83
- - _text_ is the body of the news.
84
- - _output_text_ is the title of the news.
85
-
86
-
87
- An example from the CC-NEWS-ES-titles train set looks like the following:
88
- ```
89
- {'text': 'Hoy en el Boletín Oficial también se publicó la disposición para universidades, institutos universitarios y de educación superior de todas las jurisdicciones, a las que recomienda que "adecúen las condiciones en que se desarrolla la actividad académica presencial en el marco de la emergencia conforme con las recomendaciones del Ministerio de Salud", según lo publicado por la agencia ',
90
- 'output_text': 'Coronavirus: "Seguimos educando", la plataforma online para que los chicos estudien en cuarentena'}
91
-
92
- ```
93
-
94
- ### Data Fields
95
-
96
- - 'text': a string containing the body of the news.
97
- - 'output_text': a string containing the title of the news.
98
-
99
- ### Data Splits
100
-
101
- The CC-NEWS-ES-titles dataset has 3 splits: _train_, _validation_, and _test_. The splits contain disjoint sets of news.
102
-
103
- | Dataset Split | Number of Instances in Split |
104
- | ------------- | ---------------------------- |
105
- | Train | 370.125 |
106
- | Eval | 16.092 |
107
- | Test | 16.092 |
108
-
109
- ## Dataset Creation
110
-
111
- ### Curation Rationale
112
-
113
- [N/A]
114
-
115
- ### Source Data
116
-
117
- #### Initial Data Collection and Normalization
118
-
119
- TODO
120
-
121
- #### Who are the source language producers?
122
-
123
- Common Crawl: https://commoncrawl.org/
124
-
125
- ### Annotations
126
-
127
- The dataset does not contain any additional annotations.
128
-
129
- #### Annotation process
130
-
131
- [N/A]
132
-
133
- #### Who are the annotators?
134
-
135
- [N/A]
136
-
137
- ### Personal and Sensitive Information
138
-
139
- [N/A]
140
-
141
- ## Considerations for Using the Data
142
-
143
- ### Social Impact of Dataset
144
-
145
- Abstractive summarization is a complex task and Spanish is a underrepresented language in the NLP domain. As a consequence, adding a Spanish resource may help others to improve their research and educational activities.
146
-
147
- ### Discussion of Biases
148
-
149
- [N/A]
150
-
151
- ### Other Known Limitations
152
-
153
- [N/A]
154
-
155
- ## Additional Information
156
-
157
- ### Dataset Curators
158
-
159
- This dataset is maintained by [Leonardo Ignacio Córdoba](https://www.linkedin.com/in/leonardo-ignacio-c%C3%B3rdoba/) and was built with the help of [María Gaska](https://www.linkedin.com/in/mfgaska/).
160
-
161
- ### Licensing Information
162
-
163
- [N/A]
164
-
165
- ### Citation Information
166
-
167
- TODO
168
- ### Contributions
169
-
170
- [N/A]
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
dataset_infos.json DELETED
@@ -1 +0,0 @@
1
- {"default": {"description": "", "citation": " ", "homepage": "", "license": "", "features": {"text": {"dtype": "string", "id": null, "_type": "Value"}, "output_text": {"dtype": "string", "id": null, "_type": "Value"}}, "post_processed": null, "supervised_keys": null, "task_templates": null, "builder_name": "cc_news_es_titles", "config_name": "default", "version": {"version_str": "0.0.0", "description": null, "major": 0, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 592272595, "num_examples": 370125, "dataset_name": "cc_news_es_titles"}, "validation": {"name": "validation", "num_bytes": 25737461, "num_examples": 16092, "dataset_name": "cc_news_es_titles"}, "test": {"name": "test", "num_bytes": 25854392, "num_examples": 16093, "dataset_name": "cc_news_es_titles"}}, "download_checksums": {"https://huggingface.co/datasets/LeoCordoba/CC-NEWS-ES-titles/resolve/main/train.jsonl": {"num_bytes": 602204733, "checksum": "b8fb35cda6132005a9862bd658093bdd5f2100e1cf729ac38fce31fa23d9774f"}, "https://huggingface.co/datasets/LeoCordoba/CC-NEWS-ES-titles/resolve/main/eval.jsonl": {"num_bytes": 26167193, "checksum": "d2e986d4a36a8194915e8e4e35e5723324f3df9494f223ee5a7f341cc4e98f36"}, "https://huggingface.co/datasets/LeoCordoba/CC-NEWS-ES-titles/resolve/main/test.jsonl": {"num_bytes": 26285538, "checksum": "e46ea032c13a268fd2346e728ea1b1f919b6f8af50712b5c38c9fda83c26f3d9"}}, "download_size": 654657464, "post_processing_size": null, "dataset_size": 643864448, "size_in_bytes": 1298521912}}
 
 
sample.jsonl → default/cc-news-es-titles-test.parquet RENAMED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:17cf1031cc688e9e93848523882cc7c745fe5a812b802f7dca5f462822bc5ff6
3
- size 7594
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d6bfec91a4dfb21c9c996024a1c9714149ed8b3dae48dce3c3f2e91bba9e0aaa
3
+ size 16329145
train.jsonl → default/cc-news-es-titles-train-00000-of-00002.parquet RENAMED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:b8fb35cda6132005a9862bd658093bdd5f2100e1cf729ac38fce31fa23d9774f
3
- size 602204733
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d7099bb6152febbda9855d1fdc3a65c4fb931c21f9d707cc48c3053a433c00d8
3
+ size 316522148
test.jsonl → default/cc-news-es-titles-train-00001-of-00002.parquet RENAMED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:e46ea032c13a268fd2346e728ea1b1f919b6f8af50712b5c38c9fda83c26f3d9
3
- size 26285538
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0edcfff35e9044eda697ab42182be1e1cc0071c13bd335169554194bdee5d1d6
3
+ size 57531585
eval.jsonl → default/cc-news-es-titles-validation.parquet RENAMED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:d2e986d4a36a8194915e8e4e35e5723324f3df9494f223ee5a7f341cc4e98f36
3
- size 26167193
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b61e7b3b748ec6659b7788018b79921f1eca800d3fe217ae2df77d3eae6f2aca
3
+ size 16262918