Datasets:
Languages:
English
Multilinguality:
monolingual
Size Categories:
10M<n<100M
Language Creators:
found
Annotations Creators:
no-annotation
Source Datasets:
original
ArXiv:
Tags:
License:
Updating the dataset structure and considerations for using the data with information from Bandy and Vincent 2021
#5
by
Yalagach
- opened
README.md
CHANGED
@@ -85,9 +85,29 @@ Books are a rich source of both fine-grained information, how a character, an ob
|
|
85 |
## Dataset Structure
|
86 |
|
87 |
### Data Instances
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
88 |
|
89 |
#### plain_text
|
90 |
|
|
|
|
|
91 |
- **Size of downloaded dataset files:** 1.18 GB
|
92 |
- **Size of the generated dataset:** 4.85 GB
|
93 |
- **Total amount of disk used:** 6.03 GB
|
@@ -101,13 +121,20 @@ An example of 'train' looks as follows.
|
|
101 |
|
102 |
### Data Fields
|
103 |
|
104 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
105 |
|
106 |
#### plain_text
|
107 |
- `text`: a `string` feature.
|
108 |
|
109 |
### Data Splits
|
110 |
-
|
111 |
| name | train |
|
112 |
|----------|-------:|
|
113 |
|plain_text|74004228|
|
@@ -143,18 +170,50 @@ The data fields are the same among all splits.
|
|
143 |
[More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
|
144 |
|
145 |
## Considerations for Using the Data
|
146 |
-
|
|
|
|
|
|
|
147 |
### Social Impact of Dataset
|
148 |
-
|
149 |
-
[More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
|
150 |
|
151 |
### Discussion of Biases
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
152 |
|
153 |
-
[More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
|
154 |
|
155 |
### Other Known Limitations
|
156 |
|
157 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
158 |
|
159 |
## Additional Information
|
160 |
|
|
|
85 |
## Dataset Structure
|
86 |
|
87 |
### Data Instances
|
88 |
+
In the original dataset described by [Zhu and Kiros et al.](https://yknzhu.wixsite.com/mbweb), BookCorpus contained 11,038 books. However, based on the files obtained,
|
89 |
+
there appear to be only 7,185 unique books (excluding romance-all.txtand adventure-all.txt as explained in 2.2.1). Potential duplicates were identified based on file names, which suggested that
|
90 |
+
2,930 books may be duplicated. Using the diff Unix program, it was confirmed that BookCorpus contained duplicate, identical text files for all but five of these books.
|
91 |
+
The five exceptions were manually inspected:
|
92 |
+
* 299560.txt (Third Eye Patch), for which slightly different versions appeared in the “Thriller”
|
93 |
+
and “Science Fiction” genre folders (only 30 lines differed)
|
94 |
+
* 529220.txt (On the Rocks), for which slightly different versions appeared in the “Literature”
|
95 |
+
and “Science Fiction” genre folders (only the title format differed)
|
96 |
+
* Hopeless-1.txt, for which identical versions appeared in the “New Adult” and “Young
|
97 |
+
Adult” genre folders, and a truncated version appeared in the “Romance” folder (containing
|
98 |
+
30% of the full word count)
|
99 |
+
* u4622.txt, for which identical versions appeared in the “Romance” and “Young Adult”
|
100 |
+
genre folders, and a slightly different version appeared in the “Science Fiction” folder (only
|
101 |
+
15 added lines)
|
102 |
+
* u4899.txt, for which a full version appeared in the “Young Adult” folder and a truncated
|
103 |
+
version (containing the first 28 words) appeared in the “Science Fiction” folder
|
104 |
+
|
105 |
+
Combined with the diff results, the manual inspection confirmed that each filename represents one unique book, thus BookCorpus contained at most 7,185 unique books.
|
106 |
|
107 |
#### plain_text
|
108 |
|
109 |
+
|
110 |
+
|
111 |
- **Size of downloaded dataset files:** 1.18 GB
|
112 |
- **Size of the generated dataset:** 4.85 GB
|
113 |
- **Total amount of disk used:** 6.03 GB
|
|
|
121 |
|
122 |
### Data Fields
|
123 |
|
124 |
+
Each book in BookCorpus simply includes the full text from the ebook (often including preamble, copyright text, etc.). However, in research that
|
125 |
+
BookCorpus, authors have applied a range of different encoding schemes that change
|
126 |
+
the definition of an “instance” (e.g. in GPT-N training, text is encoded using byte-pair encoding). The data fields are the same among all splits. There is no label or target
|
127 |
+
associated with each instance (book). The text from each book was originally used for unsupervised training by [Zhu and Kiros et al.](https://yknzhu.wixsite.com/mbweb), and
|
128 |
+
the only label-like attribute is the genre associated with each book, which is provided by Smashwords. No relationships between individual instances (books) are made explicit.
|
129 |
+
Grouped into folders by genre, the data implicitly links books in the same genre. It was found that duplicate books are implicitly linked through identical filenames.
|
130 |
+
However, no other relationships are made explicit, such as books by the same author, books in the same series, books set in the same context, books addressing the same
|
131 |
+
event, and/or books using the same characters.
|
132 |
|
133 |
#### plain_text
|
134 |
- `text`: a `string` feature.
|
135 |
|
136 |
### Data Splits
|
137 |
+
There are no recommended data splits. The authors use all books in the dataset for unsupervised training, with no splits or subsamples.
|
138 |
| name | train |
|
139 |
|----------|-------:|
|
140 |
|plain_text|74004228|
|
|
|
170 |
[More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
|
171 |
|
172 |
## Considerations for Using the Data
|
173 |
+
The composition of BookCorpus or the way it was collected and preprocessed/cleaned/labeled might impact future uses. At the very least, the duplicate books
|
174 |
+
and sampling skews should guide any future uses to curate a subsample of BookCorpus to better serve the task at hand. An analysis of the potential
|
175 |
+
impact of BookCorpus and its use on data subjects has not been conducted. Richard Lea interviewed a handful of authors represented in BookCorpus
|
176 |
+
([Richard Lea](https://www.theguardian.com/books/2016/sep/28/google-swallows-11000-novels-to-improve-ais-conversation)).
|
177 |
### Social Impact of Dataset
|
178 |
+
The dataset contains data that might be considered sensitive. The aforementioned contact information (email addresses) is sensitive personal information.
|
|
|
179 |
|
180 |
### Discussion of Biases
|
181 |
+
BookCorpus contains free books from smashwords.com which are at least 20,000 words long. Based
|
182 |
+
on metrics from [Smashwords](https://blog.smashwords.com/2014/12/smashwords-year-in-review-2014-and.html), 11,038 books (as reported in the original BookCorpus
|
183 |
+
dataset) would have represented approximately 3% of the 336,400 books published on Smashwords as of 2014, while the 7,185 unique books we report would have represented 2%.
|
184 |
+
For reference, as of 2013, the Library of Congress contained 23,592,066 cataloged books ([Audrey Fischer](https://www.loc.gov/item/prn-14-009/library-by-the-numbers-2013/2014-01-23/)).
|
185 |
+
|
186 |
+
|
187 |
+
There are some errors, sources of noise, or redundancies in BookCorpus. While some book
|
188 |
+
files appear to be cleaned of preamble and postscript text, many files still contain this text and
|
189 |
+
various other sources of noise. Of particular concern is that we found many copyright-related
|
190 |
+
sentences, for example:
|
191 |
+
* “if you’re reading this book and did not purchase it, or it was not purchased for your use
|
192 |
+
only, then please return to smashwords.com and purchase your own copy.” (n=788)
|
193 |
+
* “this book remains the copyrighted property of the author, and may not be redistributed to
|
194 |
+
others for commercial or non-commercial purposes...” (n=111)
|
195 |
+
* “although this is a free book, it remains the copyrighted property of the author, and may not
|
196 |
+
be reproduced, copied and distributed for commercial or non-commercial purposes.” (n=109)
|
197 |
+
* “thank you for respecting the author’s work” (n=70)
|
198 |
+
* “no part of this publication may be copied, reproduced in any format, by any means, electronic or otherwise, without prior consent from the copyright owner and publisher of this
|
199 |
+
book” (n=16)
|
200 |
+
|
201 |
+
Note that these sentences represent noise and redundancy. As previously noted, BookCorpus also contains many duplicate books: of the 7,185 unique books in the dataset,
|
202 |
+
2,930 occurred more than once. Most of these (N=2,101) books appeared twice, though many were duplicated multiple times, including some
|
203 |
+
books (N=6) with five copies in BookCorpus. See Table 2.
|
204 |
|
|
|
205 |
|
206 |
### Other Known Limitations
|
207 |
|
208 |
+
There are no export controls or other regulatory restrictions that apply to the dataset or to individual instances. Some information is missing from individual instances (books).
|
209 |
+
98 empty book
|
210 |
+
files were found in the folder downloaded from [Zhu and Kiros et al.](https://yknzhu.wixsite.com/mbweb) Also, while the authors collected
|
211 |
+
books longer than 20,000 words, 655 files were shorter than 20,000 words, and 291 were shorter than 10,000 words, suggesting that many book files were significantly
|
212 |
+
truncated from their original text.
|
213 |
+
|
214 |
+
There were no ethical review processes conducted. [Zhu and Kiros et al.](https://yknzhu.wixsite.com/mbweb) do not mention an Institutional Review Board (IRB) or other ethical review process involved in
|
215 |
+
their original paper. Bandy and Vincent strongly suggest that researchers should use BookCorpus with caution for any task, namely due to potential copyright violations,
|
216 |
+
duplicate books, and sampling skews.
|
217 |
|
218 |
## Additional Information
|
219 |
|