File size: 582 Bytes
6d1bb41 5a859a4 a9b7aa9 0b5495c a9b7aa9 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
---
datasets:
- zedfum/long-summarization-persian
language:
- fa
pipeline_tag: summarization
---
<!-- Provide a quick summary of what the model is/does. -->
Persian Long Text Summarization
This Model Accept 8K Tokens
## ⚡️ Quickstart
```
from transformers import AutoTokenizer
from transformers import pipeline
summarizer = pipeline("summarization", model="zedfum/arman-longformer-8k-finetuned-ensani", tokenizer="zedfum/arman-longformer-8k-finetuned-ensani" , device=0)
text_to_summarize=""
summarizer(text_to_summarize, min_length=5, max_length=512, truncation=True)
```
|