added dataset version requirement
Browse files
README.md
CHANGED
@@ -81,9 +81,17 @@ Books Dataset:
|
|
81 |
```
|
82 |
|
83 |
# Usage
|
|
|
84 |
```
|
85 |
from datasets import load_dataset
|
86 |
|
87 |
book_data = load_dataset("ubaada/booksum-complete-cleaned", "books")
|
88 |
chapter_data = load_dataset("ubaada/booksum-complete-cleaned", "chapters")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
89 |
```
|
|
|
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 |
+
# Example: Print the summary of the 1st book
|
96 |
+
print(book_data["train"][0]['summary'][0]['text'])
|
97 |
```
|