A BERT model for Masked Language Modeling (MLM). The base BERT model is initialized from https://huggingface.co/HooshvareLab/bert-fa-zwnj-base.

Usage

pip install hezar
from hezar import Model

model = Model.load("hezarai/bert-fa-mlm")
inputs = ["ایشالا از [MASK] شروع میکنم"]
outputs = model.predict(inputs)
print(outputs)
{'filled_texts': ['ایشالا از اینجا شروع میکنم'], 'filled_tokens': ['اینجا']}