Downloads · 30 days
15
8% of all-time downloads
dicta-il/dictabert-splinter
dictabert-splinter is a machine learning model from dicta-il. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as cc-by-4.0.
DictaBERT-splinter is a BERT-style language model for Hebrew, released here.
Downloads · 30 days
15
8% of all-time downloads
All-time downloads
200
Public
Parameters
184M
738 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors738 MB · 99%
From the Hugging Face model README
DictaBERT-splinter is a BERT-style language model for Hebrew, released here.
This is the base model pretrained with the masked-language-modeling objective.
Sample usage:
from transformers import AutoModelForMaskedLM, AutoTokenizer
tokenizer = AutoTokenizer.from_pretrained('dicta-il/dictabert-splinter', trust_remote_code=True)
model = AutoModelForMaskedLM.from_pretrained('dicta-il/dictabert-splinter')
model.eval()
sentence = 'בשנת 1948 השלים אפרים קישון את [MASK] בפיסול מתכת ובתולדות האמנות והחל לפרסם מאמרים הומוריסטיים'
output = model(tokenizer.encode(sentence, return_tensors='pt'))
# the [MASK] is the 7th token (including [CLS])
import torch
top_2 = torch.topk(output.logits[0, 7, :], 2)[1]
print('\n'.join(tokenizer.batch_decode(top_2))) # should print התמחותו / לימודיו
If you use DictaBERT-splinter in your research, please cite Splintering Nonconcatenative Languages for Better Tokenization
BibTeX:
@misc{gazit2025splinteringnonconcatenativelanguagesbetter,
title={Splintering Nonconcatenative Languages for Better Tokenization},
author={Bar Gazit and Shaltiel Shmidman and Avi Shmidman and Yuval Pinter},
year={2025},
eprint={2503.14433},
archivePrefix={arXiv},
primaryClass={cs.CL},
url={https://arxiv.org/abs/2503.14433},
}
This work is licensed under a Creative Commons Attribution 4.0 International License.