parquet-converter commited on
Commit
cb7a7e2
·
1 Parent(s): e45f5ed

Update parquet files

Browse files
.gitattributes DELETED
@@ -1,38 +0,0 @@
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
- *.bz2 filter=lfs diff=lfs merge=lfs -text
5
- *.ftz filter=lfs diff=lfs merge=lfs -text
6
- *.gz filter=lfs diff=lfs merge=lfs -text
7
- *.h5 filter=lfs diff=lfs merge=lfs -text
8
- *.joblib filter=lfs diff=lfs merge=lfs -text
9
- *.lfs.* filter=lfs diff=lfs merge=lfs -text
10
- *.model filter=lfs diff=lfs merge=lfs -text
11
- *.msgpack filter=lfs diff=lfs merge=lfs -text
12
- *.onnx filter=lfs diff=lfs merge=lfs -text
13
- *.ot filter=lfs diff=lfs merge=lfs -text
14
- *.parquet filter=lfs diff=lfs merge=lfs -text
15
- *.pb filter=lfs diff=lfs merge=lfs -text
16
- *.pt filter=lfs diff=lfs merge=lfs -text
17
- *.pth filter=lfs diff=lfs merge=lfs -text
18
- *.rar filter=lfs diff=lfs merge=lfs -text
19
- saved_model/**/* filter=lfs diff=lfs merge=lfs -text
20
- *.tar.* filter=lfs diff=lfs merge=lfs -text
21
- *.tflite filter=lfs diff=lfs merge=lfs -text
22
- *.tgz filter=lfs diff=lfs merge=lfs -text
23
- *.wasm 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
28
- # Audio files - uncompressed
29
- *.pcm filter=lfs diff=lfs merge=lfs -text
30
- *.sam filter=lfs diff=lfs merge=lfs -text
31
- *.raw filter=lfs diff=lfs merge=lfs -text
32
- # Audio files - compressed
33
- *.aac filter=lfs diff=lfs merge=lfs -text
34
- *.flac filter=lfs diff=lfs merge=lfs -text
35
- *.mp3 filter=lfs diff=lfs merge=lfs -text
36
- *.ogg filter=lfs diff=lfs merge=lfs -text
37
- *.wav filter=lfs diff=lfs merge=lfs -text
38
- News_Category_Dataset_v2.json filter=lfs diff=lfs merge=lfs -text
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
HuffPost.py DELETED
@@ -1,130 +0,0 @@
1
- # Copyright 2020 The HuggingFace Datasets Authors and the current dataset script contributor.
2
- #
3
- # Licensed under the Apache License, Version 2.0 (the "License");
4
- # you may not use this file except in compliance with the License.
5
- # You may obtain a copy of the License at
6
- #
7
- # http://www.apache.org/licenses/LICENSE-2.0
8
- #
9
- # Unless required by applicable law or agreed to in writing, software
10
- # distributed under the License is distributed on an "AS IS" BASIS,
11
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
- # See the License for the specific language governing permissions and
13
- # limitations under the License.
14
-
15
- """HuffPost Dataset."""
16
-
17
-
18
- import csv
19
- import json
20
- import os
21
-
22
- import datasets
23
-
24
-
25
-
26
- _CITATION = """\
27
- @book{book,
28
- author = {Misra, Rishabh and Grover, Jigyasa},
29
- year = {2021},
30
- month = {01},
31
- pages = {},
32
- title = {Sculpting Data for ML: The first act of Machine Learning},
33
- isbn = {978-0-578-83125-1}
34
- }
35
-
36
- @dataset{dataset,
37
- author = {Misra, Rishabh},
38
- year = {2018},
39
- month = {06},
40
- pages = {},
41
- title = {News Category Dataset},
42
- doi = {10.13140/RG.2.2.20331.18729}
43
- }
44
- """
45
-
46
-
47
- _DESCRIPTION = """\
48
- A dataset of approximately 200K news headlines from the year 2012 to 2018 collected from HuffPost."""
49
-
50
- _HOMEPAGE = "https://www.kaggle.com/datasets/rmisra/news-category-dataset"
51
-
52
- _LICENSE = "CC0: Public Domain"
53
-
54
- _URLS = "https://huggingface.co/datasets/khalidalt/HuffPost/resolve/main/News_Category_Dataset_v2.json"
55
-
56
-
57
-
58
- class HuffPost(datasets.GeneratorBasedBuilder):
59
- """HuffPost Dataset."""
60
-
61
- VERSION = datasets.Version("1.1.0")
62
-
63
- # This is an example of a dataset with multiple configurations.
64
- # If you don't want/need to define several sub-sets in your dataset,
65
- # just remove the BUILDER_CONFIG_CLASS and the BUILDER_CONFIGS attributes.
66
-
67
- # If you need to make complex sub-parts in the datasets with configurable options
68
- # You can create your own builder configuration class to store attribute, inheriting from datasets.BuilderConfig
69
- # BUILDER_CONFIG_CLASS = MyBuilderConfig
70
-
71
- # You will be able to load one or the other configurations in the following list with
72
- # data = datasets.load_dataset('my_dataset', 'first_domain')
73
- # data = datasets.load_dataset('my_dataset', 'second_domain')
74
- BUILDER_CONFIGS = [
75
- datasets.BuilderConfig(name="default", version=VERSION, description="Default config"),
76
- ]
77
-
78
- DEFAULT_CONFIG_NAME = "default"
79
-
80
- def _info(self):
81
-
82
- features = datasets.Features(
83
- {
84
- "category": datasets.Value("string"),
85
- "headline": datasets.Value("string"),
86
- "authors": datasets.Value("string"),
87
- "link": datasets.Value("string"),
88
- "short_description": datasets.Value("string"),
89
- "date": datasets.Value("string"),
90
- "label": datasets.ClassLabel(names=["POLITICS","WELLNESS","ENTERTAINMENT","TRAVEL","STYLE & BEAUTY",
91
- "PARENTING","HEALTHY LIVING","QUEER VOICES","FOOD & DRINK",
92
- "BUSINESS","COMEDY","SPORTS","BLACK VOICES","HOME & LIVING","PARENTS",
93
- "THE WORLDPOST","WEDDINGS","WOMEN","IMPACT","DIVORCE","CRIME","MEDIA",
94
- "WEIRD NEWS","GREEN","WORLDPOST","RELIGION","STYLE","SCIENCE",
95
- "WORLD NEWS","TASTE","TECH","MONEY","ARTS","FIFTY","GOOD NEWS",
96
- "ARTS & CULTURE","ENVIRONMENT","COLLEGE","LATINO VOICES","CULTURE & ARTS",
97
- "EDUCATION"]),
98
- }
99
- )
100
-
101
- return datasets.DatasetInfo(
102
-
103
- description=_DESCRIPTION,
104
- features=features,
105
- homepage=_HOMEPAGE,
106
- # License for the dataset if available
107
- license=_LICENSE,
108
- # Citation for the dataset
109
- citation=_CITATION,
110
- )
111
-
112
- def _split_generators(self, dl_manager):
113
-
114
- data_dir = dl_manager.download_and_extract(_URLS)
115
- return [
116
- datasets.SplitGenerator(
117
- name=datasets.Split.TEST,
118
- gen_kwargs={"filepath": data_dir},
119
- ),
120
- ]
121
-
122
- # method parameters are unpacked from `gen_kwargs` as given in `_split_generators`
123
- def _generate_examples(self, filepath):
124
-
125
- with open(filepath, encoding="utf-8") as f:
126
- for key, row in enumerate(f):
127
- data = json.loads(row)
128
- data['label'] = data['category']
129
- # Yields examples as (key, example) tuples
130
- yield key, data
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
README.md DELETED
@@ -1,140 +0,0 @@
1
- ---
2
- license: cc0-1.0
3
- ---
4
-
5
- # Dataset Card for HuffPost
6
-
7
- ## Table of Contents
8
- - [Table of Contents](#table-of-contents)
9
- - [Dataset Description](#dataset-description)
10
- - [Dataset Summary](#dataset-summary)
11
- - [Supported Tasks and Leaderboards](#supported-tasks-and-leaderboards)
12
- - [Languages](#languages)
13
- - [Dataset Structure](#dataset-structure)
14
- - [Data Instances](#data-instances)
15
- - [Data Fields](#data-fields)
16
- - [Data Splits](#data-splits)
17
- - [Dataset Creation](#dataset-creation)
18
- - [Curation Rationale](#curation-rationale)
19
- - [Source Data](#source-data)
20
- - [Annotations](#annotations)
21
- - [Personal and Sensitive Information](#personal-and-sensitive-information)
22
- - [Considerations for Using the Data](#considerations-for-using-the-data)
23
- - [Social Impact of Dataset](#social-impact-of-dataset)
24
- - [Discussion of Biases](#discussion-of-biases)
25
- - [Other Known Limitations](#other-known-limitations)
26
- - [Additional Information](#additional-information)
27
- - [Dataset Curators](#dataset-curators)
28
- - [Licensing Information](#licensing-information)
29
- - [Citation Information](#citation-information)
30
- - [Contributions](#contributions)
31
-
32
- ## Dataset Description
33
-
34
- - **Homepage:https://www.kaggle.com/datasets/rmisra/news-category-dataset/metadata**
35
-
36
-
37
- ### Dataset Summary
38
-
39
- A dataset of approximately 200K news headlines from the year 2012 to 2018 collected from HuffPost.
40
-
41
- ### Supported Tasks and Leaderboards
42
-
43
- [More Information Needed]
44
-
45
- ### Languages
46
-
47
- [More Information Needed]
48
-
49
- ## Dataset Structure
50
-
51
- ### Data Instances
52
-
53
- [More Information Needed]
54
-
55
- ### Data Fields
56
-
57
- [More Information Needed]
58
-
59
- ### Data Splits
60
-
61
- [More Information Needed]
62
-
63
- ## Dataset Creation
64
-
65
- ### Curation Rationale
66
-
67
- [More Information Needed]
68
-
69
- ### Source Data
70
-
71
- #### Initial Data Collection and Normalization
72
-
73
- [More Information Needed]
74
-
75
- #### Who are the source language producers?
76
-
77
- [More Information Needed]
78
-
79
- ### Annotations
80
-
81
- #### Annotation process
82
-
83
- [More Information Needed]
84
-
85
- #### Who are the annotators?
86
-
87
- [More Information Needed]
88
-
89
- ### Personal and Sensitive Information
90
-
91
- [More Information Needed]
92
-
93
- ## Considerations for Using the Data
94
-
95
- ### Social Impact of Dataset
96
-
97
- [More Information Needed]
98
-
99
- ### Discussion of Biases
100
-
101
- [More Information Needed]
102
-
103
- ### Other Known Limitations
104
-
105
- [More Information Needed]
106
-
107
- ## Additional Information
108
-
109
- ### Dataset Curators
110
-
111
- [More Information Needed]
112
-
113
- ### Licensing Information
114
-
115
- license: cc0-1.0
116
-
117
- ### Citation Information
118
- ```
119
- @book{book,
120
- author = {Misra, Rishabh and Grover, Jigyasa},
121
- year = {2021},
122
- month = {01},
123
- pages = {},
124
- title = {Sculpting Data for ML: The first act of Machine Learning},
125
- isbn = {978-0-578-83125-1}
126
- }
127
-
128
- @dataset{dataset,
129
- author = {Misra, Rishabh},
130
- year = {2018},
131
- month = {06},
132
- pages = {},
133
- title = {News Category Dataset},
134
- doi = {10.13140/RG.2.2.20331.18729}
135
- }
136
- ```
137
-
138
- ### Contributions
139
-
140
- Thanks to [@github-username](https://github.com/<github-username>) for adding this dataset.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
News_Category_Dataset_v2.json → default/huff_post-test.parquet RENAMED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:fc5d8d34bd4ba55206cd715aa5fdf6d52b6e5e8e32fcac8684d941a9c5cbef95
3
- size 83917554
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f9250727bc8f83285ab248c94550ce1bb5b3571c8757463b48f5a7c4c55c2088
3
+ size 38886538