Downloads · 30 days
23
1% of all-time downloads
sharif-dal/dal-bert
dal-bert is a fill-mask model from sharif-dal. Use it when you need the model to fill a missing word. It is set up for transformers. The card lists the license as apache-2.0.
DAL-BERT: Another pre-trained language model for Persian ---
Downloads · 30 days
23
1% of all-time downloads
All-time downloads
3.3K
Public
Repo size
933 MB
Likes
6
Public
Click a slice to open those files.
.bin466 MB · 100%
From the Hugging Face model README
DAL-BERT is a transformer-based model trained on more than 80 gigabytes of Persian text including both formal and informal (conversational) contexts. The architecture of this model follows the original BERT [Devlin et al.].
from transformers import BertForMaskedLM, BertTokenizer, pipeline
model = BertForMaskedLM.from_pretrained('sharif-dal/dal-bert')
tokenizer = BertTokenizer.from_pretrained('sharif-dal/dal-bert')
fill_sentence = pipeline('fill-mask', model=model, tokenizer=tokenizer)
fill_sentence('اینجا جمله مورد نظر خود را بنویسید و کلمه موردنظر را [MASK] کنید')
The abovementioned model was trained on a bunch of newspapers, news agencies' websites, technology-related sources, people's comments, magazines, literary criticism, and some blogs.
| Training Loss | Epoch | Step |
|---|---|---|
| 2.1855 | 13 | 7649486 |