Datasets:

Modalities:
Text
Languages:
English
Size:
< 1K
Libraries:
Datasets
License:
parquet-converter commited on
Commit
a6ae557
1 Parent(s): 24b7cc1

Update parquet files

Browse files
.gitattributes DELETED
@@ -1,37 +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
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
README.md DELETED
@@ -1,162 +0,0 @@
1
- ---
2
- annotations_creators:
3
- - no-annotation
4
- paperswithcode_id: null
5
- language:
6
- - en
7
- language_creators:
8
- - found
9
- license:
10
- - cc-by-sa-3.0
11
- multilinguality:
12
- - monolingual
13
- pretty_name: Lampeter Corpus
14
- size_categories:
15
- - n<1K
16
- source_datasets:
17
- - original
18
- task_categories:
19
- - text-classification
20
- task_ids:
21
- - multi-label-classification
22
- - multi-class-classification
23
- ---
24
- # Dataset Card for lampeter_corpus
25
-
26
- ## Table of Contents
27
- - [Dataset Description](#dataset-description)
28
- - [Dataset Summary](#dataset-summary)
29
- - [Supported Tasks](#supported-tasks-and-leaderboards)
30
- - [Languages](#languages)
31
- - [Dataset Structure](#dataset-structure)
32
- - [Data Instances](#data-instances)
33
- - [Data Fields](#data-instances)
34
- - [Data Splits](#data-instances)
35
- - [Dataset Creation](#dataset-creation)
36
- - [Curation Rationale](#curation-rationale)
37
- - [Source Data](#source-data)
38
- - [Annotations](#annotations)
39
- - [Personal and Sensitive Information](#personal-and-sensitive-information)
40
- - [Considerations for Using the Data](#considerations-for-using-the-data)
41
- - [Social Impact of Dataset](#social-impact-of-dataset)
42
- - [Discussion of Biases](#discussion-of-biases)
43
- - [Other Known Limitations](#other-known-limitations)
44
- - [Additional Information](#additional-information)
45
- - [Dataset Curators](#dataset-curators)
46
- - [Licensing Information](#licensing-information)
47
- - [Citation Information](#citation-information)
48
-
49
- ## Dataset Description
50
-
51
- - **Homepage:** https://ota.bodleian.ox.ac.uk/repository/xmlui/handle/20.500.12024/3193
52
- - **Repository:** [Needs More Information]
53
- - **Paper:** [Needs More Information]
54
- - **Leaderboard:** [Needs More Information]
55
- - **Point of Contact:** Josef Schmied, Claudia Claridge, Rainer Siemund
56
-
57
- ### Dataset Summary
58
-
59
- The Lampeter Corpus of Early Modern English Tracts is a collection of texts on various subject matter published between 1640 and 1740,  a time that was marked by the rise of mass publication, the development of public discourse in many areas of everyday life and last but not least, the standardisation of British English. Each text belongs to one of the following genres: Law, Economy, Religion, Politics, Science, Miscellaneous
60
-
61
- ### Supported Tasks and Leaderboards
62
-
63
- - `text-classification`: This dataset comes with dates and genre classifications for each text which can be used to finetune a model for text classification.
64
-
65
- ### Languages
66
-
67
- The text in the dataset is British English. The associated BCP-47 code is `en-GB`
68
-
69
- ## Dataset Structure
70
-
71
- ### Data Instances
72
-
73
- A typical data point contains an id, a text, the head of the text (which can be missing on some occasions) and the title. The two features which can be used for classification are `date`, which is the year of publication and `genre` which classifies the text into one of six broad areas.
74
- ```
75
- {
76
- 'id': 'SciB1735',
77
- 'text': '\nI. WHEN I read your Defence of the British Mathematicians, I could not, Sir, but admire your Courage in asserting with such undoubting Assurance things so easily disproved. This to me seemed unaccountable, till I reflected on what you say (p. 32.) when upon my having appealed to every thinking Reader, whether it be possible to frame any clear Conception of Fluxions, you express yourself in the following manner, "Pray, Sir, who are those thinking Readers you ap\npeal to? Are they Geometricians, or Persons wholly ignorant of Geometry? If the former, I leave it to them: If the latter, I ask how well are they qualified to judge of the Method of Fluxions"? It must be acknowledged you seem by this Dilemma secure in the favour of one Part of your Readers, and the ignorance of the other. I am nevertheless persuaded there are fair and candid Men among the Mathematicians. And for those who are not Mathematicians, I shall endeavour so to unveil this Mystery, [TRUNCATED]',
78
- 'date': '1735',
79
- 'genre': 'Science', '
80
- head': 'A DEFENCE OF FREE-THINKING IN Mathematics; &c.\n',
81
- 'title': 'A defence of free-thinking in mathematics [...]'
82
- }
83
- ```
84
-
85
- ### Data Fields
86
-
87
- The dataset contains the following fields:
88
-
89
- - `id`: Unique identifier("string"),
90
- - `text`: ext in the document("string"),
91
- - `date`: Date of publication("date64"),
92
- - `genre`: Broad classification("string"),
93
- - `head`: Often same as title. Can be missing("string"),
94
- - `title`: Title of document("string")
95
-
96
-
97
- ### Data Splits
98
-
99
- Train: 120
100
-
101
- ## Dataset Creation
102
-
103
- ### Curation Rationale
104
-
105
- The period covered by the Lampeter Corpus, 1640 to 1740, marks a crucial period in English history and the elaboration of English as a multi-purpose language. The texts selected for the corpus reflect the standardisation process of English and historical developments between the outbreak of the Civil War and the beginning of the Industrial Revolution. To meet the needs of linguists and historians alike, the Lampeter project has attempted to create a balanced corpus rather than a randomly chosen archive or collection. A balanced corpus, then, is characterised by several transparent sampling criteria.
106
-
107
- ### Source Data
108
-
109
- #### Initial Data Collection and Normalization
110
-
111
- The original data is selected according to the following criteria:
112
- - Complete texts only, including dedications, prefaces, postscripts, etc.
113
- - Texts are of varying length, ranging from c. 3,000 to c. 20,000 words.
114
- - Each author appears only once to avoid idiosyncratic language use.
115
- - Major literary figures of the time were excluded since their writing style can be studied in other, existing collections.
116
- - Generally, only first editions of the texts; later editions only if changes were made by the original authors, thus ensuring the authenticity of the language.
117
-
118
- #### Who are the source language producers?
119
-
120
- Authors of texts between 1640-1740
121
-
122
- ### Annotations
123
-
124
- #### Annotation process
125
-
126
- N/A
127
-
128
- #### Who are the annotators?
129
-
130
- N/A
131
-
132
- ### Personal and Sensitive Information
133
-
134
- N/A
135
-
136
- ## Considerations for Using the Data
137
-
138
- ### Social Impact of Dataset
139
-
140
- N/A
141
-
142
- ### Discussion of Biases
143
-
144
- The social biases of the time in terms of race, sex, gender, etc. might be encountered in this dataset
145
-
146
- ### Other Known Limitations
147
-
148
- None
149
-
150
- ## Additional Information
151
-
152
- ### Dataset Curators
153
-
154
- Josef Schmied, Claudia Claridge, Rainer Siemund
155
-
156
- ### Licensing Information
157
-
158
- Creative Commons Attribution-ShareAlike 3.0 Unported (CC BY-SA 3.0)
159
-
160
- ### Citation Information
161
-
162
- University of Oxford, The Lampeter Corpus of Early Modern English Tracts, Oxford Text Archive, http://hdl.handle.net/20.500.12024/3193.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
default/lampeter_corpus-train.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:addecdc861345eb560dd9f153880b18c7d3c9a3d0ef82eb687d884cb5a44ac92
3
+ size 3061715
lampeter_corpus.py DELETED
@@ -1,119 +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
- """The Lampeter Corpus of Early Modern English Tracts is a collection of texts
16
- on various subject matter published between 1640 and 1740 – a time that is marked
17
- by the rise of mass publication, the development of a public discourse in many
18
- areas of everyday life and, last but not least, the standardisation of British English."""
19
-
20
- from bs4 import BeautifulSoup
21
- import datasets
22
- from datetime import datetime
23
-
24
- _CITATION = """ @misc{20.500.12024/3193,
25
- title = {The Lampeter Corpus of Early Modern English Tracts},
26
- url = {http://hdl.handle.net/20.500.12024/3193},
27
- note = {Oxford Text Archive},
28
- copyright = {Distributed by the University of Oxford under a Creative Commons Attribution-{ShareAlike} 3.0 Unported License},
29
- """
30
-
31
- _DESCRIPTION = """The Lampeter Corpus of Early Modern English Tracts is a collection of texts on
32
- various subject matter published between 1640 and 1740 – a time that is marked by the rise of mass
33
- publication, the development of a public discourse in many areas of everyday life
34
- and, last but not least, the standardisation of British English.
35
- """
36
-
37
- _HOMEPAGE = "https://ota.bodleian.ox.ac.uk/repository/xmlui/handle/20.500.12024/3193"
38
-
39
- _LICENSE = "Creative Commons Attribution-ShareAlike 3.0 Unported (CC BY-SA 3.0)"
40
-
41
- _URL = "https://ota.bodleian.ox.ac.uk/repository/xmlui/bitstream/handle/20.500.12024/3193/3193.xml?sequence=9&isAllowed=y"
42
-
43
- _CLASS_MAP = {
44
- "L": "Law",
45
- "E": "Economy",
46
- "M": "Miscellaneous",
47
- "P": "Politics",
48
- "S": "Science",
49
- "R": "Religion",
50
- }
51
-
52
-
53
- class LampeterCorpus(datasets.GeneratorBasedBuilder):
54
- """ The Lampeter Corpus of Early Modern English Tracts is a collection of texts on
55
- various subject matter published between 1640 and 1740. Each text is associated with a year
56
- and one of the following topics: Law, Economy, Religion, Poitics, Science, Miscellaneous
57
- """
58
-
59
- VERSION = datasets.Version("1.0.0")
60
-
61
- def _info(self):
62
- features = datasets.Features(
63
- {
64
- "id": datasets.Value("string"),
65
- "text": datasets.Value("string"),
66
- "date": datasets.Value("date64"),
67
- "genre": datasets.Value("string"),
68
- "head": datasets.Value("string"),
69
- "title": datasets.Value("string"),
70
- }
71
- )
72
- return datasets.DatasetInfo(
73
- description=_DESCRIPTION,
74
- features=features,
75
- homepage=_HOMEPAGE,
76
- license=_LICENSE,
77
- citation=_CITATION,
78
- )
79
-
80
- def _split_generators(self, dl_manager):
81
- data_file = dl_manager.download(_URL)
82
- return [
83
- datasets.SplitGenerator(
84
- name=datasets.Split.TRAIN,
85
- gen_kwargs={"filepath": data_file, "split": "train",},
86
- ),
87
- ]
88
-
89
- def _generate_examples(self, filepath, split):
90
- dt_format = "%Y"
91
- with open(filepath, encoding="utf-8") as f:
92
- soup = BeautifulSoup(f, features="xml")
93
- for entry in soup.find_all("TEI"):
94
- text_parts = []
95
- title_with_id = entry.teiHeader.fileDesc.titleStmt.title.text
96
- id, title = title_with_id.split(":", maxsplit=1)
97
- id = id.strip()
98
- title = title.strip()
99
- date = datetime.strptime(id[-4:], dt_format)
100
- content = entry.find("text")
101
- head = content.find("body").find("head")
102
- if head:
103
- head = head.text
104
- else:
105
- head = ""
106
- body_parts = content.find("body").find_all("p")
107
- for body_part in body_parts:
108
- text_parts.append(body_part.text)
109
- full_text = " ".join(text_parts)
110
- genre = _CLASS_MAP[id[0]]
111
- data_point = {
112
- "id": id,
113
- "text": full_text,
114
- "genre": genre,
115
- "date": date,
116
- "head": head,
117
- "title": title,
118
- }
119
- yield id, data_point