Update README.md
Browse files
README.md
CHANGED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
```
|
2 |
+
from transformers import AutoTokenizer
|
3 |
+
|
4 |
+
tokenizer = AutoTokenizer.from_pretrained("israel/AmhWordPieceTokenizer")
|
5 |
+
|
6 |
+
ecoding = tokenizer.encode("ኮሌጁ ቢያስተምርም ወደስራ የሚመድባቸው መንግስት ነው abcs")
|
7 |
+
|
8 |
+
encoding.tokens
|
9 |
+
|
10 |
+
```
|