OtoBERT: Identifying Suffixed Verbal Forms in Modern Hebrew Literature
New language model for Hebrew designed specifically for identifying suffixed verbal forms in Modern Hebrew, released
here
.
This is the base model pretrained with the masked-language-modeling objective.
This model was trained with a special tokenizer which combines the bound suffix of an object pronoun into a single unit (e.g.,
ראיתי אותו
becomes one unit), and was trained to predict those items during the mask prediction stage as well. For more details, please check out the paper listed on this page.
Sample usage:
from transformers import AutoModelForMaskedLM, AutoTokenizer
tokenizer = AutoTokenizer.from_pretrained('dicta-il/otobert')
model = AutoModelForMaskedLM.from_pretrained('dicta-il/otobert')
model.eval()
sentence = 'אני לא יכול להגיד לך מתי [MASK] לאחרונה.'# Supposed to be ראיתי אותו
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.convert_ids_to_tokens(top_2))) # should print נפגשנו / ראיתי_אותו
Citation
If you use OtoBERT in your research, please cite
OtoBERT: Identifying Suffixed Verbal Forms in Modern Hebrew Literature
otobert huggingface.co is an AI model on huggingface.co that provides otobert's model effect (), which can be used instantly with this dicta-il otobert model. huggingface.co supports a free trial of the otobert model, and also provides paid use of the otobert. Support call otobert model through api, including Node.js, Python, http.
otobert huggingface.co is an online trial and call api platform, which integrates otobert's modeling effects, including api services, and provides a free online trial of otobert, you can try otobert online for free by clicking the link below.
dicta-il otobert online free url in huggingface.co:
otobert is an open source model from GitHub that offers a free installation service, and any user can find otobert on GitHub to install. At the same time, huggingface.co provides the effect of otobert install, users can directly use otobert installed effect in huggingface.co for debugging and trial. It also supports api for free installation.