tau / tavbert-he

huggingface.co
Total runs: 60
24-hour runs: 0
7-day runs: 0
30-day runs: 0
Model's Last Updated: February 09 2022
fill-mask

Introduction of tavbert-he

Model Details of tavbert-he

TavBERT base model

A Hebrew BERT-style masked language model operating over characters, pre-trained by masking spans of characters, similarly to SpanBERT (Joshi et al., 2020).

How to use
import numpy as np
import torch
from transformers import AutoModelForMaskedLM, AutoTokenizer

model = AutoModelForMaskedLM.from_pretrained("tau/tavbert-he")
tokenizer = AutoTokenizer.from_pretrained("tau/tavbert-he")

def mask_sentence(sent, span_len=5):
    start_pos = np.random.randint(0, len(sent) - span_len)
    masked_sent = sent[:start_pos] + '[MASK]' * span_len + sent[start_pos + span_len:]
    print("Masked sentence:", masked_sent)
    output = model(**tokenizer.encode_plus(masked_sent, 
                                           return_tensors='pt'))['logits'][0][1:-1]
    preds = [int(x) for x in torch.argmax(torch.softmax(output, axis=1), axis=1)[start_pos:start_pos + span_len]]
    pred_sent = sent[:start_pos] + ''.join(tokenizer.convert_ids_to_tokens(preds)) + sent[start_pos + span_len:]
    print("Model's prediction:", pred_sent)
Training data

OSCAR (Ortiz, 2019) Hebrew section (10 GB text, 20 million sentences).

Runs of tau tavbert-he on huggingface.co

60
Total runs
0
24-hour runs
0
3-day runs
0
7-day runs
0
30-day runs

More Information About tavbert-he huggingface.co Model

tavbert-he huggingface.co

tavbert-he huggingface.co is an AI model on huggingface.co that provides tavbert-he's model effect (), which can be used instantly with this tau tavbert-he model. huggingface.co supports a free trial of the tavbert-he model, and also provides paid use of the tavbert-he. Support call tavbert-he model through api, including Node.js, Python, http.

tavbert-he huggingface.co Url

https://huggingface.co/tau/tavbert-he

tau tavbert-he online free

tavbert-he huggingface.co is an online trial and call api platform, which integrates tavbert-he's modeling effects, including api services, and provides a free online trial of tavbert-he, you can try tavbert-he online for free by clicking the link below.

tau tavbert-he online free url in huggingface.co:

https://huggingface.co/tau/tavbert-he

tavbert-he install

tavbert-he is an open source model from GitHub that offers a free installation service, and any user can find tavbert-he on GitHub to install. At the same time, huggingface.co provides the effect of tavbert-he install, users can directly use tavbert-he installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

tavbert-he install url in huggingface.co:

https://huggingface.co/tau/tavbert-he

Url of tavbert-he

tavbert-he huggingface.co Url

Provider of tavbert-he huggingface.co

tau
ORGANIZATIONS

Other API from tau

huggingface.co

Total runs: 28.8K
Run Growth: 27.0K
Growth Rate: 93.85%
Updated:August 17 2021
huggingface.co

Total runs: 548
Run Growth: 400
Growth Rate: 72.99%
Updated:August 10 2022
huggingface.co

Total runs: 17
Run Growth: 10
Growth Rate: 58.82%
Updated:August 17 2021
huggingface.co

Total runs: 6
Run Growth: -10
Growth Rate: -166.67%
Updated:August 10 2022
huggingface.co

Total runs: 5
Run Growth: 0
Growth Rate: 0.00%
Updated:April 09 2022
huggingface.co

Total runs: 4
Run Growth: 0
Growth Rate: 0.00%
Updated:March 07 2022
huggingface.co

Total runs: 3
Run Growth: 0
Growth Rate: 0.00%
Updated:April 09 2022
huggingface.co

Total runs: 3
Run Growth: 0
Growth Rate: 0.00%
Updated:March 14 2022
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:March 07 2022
huggingface.co

Total runs: 0
Run Growth: -7
Growth Rate: 0.00%
Updated:May 08 2022
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:October 21 2021