Update README.md
Browse files
README.md
CHANGED
@@ -15,7 +15,14 @@ State-of-the-art RoBERTa language model for Hebrew.
|
|
15 |
from transformers import AutoModelForMaskedLM, AutoTokenizer
|
16 |
|
17 |
tokenizer = AutoTokenizer.from_pretrained('HeNLP/HeRo')
|
18 |
-
model = AutoModelForMaskedLM.from_pretrained('HeNLP/HeRo'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
19 |
```
|
20 |
|
21 |
### Citing
|
|
|
15 |
from transformers import AutoModelForMaskedLM, AutoTokenizer
|
16 |
|
17 |
tokenizer = AutoTokenizer.from_pretrained('HeNLP/HeRo')
|
18 |
+
model = AutoModelForMaskedLM.from_pretrained('HeNLP/HeRo'
|
19 |
+
|
20 |
+
# Tokenization Example:
|
21 |
+
# Encoding and tokenizing
|
22 |
+
encoded_string = tokenizer('ืฉืืื ืืืืื')
|
23 |
+
|
24 |
+
# Decoding
|
25 |
+
decoded_string = tokenizer.decode(encoded_string['input_ids'], skip_special_tokens=True)
|
26 |
```
|
27 |
|
28 |
### Citing
|