ParsBERT: Transformer-based Model for Persian Language Understanding
Paper • 2005.12515 • Published
How to use ForutanRad/bert-fa-QA-v1 with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("question-answering", model="ForutanRad/bert-fa-QA-v1") # Load model directly
from transformers import AutoTokenizer, AutoModelForQuestionAnswering
tokenizer = AutoTokenizer.from_pretrained("ForutanRad/bert-fa-QA-v1")
model = AutoModelForQuestionAnswering.from_pretrained("ForutanRad/bert-fa-QA-v1")# Load model directly
from transformers import AutoTokenizer, AutoModelForQuestionAnswering
tokenizer = AutoTokenizer.from_pretrained("ForutanRad/bert-fa-QA-v1")
model = AutoModelForQuestionAnswering.from_pretrained("ForutanRad/bert-fa-QA-v1")Persian Question and answer Model Based on Bert Model
This model is a fine-tuned version of ParsBERT on PersianQA dataset. It achieves the following results on the evaluation set:
More information needed
More information needed
More information needed
The following hyperparameters were used during training:
| Training Loss | Epoch | Step | Validation Loss |
|---|---|---|---|
| 2.2563 | 1.0 | 1126 | 1.7222 |
| 1.3372 | 2.0 | 2252 | 1.7297 |
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("question-answering", model="ForutanRad/bert-fa-QA-v1")