Update README.md
Browse files
README.md
CHANGED
@@ -29,8 +29,23 @@ configs:
|
|
29 |
This repository contains the Booksum dataset introduced in the paper [BookSum: A Collection of Datasets for Long-form Narrative Summarization
|
30 |
](https://arxiv.org/abs/2105.08209).
|
31 |
|
32 |
-
This dataset includes both book and chapter summaries from the BookSum dataset (unlike the kmfoda/booksum one which only contains the chapter dataset).
|
33 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
34 |
|
35 |
# Distribution
|
36 |
|
@@ -38,7 +53,7 @@ This dataset includes both book and chapter summaries from the BookSum dataset (
|
|
38 |
|
39 |
## Chapters Dataset
|
40 |
|
41 |
-
| Split | Total Sum. | Missing Sum. | Successfully Processed |
|
42 |
|---------|------------|--------------|------------------------|------|
|
43 |
| Train | 9712 | 178 | 9534 (98.17%) | 5653 |
|
44 |
| Test | 1432 | 0 | 1432 (100.0%) | 950 |
|
@@ -50,7 +65,7 @@ This dataset includes both book and chapter summaries from the BookSum dataset (
|
|
50 |
|
51 |
## Books Dataset
|
52 |
|
53 |
-
| Split | Total Sum. | Missing Sum. | Successfully Processed |
|
54 |
|---------|------------|--------------|------------------------|------|
|
55 |
| Train | 314 | 0 | 314 (100.0%) | 151 |
|
56 |
| Test | 46 | 0 | 46 (100.0%) | 17 |
|
@@ -80,18 +95,3 @@ Books Dataset:
|
|
80 |
...
|
81 |
```
|
82 |
|
83 |
-
# Usage
|
84 |
-
Note: Make sure you have [>2.14.0 version of "datasets" library](https://github.com/huggingface/datasets/releases/tag/2.14.0) installed to load the dataset successfully.
|
85 |
-
```
|
86 |
-
from datasets import load_dataset
|
87 |
-
|
88 |
-
book_data = load_dataset("ubaada/booksum-complete-cleaned", "books")
|
89 |
-
chapter_data = load_dataset("ubaada/booksum-complete-cleaned", "chapters")
|
90 |
-
|
91 |
-
|
92 |
-
# Print the 1st book
|
93 |
-
print(book_data["train"][0]['text'])
|
94 |
-
|
95 |
-
# Print the summary of the 1st book
|
96 |
-
print(book_data["train"][0]['summary'][0]['text'])
|
97 |
-
```
|
|
|
29 |
This repository contains the Booksum dataset introduced in the paper [BookSum: A Collection of Datasets for Long-form Narrative Summarization
|
30 |
](https://arxiv.org/abs/2105.08209).
|
31 |
|
32 |
+
This dataset includes both book and chapter summaries from the BookSum dataset (unlike the kmfoda/booksum one which only contains the chapter dataset). Some mismatched summaries have been corrected. Uneccessary columns has been discarded. Contains minimal text-to-summary rows. As there are multiple summaries for a given text, each row contains an array of summaries.
|
33 |
|
34 |
+
# Usage
|
35 |
+
Note: Make sure you have [>2.14.0 version of "datasets" library](https://github.com/huggingface/datasets/releases/tag/2.14.0) installed to load the dataset successfully.
|
36 |
+
```
|
37 |
+
from datasets import load_dataset
|
38 |
+
|
39 |
+
book_data = load_dataset("ubaada/booksum-complete-cleaned", "books")
|
40 |
+
chapter_data = load_dataset("ubaada/booksum-complete-cleaned", "chapters")
|
41 |
+
|
42 |
+
|
43 |
+
# Print the 1st book
|
44 |
+
print(book_data["train"][0]['text'])
|
45 |
+
|
46 |
+
# Print the summary of the 1st book
|
47 |
+
print(book_data["train"][0]['summary'][0]['text'])
|
48 |
+
```
|
49 |
|
50 |
# Distribution
|
51 |
|
|
|
53 |
|
54 |
## Chapters Dataset
|
55 |
|
56 |
+
| Split | Total Sum. | Missing Sum. | Successfully Processed | Chapters |
|
57 |
|---------|------------|--------------|------------------------|------|
|
58 |
| Train | 9712 | 178 | 9534 (98.17%) | 5653 |
|
59 |
| Test | 1432 | 0 | 1432 (100.0%) | 950 |
|
|
|
65 |
|
66 |
## Books Dataset
|
67 |
|
68 |
+
| Split | Total Sum. | Missing Sum. | Successfully Processed | Books |
|
69 |
|---------|------------|--------------|------------------------|------|
|
70 |
| Train | 314 | 0 | 314 (100.0%) | 151 |
|
71 |
| Test | 46 | 0 | 46 (100.0%) | 17 |
|
|
|
95 |
...
|
96 |
```
|
97 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|