Update README.md
Browse files
README.md
CHANGED
|
@@ -62,20 +62,20 @@ This dataset includes both book and chapter summaries from the BookSum dataset (
|
|
| 62 |
# Structure:
|
| 63 |
```
|
| 64 |
Chapters Dataset
|
| 65 |
-
0 - bid (book id)
|
| 66 |
1 - book_title
|
| 67 |
2 - chapter_id
|
| 68 |
3 - text (raw chapter text)
|
| 69 |
-
4 - summary
|
| 70 |
- {source, text (summary), analysis}
|
| 71 |
...
|
| 72 |
5 - is_aggregate (bool) (if true, then the text contains more than one chapter)
|
| 73 |
|
| 74 |
Books Dataset:
|
| 75 |
-
0 - bid (book id)
|
| 76 |
1 - title
|
| 77 |
2 - text (raw text)
|
| 78 |
-
4 - summary
|
| 79 |
- {source, text (summary), analysis}
|
| 80 |
...
|
| 81 |
```
|
|
@@ -92,6 +92,6 @@ chapter_data = load_dataset("ubaada/booksum-complete-cleaned", "chapters")
|
|
| 92 |
# Print the 1st book
|
| 93 |
print(book_data["train"][0]['text'])
|
| 94 |
|
| 95 |
-
#
|
| 96 |
print(book_data["train"][0]['summary'][0]['text'])
|
| 97 |
```
|
|
|
|
| 62 |
# Structure:
|
| 63 |
```
|
| 64 |
Chapters Dataset
|
| 65 |
+
0 - bid (book id)
|
| 66 |
1 - book_title
|
| 67 |
2 - chapter_id
|
| 68 |
3 - text (raw chapter text)
|
| 69 |
+
4 - summary (list of summaries from different sources)
|
| 70 |
- {source, text (summary), analysis}
|
| 71 |
...
|
| 72 |
5 - is_aggregate (bool) (if true, then the text contains more than one chapter)
|
| 73 |
|
| 74 |
Books Dataset:
|
| 75 |
+
0 - bid (book id)
|
| 76 |
1 - title
|
| 77 |
2 - text (raw text)
|
| 78 |
+
4 - summary (list of summaries from different sources)
|
| 79 |
- {source, text (summary), analysis}
|
| 80 |
...
|
| 81 |
```
|
|
|
|
| 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 |
```
|