Update README.md
Browse files
README.md
CHANGED
@@ -20,11 +20,11 @@ tokenizer = AutoTokenizer.from_pretrained('HeNLP/LongHeRo')
|
|
20 |
model = AutoModelForMaskedLM.from_pretrained('HeNLP/LongHeRo')
|
21 |
|
22 |
# Tokenization Example:
|
23 |
-
#
|
24 |
-
|
25 |
|
26 |
# Decoding
|
27 |
-
decoded_string = tokenizer.decode(
|
28 |
```
|
29 |
|
30 |
|
|
|
20 |
model = AutoModelForMaskedLM.from_pretrained('HeNLP/LongHeRo')
|
21 |
|
22 |
# Tokenization Example:
|
23 |
+
# Tokenizing
|
24 |
+
tokenized_string = tokenizer('ืฉืืื ืืืืื')
|
25 |
|
26 |
# Decoding
|
27 |
+
decoded_string = tokenizer.decode(tokenized_string ['input_ids'], skip_special_tokens=True)
|
28 |
```
|
29 |
|
30 |
|