Downloads · 30 days
18
3% of all-time downloads
newsha/PQuAD
PQuAD is a question answering model from newsha. Use it when the input is a question plus a passage. It is set up for transformers. The card lists the license as mit.
This model is a fine-tuned version of ParsBERT (state-of-the-art Persian language model) for the task of Question Answering.
Downloads · 30 days
18
3% of all-time downloads
All-time downloads
568
Public
Repo size
1.3 GB
Likes
0
Public
Click a slice to open those files.
.bin649 MB · 100%
From the Hugging Face model README
This model is a fine-tuned version of ParsBERT (state-of-the-art Persian language model) for the task of Question Answering.
It was trained on a proprietary Persian QA dataset as part of a BSc thesis at Amirkabir University of Technology.
You can use this model directly with the Hugging Face pipeline:
from transformers import pipeline
# Load the pipeline
qa_pipeline = pipeline("question-answering", model="newsha/PQuAD")
context = "دانشگاه صنعتی امیرکبیر یکی از باسابقهترین دانشگاههای فنی ایران است که در سال ۱۳۳۷ در تهران تأسیس شد."
question = "دانشگاه امیرکبیر در چه سالی تأسیس شد؟"
result = qa_pipeline(question=question, context=context)
print(f"Answer: {result['answer']}")
# Output: ۱۳۳۷