How to use from the
Use from the
Transformers library
# 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="mbshr/urt5-base-finetuned")
# Load model directly
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM

tokenizer = AutoTokenizer.from_pretrained("mbshr/urt5-base-finetuned")
model = AutoModelForSeq2SeqLM.from_pretrained("mbshr/urt5-base-finetuned")
Quick Links

Summarization Model (Type:T5)

Summarization: Extractive and Abstractive

Model Description

  • Model type: urT5 adapted version of mT5
  • Language(s) (NLP): Urdu
  • Finetuned from model: google/mt5-base

Model Sources

Uses

Summarization

Evaluation & Results

Evaluated on https://huggingface.co/mbshr/XSUMUrdu-DW_BBC

  • ROUGE-1 F Score: 40.03 combined, 46.35 BBC Urdu datapoints only and 36.91 DW Urdu datapoints only)
  • BERTScore: 75.1 combined, 77.0 BBC Urdu datapoints only and 74.16 DW Urdu datapoints only

Citation [optional]

https://doi.org/10.48550/arXiv.2310.02790

Contact

Downloads last month
8
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for mbshr/urt5-base-finetuned

Adapters
1 model

Dataset used to train mbshr/urt5-base-finetuned

Space using mbshr/urt5-base-finetuned 1