Datasets:
Commit
·
aa1eb70
1
Parent(s):
9bcbd68
Update parquet files
Browse files- .gitattributes +0 -38
- README.md +0 -140
- dataset_infos.json +0 -1
- default/web_archive_classification-train.parquet +3 -0
- web_archive_classification.py +0 -208
.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 |
-
*.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 |
-
*.wasm filter=lfs diff=lfs merge=lfs -text
|
| 25 |
-
*.xz filter=lfs diff=lfs merge=lfs -text
|
| 26 |
-
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 27 |
-
*.zstandard filter=lfs diff=lfs merge=lfs -text
|
| 28 |
-
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 29 |
-
# Audio files - uncompressed
|
| 30 |
-
*.pcm filter=lfs diff=lfs merge=lfs -text
|
| 31 |
-
*.sam filter=lfs diff=lfs merge=lfs -text
|
| 32 |
-
*.raw filter=lfs diff=lfs merge=lfs -text
|
| 33 |
-
# Audio files - compressed
|
| 34 |
-
*.aac filter=lfs diff=lfs merge=lfs -text
|
| 35 |
-
*.flac filter=lfs diff=lfs merge=lfs -text
|
| 36 |
-
*.mp3 filter=lfs diff=lfs merge=lfs -text
|
| 37 |
-
*.ogg filter=lfs diff=lfs merge=lfs -text
|
| 38 |
-
*.wav filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
README.md
DELETED
|
@@ -1,140 +0,0 @@
|
|
| 1 |
-
---
|
| 2 |
-
annotations_creators:
|
| 3 |
-
- expert-generated
|
| 4 |
-
language_creators:
|
| 5 |
-
- expert-generated
|
| 6 |
-
language:
|
| 7 |
-
- en
|
| 8 |
-
license:
|
| 9 |
-
- other
|
| 10 |
-
multilinguality:
|
| 11 |
-
- monolingual
|
| 12 |
-
pretty_name: UK Selective Web Archive Classification Dataset
|
| 13 |
-
size_categories:
|
| 14 |
-
- 10K<n<100K
|
| 15 |
-
source_datasets:
|
| 16 |
-
- original
|
| 17 |
-
task_categories:
|
| 18 |
-
- text-classification
|
| 19 |
-
task_ids:
|
| 20 |
-
- multi-class-classification
|
| 21 |
-
- multi-label-classification
|
| 22 |
-
---
|
| 23 |
-
|
| 24 |
-
# Dataset Card for UK Selective Web Archive Classification Dataset
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
## Table of Contents
|
| 28 |
-
- [Dataset Description](#dataset-description)
|
| 29 |
-
- [Dataset Summary](#dataset-summary)
|
| 30 |
-
- [Supported Tasks](#supported-tasks-and-leaderboards)
|
| 31 |
-
- [Languages](#languages)
|
| 32 |
-
- [Dataset Structure](#dataset-structure)
|
| 33 |
-
- [Data Instances](#data-instances)
|
| 34 |
-
- [Data Fields](#data-instances)
|
| 35 |
-
- [Data Splits](#data-instances)
|
| 36 |
-
- [Dataset Creation](#dataset-creation)
|
| 37 |
-
- [Curation Rationale](#curation-rationale)
|
| 38 |
-
- [Source Data](#source-data)
|
| 39 |
-
- [Annotations](#annotations)
|
| 40 |
-
- [Personal and Sensitive Information](#personal-and-sensitive-information)
|
| 41 |
-
- [Considerations for Using the Data](#considerations-for-using-the-data)
|
| 42 |
-
- [Social Impact of Dataset](#social-impact-of-dataset)
|
| 43 |
-
- [Discussion of Biases](#discussion-of-biases)
|
| 44 |
-
- [Other Known Limitations](#other-known-limitations)
|
| 45 |
-
- [Additional Information](#additional-information)
|
| 46 |
-
- [Dataset Curators](#dataset-curators)
|
| 47 |
-
- [Licensing Information](#licensing-information)
|
| 48 |
-
- [Citation Information](#citation-information)
|
| 49 |
-
|
| 50 |
-
## Dataset Description
|
| 51 |
-
|
| 52 |
-
- **Homepage:** [Needs More Information]
|
| 53 |
-
- **Repository:** [Needs More Information]
|
| 54 |
-
- **Paper:** [Needs More Information]
|
| 55 |
-
- **Leaderboard:** [Needs More Information]
|
| 56 |
-
- **Point of Contact:** [Needs More Information]
|
| 57 |
-
|
| 58 |
-
### Dataset Summary
|
| 59 |
-
|
| 60 |
-
The dataset comprises a manually curated selective archive produced by UKWA which includes the classification of sites into a two-tiered subject hierarchy. In partnership with the Internet Archive and JISC, UKWA had obtained access to the subset of the Internet Archives web collection that relates to the UK. The JISC UK Web Domain Dataset (1996 - 2013) contains all of the resources from the Internet Archive that were hosted on domains ending in .uk, or that are required in order to render those UK pages. UKWA have made this manually-generated classification information available as an open dataset in Tab Separated Values (TSV) format. UKWA is particularly interested in whether high-level metadata like this can be used to train an appropriate automatic classification system so that this manually generated dataset may be used to partially automate the categorisation of the UKWAs larger archives. UKWA expects that an appropriate classifier might require more information about each site in order to produce reliable results, and a future goal is to augment this dataset with further information. Options include: for each site, making the titles of every page on that site available, and for each site, extract a set of keywords that summarise the site, via the full-text index. For more information: http://data.webarchive.org.uk/opendata/ukwa.ds.1/classification/
|
| 61 |
-
|
| 62 |
-
### Supported Tasks and Leaderboards
|
| 63 |
-
|
| 64 |
-
[Needs More Information]
|
| 65 |
-
|
| 66 |
-
### Languages
|
| 67 |
-
|
| 68 |
-
[Needs More Information]
|
| 69 |
-
|
| 70 |
-
## Dataset Structure
|
| 71 |
-
|
| 72 |
-
### Data Instances
|
| 73 |
-
|
| 74 |
-
[Needs More Information]
|
| 75 |
-
|
| 76 |
-
### Data Fields
|
| 77 |
-
|
| 78 |
-
[Needs More Information]
|
| 79 |
-
|
| 80 |
-
### Data Splits
|
| 81 |
-
|
| 82 |
-
[Needs More Information]
|
| 83 |
-
|
| 84 |
-
## Dataset Creation
|
| 85 |
-
|
| 86 |
-
### Curation Rationale
|
| 87 |
-
|
| 88 |
-
[Needs More Information]
|
| 89 |
-
|
| 90 |
-
### Source Data
|
| 91 |
-
|
| 92 |
-
#### Initial Data Collection and Normalization
|
| 93 |
-
|
| 94 |
-
[Needs More Information]
|
| 95 |
-
|
| 96 |
-
#### Who are the source language producers?
|
| 97 |
-
|
| 98 |
-
[Needs More Information]
|
| 99 |
-
|
| 100 |
-
### Annotations
|
| 101 |
-
|
| 102 |
-
#### Annotation process
|
| 103 |
-
|
| 104 |
-
[Needs More Information]
|
| 105 |
-
|
| 106 |
-
#### Who are the annotators?
|
| 107 |
-
|
| 108 |
-
[Needs More Information]
|
| 109 |
-
|
| 110 |
-
### Personal and Sensitive Information
|
| 111 |
-
|
| 112 |
-
[Needs More Information]
|
| 113 |
-
|
| 114 |
-
## Considerations for Using the Data
|
| 115 |
-
|
| 116 |
-
### Social Impact of Dataset
|
| 117 |
-
|
| 118 |
-
[Needs More Information]
|
| 119 |
-
|
| 120 |
-
### Discussion of Biases
|
| 121 |
-
|
| 122 |
-
[Needs More Information]
|
| 123 |
-
|
| 124 |
-
### Other Known Limitations
|
| 125 |
-
|
| 126 |
-
[Needs More Information]
|
| 127 |
-
|
| 128 |
-
## Additional Information
|
| 129 |
-
|
| 130 |
-
### Dataset Curators
|
| 131 |
-
|
| 132 |
-
[Needs More Information]
|
| 133 |
-
|
| 134 |
-
### Licensing Information
|
| 135 |
-
|
| 136 |
-
Creative Commons Public Domain Mark 1.0.
|
| 137 |
-
|
| 138 |
-
### Citation Information
|
| 139 |
-
|
| 140 |
-
[Needs More Information]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
dataset_infos.json
DELETED
|
@@ -1 +0,0 @@
|
|
| 1 |
-
{"default": {"description": " The dataset comprises a manually curated selective archive produced by UKWA which includes the classification of sites into a two-tiered subject hierarchy. \n ", "citation": "TODO\n", "homepage": "https://doi.org/10.5259/ukwa.ds.1/classification/1", "license": "https://creativecommons.org/publicdomain/zero/1.0/", "features": {"primary_category": {"num_classes": 24, "names": ["Arts & Humanities", "Business, Economy & Industry", "Company Web Sites", "Computer Science, Information Technology and Web Technology", "Crime, Criminology, Police and Prisons", "Digital Society", "Education & Research", "Environment", "Government, Law & Politics", "History", "Law and Legal System", "Libraries, Archives and Museums", "Life Sciences", "Literature", "Medicine & Health", "Politics, Political Theory and Political Systems", "Popular Science", "Publishing, Printing and Bookselling", "Religion", "Science & Technology", "Social Problems and Welfare", "Society & Culture", "Sports and Recreation", "Travel & Tourism"], "id": null, "_type": "ClassLabel"}, "secondary_category": {"num_classes": 104, "names": ["Architecture", "Art and Design", "Comedy and Humour", "Dance", "Family History / Genealogy", "Film / Cinema", "Geography", "History", "Languages", "Literature", "Live Art", "Local History", "Music", "News and Contemporary Events", "Oral History in the UK", "Philosophy and Ethics", "Publishing, Printing and Bookselling", "Religion", "TV and Radio", "Theatre", "Agriculture, Fishing, and Forestry", "Banking, Insurance, Accountancy and Financial Economics", "Business Studies and Management Theory", "Company Web Sites", "Credit Crunch", "Economic Development, Enterprise and Aid", "Economics and Economic Theory", "Employment, Unemployment and Labour Economics", "Energy", "Industries", "Marketing and Market Research", "Trade, Commerce, and Globalisation", "Transport and Infrastructure", "Cambridge Network", "Video Games", "Governing the Police", "Blogs", "Dictionaries, Encyclopaedias, and Reference Works", "Further Education", "Higher Education", "Libraries, Archives and Museums", "Library Key Issues", "Lifelong Learning", "Preschool Education", "School Education", "Special Needs Education", "Vocational Education", "Indian Ocean Tsunami December 2004", "Central Government", "Civil Rights, Pressure Groups, and Trade Unions", "Crime, Criminology, Police and Prisons", "Devolved Government", "European Parliament Elections 2009", "Inter-Governmental Agencies", "International Relations, Diplomacy, and Peace", "Law and Legal System", "Local Government", "London Mayoral Election 2008", "Political Parties", "Politics, Political Theory and Political Systems", "Public Inquiries", "Scottish Parliamentary Election - 2007", "Spending Cuts 2010: Impact on Social Welfare", "UK General Election 2005", "Slavery and Abolition in the Caribbean", "Religion, politics and law since 2005", "Evolving role of libraries in the UK", "History of Libraries Collection", "Darwin 200", "19th Century English Literature", "Alternative Medicine / Complementary Medicine", "Conditions and Diseases", "Health Organisations and Services", "Medicines, Treatments and Therapies", "Men's Issues", "Mental Health", "Pandemic Influenza", "Personal Experiences of Illness", "Public Health and Safety", "Women's Issues", "Political Action and Communication", "E-publishing Trends", "Free Church", "Quakers", "Computer Science, Information Technology and Web Technology", "Engineering", "Environment", "Life Sciences", "Mathematics", "Physical Sciences", "Popular Science", "Zoology, Veterinary Science and Animal Health", "Communities", "Digital Society", "Food and Drink", "London Terrorist Attack 7th July 2005", "Queen's Diamond Jubilee, 2012", "Social Problems and Welfare", "Sociology, Anthropology and Population Studies", "Sports and Recreation", "Travel & Tourism", "British Countryside", "Olympic & Paralympic Games 2012", "Cornwall"], "id": null, "_type": "ClassLabel"}, "title": {"dtype": "string", "id": null, "_type": "Value"}, "url": {"dtype": "string", "id": null, "_type": "Value"}}, "post_processed": null, "supervised_keys": null, "task_templates": null, "builder_name": "web_archive_classification_dataset", "config_name": "default", "version": {"version_str": "1.1.0", "description": null, "major": 1, "minor": 1, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 2408869, "num_examples": 26909, "dataset_name": "web_archive_classification_dataset"}}, "download_checksums": {"https://bl.iro.bl.uk/downloads/78e2421a-70ea-426d-8a67-57e4a8b23019?locale=en": {"num_bytes": 3011797, "checksum": "6d61f9ee89e710e07551f32529600ba3520c83bbeb45c50d0ec8ba7c532ac066"}}, "download_size": 3011797, "post_processing_size": null, "dataset_size": 2408869, "size_in_bytes": 5420666}}
|
|
|
|
|
|
default/web_archive_classification-train.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:93dfbca29bda664ee98a006bd522ad930f536561f96aca9c902974e04bede3c1
|
| 3 |
+
size 1142048
|
web_archive_classification.py
DELETED
|
@@ -1,208 +0,0 @@
|
|
| 1 |
-
# Copyright 2022 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 |
-
"""British Library Web Classification Dataset."""
|
| 15 |
-
|
| 16 |
-
import datasets
|
| 17 |
-
import csv
|
| 18 |
-
|
| 19 |
-
_CITATION = """\
|
| 20 |
-
TODO
|
| 21 |
-
"""
|
| 22 |
-
|
| 23 |
-
_DESCRIPTION = """\
|
| 24 |
-
The dataset comprises a manually curated selective archive produced by UKWA which includes the classification of sites into a two-tiered subject hierarchy.
|
| 25 |
-
"""
|
| 26 |
-
_HOMEPAGE = "https://doi.org/10.5259/ukwa.ds.1/classification/1"
|
| 27 |
-
|
| 28 |
-
_LICENSE = "https://creativecommons.org/publicdomain/zero/1.0/"
|
| 29 |
-
|
| 30 |
-
_URL = "https://bl.iro.bl.uk/downloads/78e2421a-70ea-426d-8a67-57e4a8b23019?locale=en"
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
class WebArchiveClassificationDataset(datasets.GeneratorBasedBuilder):
|
| 34 |
-
"""Web Archive Classification Dataset"""
|
| 35 |
-
|
| 36 |
-
VERSION = datasets.Version("1.1.0")
|
| 37 |
-
|
| 38 |
-
def _info(self):
|
| 39 |
-
features = datasets.Features(
|
| 40 |
-
{
|
| 41 |
-
"primary_category": datasets.ClassLabel(
|
| 42 |
-
names=[
|
| 43 |
-
"Arts & Humanities",
|
| 44 |
-
"Business, Economy & Industry",
|
| 45 |
-
"Company Web Sites",
|
| 46 |
-
"Computer Science, Information Technology and Web Technology",
|
| 47 |
-
"Crime, Criminology, Police and Prisons",
|
| 48 |
-
"Digital Society",
|
| 49 |
-
"Education & Research",
|
| 50 |
-
"Environment",
|
| 51 |
-
"Government, Law & Politics",
|
| 52 |
-
"History",
|
| 53 |
-
"Law and Legal System",
|
| 54 |
-
"Libraries, Archives and Museums",
|
| 55 |
-
"Life Sciences",
|
| 56 |
-
"Literature",
|
| 57 |
-
"Medicine & Health",
|
| 58 |
-
"Politics, Political Theory and Political Systems",
|
| 59 |
-
"Popular Science",
|
| 60 |
-
"Publishing, Printing and Bookselling",
|
| 61 |
-
"Religion",
|
| 62 |
-
"Science & Technology",
|
| 63 |
-
"Social Problems and Welfare",
|
| 64 |
-
"Society & Culture",
|
| 65 |
-
"Sports and Recreation",
|
| 66 |
-
"Travel & Tourism",
|
| 67 |
-
]
|
| 68 |
-
),
|
| 69 |
-
"secondary_category": datasets.ClassLabel(
|
| 70 |
-
names=[
|
| 71 |
-
"Architecture",
|
| 72 |
-
"Art and Design",
|
| 73 |
-
"Comedy and Humour",
|
| 74 |
-
"Dance",
|
| 75 |
-
"Family History / Genealogy",
|
| 76 |
-
"Film / Cinema",
|
| 77 |
-
"Geography",
|
| 78 |
-
"History",
|
| 79 |
-
"Languages",
|
| 80 |
-
"Literature",
|
| 81 |
-
"Live Art",
|
| 82 |
-
"Local History",
|
| 83 |
-
"Music",
|
| 84 |
-
"News and Contemporary Events",
|
| 85 |
-
"Oral History in the UK",
|
| 86 |
-
"Philosophy and Ethics",
|
| 87 |
-
"Publishing, Printing and Bookselling",
|
| 88 |
-
"Religion",
|
| 89 |
-
"TV and Radio",
|
| 90 |
-
"Theatre",
|
| 91 |
-
"Agriculture, Fishing, and Forestry",
|
| 92 |
-
"Banking, Insurance, Accountancy and Financial Economics",
|
| 93 |
-
"Business Studies and Management Theory",
|
| 94 |
-
"Company Web Sites",
|
| 95 |
-
"Credit Crunch",
|
| 96 |
-
"Economic Development, Enterprise and Aid",
|
| 97 |
-
"Economics and Economic Theory",
|
| 98 |
-
"Employment, Unemployment and Labour Economics",
|
| 99 |
-
"Energy",
|
| 100 |
-
"Industries",
|
| 101 |
-
"Marketing and Market Research",
|
| 102 |
-
"Trade, Commerce, and Globalisation",
|
| 103 |
-
"Transport and Infrastructure",
|
| 104 |
-
"Cambridge Network",
|
| 105 |
-
"Video Games",
|
| 106 |
-
"Governing the Police",
|
| 107 |
-
"Blogs",
|
| 108 |
-
"Dictionaries, Encyclopaedias, and Reference Works",
|
| 109 |
-
"Further Education",
|
| 110 |
-
"Higher Education",
|
| 111 |
-
"Libraries, Archives and Museums",
|
| 112 |
-
"Library Key Issues",
|
| 113 |
-
"Lifelong Learning",
|
| 114 |
-
"Preschool Education",
|
| 115 |
-
"School Education",
|
| 116 |
-
"Special Needs Education",
|
| 117 |
-
"Vocational Education",
|
| 118 |
-
"Indian Ocean Tsunami December 2004",
|
| 119 |
-
"Central Government",
|
| 120 |
-
"Civil Rights, Pressure Groups, and Trade Unions",
|
| 121 |
-
"Crime, Criminology, Police and Prisons",
|
| 122 |
-
"Devolved Government",
|
| 123 |
-
"European Parliament Elections 2009",
|
| 124 |
-
"Inter-Governmental Agencies",
|
| 125 |
-
"International Relations, Diplomacy, and Peace",
|
| 126 |
-
"Law and Legal System",
|
| 127 |
-
"Local Government",
|
| 128 |
-
"London Mayoral Election 2008",
|
| 129 |
-
"Political Parties",
|
| 130 |
-
"Politics, Political Theory and Political Systems",
|
| 131 |
-
"Public Inquiries",
|
| 132 |
-
"Scottish Parliamentary Election - 2007",
|
| 133 |
-
"Spending Cuts 2010: Impact on Social Welfare",
|
| 134 |
-
"UK General Election 2005",
|
| 135 |
-
"Slavery and Abolition in the Caribbean",
|
| 136 |
-
"Religion, politics and law since 2005",
|
| 137 |
-
"Evolving role of libraries in the UK",
|
| 138 |
-
"History of Libraries Collection",
|
| 139 |
-
"Darwin 200",
|
| 140 |
-
"19th Century English Literature",
|
| 141 |
-
"Alternative Medicine / Complementary Medicine",
|
| 142 |
-
"Conditions and Diseases",
|
| 143 |
-
"Health Organisations and Services",
|
| 144 |
-
"Medicines, Treatments and Therapies",
|
| 145 |
-
"Men's Issues",
|
| 146 |
-
"Mental Health",
|
| 147 |
-
"Pandemic Influenza",
|
| 148 |
-
"Personal Experiences of Illness",
|
| 149 |
-
"Public Health and Safety",
|
| 150 |
-
"Women's Issues",
|
| 151 |
-
"Political Action and Communication",
|
| 152 |
-
"E-publishing Trends",
|
| 153 |
-
"Free Church",
|
| 154 |
-
"Quakers",
|
| 155 |
-
"Computer Science, Information Technology and Web Technology",
|
| 156 |
-
"Engineering",
|
| 157 |
-
"Environment",
|
| 158 |
-
"Life Sciences",
|
| 159 |
-
"Mathematics",
|
| 160 |
-
"Physical Sciences",
|
| 161 |
-
"Popular Science",
|
| 162 |
-
"Zoology, Veterinary Science and Animal Health",
|
| 163 |
-
"Communities",
|
| 164 |
-
"Digital Society",
|
| 165 |
-
"Food and Drink",
|
| 166 |
-
"London Terrorist Attack 7th July 2005",
|
| 167 |
-
"Queen's Diamond Jubilee, 2012",
|
| 168 |
-
"Social Problems and Welfare",
|
| 169 |
-
"Sociology, Anthropology and Population Studies",
|
| 170 |
-
"Sports and Recreation",
|
| 171 |
-
"Travel & Tourism",
|
| 172 |
-
"British Countryside",
|
| 173 |
-
"Olympic & Paralympic Games 2012",
|
| 174 |
-
"Cornwall",
|
| 175 |
-
]
|
| 176 |
-
),
|
| 177 |
-
"title": datasets.Value("string"),
|
| 178 |
-
"url": datasets.Value("string"),
|
| 179 |
-
}
|
| 180 |
-
)
|
| 181 |
-
return datasets.DatasetInfo(
|
| 182 |
-
description=_DESCRIPTION,
|
| 183 |
-
features=features,
|
| 184 |
-
homepage=_HOMEPAGE,
|
| 185 |
-
license=_LICENSE,
|
| 186 |
-
citation=_CITATION,
|
| 187 |
-
)
|
| 188 |
-
|
| 189 |
-
def _split_generators(self, dl_manager):
|
| 190 |
-
|
| 191 |
-
csv_file = dl_manager.download_and_extract(_URL)
|
| 192 |
-
return [
|
| 193 |
-
datasets.SplitGenerator(
|
| 194 |
-
name=datasets.Split.TRAIN,
|
| 195 |
-
gen_kwargs={"csv_file": csv_file},
|
| 196 |
-
),
|
| 197 |
-
]
|
| 198 |
-
|
| 199 |
-
def _generate_examples(self, csv_file):
|
| 200 |
-
with open(csv_file) as f:
|
| 201 |
-
reader = csv.DictReader(f, dialect="excel-tab")
|
| 202 |
-
for id_, row in enumerate(reader):
|
| 203 |
-
yield id_, {
|
| 204 |
-
"primary_category": row["Primary Category"],
|
| 205 |
-
"secondary_category": row["Secondary Category"],
|
| 206 |
-
"title": row["Title"],
|
| 207 |
-
"url": row["URL"],
|
| 208 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|