mirror of
https://github.com/huggingface/transformers.git
synced 2025-07-31 02:02:21 +06:00
Created model card for my extreme summarization model (#5839)
* Created model card for my extreme summarization model * Update model_cards/yuvraj/xSumm/README.md Co-authored-by: Julien Chaumond <chaumond@gmail.com>
This commit is contained in:
parent
abf5c56e9d
commit
d32279438a
26
model_cards/yuvraj/xSumm/README.md
Normal file
26
model_cards/yuvraj/xSumm/README.md
Normal file
@ -0,0 +1,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
|
Loading…
Reference in New Issue
Block a user