Summarization
Transformers
PyTorch
Safetensors
English
led
text2text-generation
summary
longformer
booksum
long-document
long-form
Eval Results (legacy)
Instructions to use pszemraj/led-large-book-summary with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use pszemraj/led-large-book-summary with Transformers:
# Use a pipeline as a high-level helper # Warning: Pipeline type "summarization" is no longer supported in transformers v5. # You must load the model directly (see below) or downgrade to v4.x with: # 'pip install "transformers<5.0.0' from transformers import pipeline pipe = pipeline("summarization", model="pszemraj/led-large-book-summary")# Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("pszemraj/led-large-book-summary") model = AutoModelForSeq2SeqLM.from_pretrained("pszemraj/led-large-book-summary", device_map="auto") - Inference
- Notebooks
- Google Colab
- Kaggle
add booksum abstract
Browse files
README.md
CHANGED
|
@@ -50,8 +50,8 @@ Let's think about a sensible choice of key tokens that a queried token actually
|
|
| 50 |
>>> key_tokens = [] # => currently 'available' token doesn't have anything to attend
|
| 51 |
Nearby tokens should be important because, in a sentence (sequence of words), the current word is highly dependent on neighboring past & future tokens. This intuition is the idea behind the concept of sliding attention."
|
| 52 |
example_title: "bigbird blog intro"
|
| 53 |
-
- text: "
|
| 54 |
-
example_title: "
|
| 55 |
|
| 56 |
inference:
|
| 57 |
parameters:
|
|
|
|
| 50 |
>>> key_tokens = [] # => currently 'available' token doesn't have anything to attend
|
| 51 |
Nearby tokens should be important because, in a sentence (sequence of words), the current word is highly dependent on neighboring past & future tokens. This intuition is the idea behind the concept of sliding attention."
|
| 52 |
example_title: "bigbird blog intro"
|
| 53 |
+
- text: "The majority of available text summarization datasets include short-form source documents that lack long-range causal and temporal dependencies, and often contain strong layout and stylistic biases. While relevant, such datasets will offer limited challenges for future generations of text summarization systems. We address these issues by introducing BookSum, a collection of datasets for long-form narrative summarization. Our dataset covers source documents from the literature domain, such as novels, plays and stories, and includes highly abstractive, human written summaries on three levels of granularity of increasing difficulty: paragraph-, chapter-, and book-level. The domain and structure of our dataset poses a unique set of challenges for summarization systems, which include: processing very long documents, non-trivial causal and temporal dependencies, and rich discourse structures. To facilitate future work, we trained and evaluated multiple extractive and abstractive summarization models as baselines for our dataset."
|
| 54 |
+
example_title: "BookSum Abstract"
|
| 55 |
|
| 56 |
inference:
|
| 57 |
parameters:
|