File size: 883 Bytes
f67e017
 
 
fe98fd6
 
53464ed
 
 
 
 
 
 
 
bba6ef6
53464ed
 
 
ae11873
 
 
8dc628f
 
ae11873
 
8dc628f
c0ddff5
 
 
 
7216abc
c0ddff5
 
 
 
 
88697e4
c0ddff5
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
---
language:
- he
datasets:
- HeNLP/HeDC4
---

## Hebrew Language Model

State-of-the-art RoBERTa language model for Hebrew.

#### How to use

```python
from transformers import AutoModelForMaskedLM, AutoTokenizer

tokenizer = AutoTokenizer.from_pretrained('HeNLP/HeRo')
model = AutoModelForMaskedLM.from_pretrained('HeNLP/HeRo'

# Tokenization Example:
# Tokenizing
tokenized_string = tokenizer('שלום לכולם')

# Decoding 
decoded_string = tokenizer.decode(tokenized_string ['input_ids'], skip_special_tokens=True)
```

### Citing

If you use HeRo in your research, please cite [HeRo: RoBERTa and Longformer Hebrew Language Models](http://arxiv.org/abs/2304.11077).
```
@article{shalumov2023hero,
      title={HeRo: RoBERTa and Longformer Hebrew Language Models}, 
      author={Vitaly Shalumov and Harel Haskey},
      year={2023},
      journal={arXiv:2304.11077},
}
```