README.md 663 Bytes
Newer Older
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
---
language: "en"
tags:
- summarization
- extreme summarization
---

## Model description

BartForConditionalGenerationModel for extreme summarization- creates a one line abstractive summary of a given article

## How to use

PyTorch model available

```python
from transformers import AutoTokenizer, AutoModelWithLMHead, pipeline

tokenizer = AutoTokenizer.from_pretrained("yuvraj/xSumm")			
model = AutoModelWithLMHead.from_pretrained("yuvraj/xSumm")

xsumm = pipeline('summarization', model=model, tokenizer=tokenizer)
xsumm("<text to be summarized>")

## Limitations and bias
Trained on a small fraction of the xsumm training dataset