File size: 2,851 Bytes
e7764a8
 
 
 
 
 
 
 
 
 
 
 
 
 
85ab365
e7764a8
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
85ab365
e7764a8
85ab365
e7764a8
 
 
85ab365
 
 
 
 
 
 
 
 
 
 
 
e7764a8
 
 
 
85ab365
 
 
 
 
 
 
 
 
 
 
 
 
 
 
e7764a8
 
 
b8ccbbd
 
 
 
 
 
 
 
344d6d9
b8ccbbd
c7b67ef
b8ccbbd
e7764a8
344d6d9
 
 
c7b67ef
 
 
 
 
 
 
 
 
 
344d6d9
 
 
e7764a8
 
 
 
 
 
85ab365
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
---
annotations_creators:
- IsmaelMousa
language:
- en
language_creators:
- expert-generated
license:
- apache-2.0
multilinguality:
- monolingual
paperswithcode_id: bookcorpus
pretty_name: books
size_categories:
- n<1K
source_datasets:
- original
tags:
- books
- categories
- nlp
- adventure
- biographies
- children
- classic
- fantasy
- historical
- mystery
- romance
- science-fiction
task_categories:
- text-generation
- fill-mask
task_ids:
- language-modeling
- masked-language-modeling
---

# Books

The books dataset consists of a diverse collection of books organized into *9* categories, it splitted to `train`, `validation` where the train contains *40* books, and the validation *9* books.

This dataset is cleaned well and designed to support various natural language processing (NLP) tasks, including `text generation` and `masked language modeling`.

## Details

The dataset contains 4 columns:

- title: The tilte of the book.
- author: The author of the book.
- category: The genre/category of the book.
- EN: The whole content of the book, in english. it's very very clean.

Tasks:

- Text Generation
- Fill-Mask
      
## Categories

The dataset is organized into the following categories:

1. Adventure: 5 books.
2. Biographies: 3 books.
3. Children: 4 books.
4. Classic: 7 books.
5. Fantasy: 3 books.
6. Historical: 6 books.
7. Mystery: 7 books.
8. Romance: 5 books.
9. Science-Fiction: 9 books.

## Splits
The dataset is splitted into the following splits:

1. train: 40 books.
2. validation: 9 books, 1 book from each category.

## Usage

The books collection dataset is ideal for training and evaluating models for text generation and language modeling,
it provides a broad range of genres and styles, making it a valuable resource for diverse NLP applications.

And here is an example of usage:

```python
from datasets import load_dataset

books = load_dataset("IsmaelMousa/books", split="train")

print(books["EN"][0][:500])
```


output:
```
CHAPTER I. START IN LIFE


I was born in the year 1632, in the city of York, of a good family,
though not of that country, my father being a foreigner of Bremen, who
settled first at Hull. He got a good estate by merchandise, and leaving
off his trade, lived afterwards at York, from whence he had married my
mother, whose relations were named Robinson, a very good family in that
country, and from whom I was called Robinson Kreutznaer; but, by the
usual corruption of words in England, we are now c
```


## Source

The books in this dataset are sourced from [Project Gutenberg](https://www.gutenberg.org/), an open-source digital library offering a vast collection of literary works.

## License

The rights to the books are reserved by their respective authors. This dataset is provided under the Apache 2.0 license for both personal and commercial use, with proper attribution.