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