Update README.md
Browse files
README.md
CHANGED
|
@@ -7,7 +7,7 @@ tags: []
|
|
| 7 |
|
| 8 |
This is a model for trainable transliteration from Latin (English but not only) to Russian Cyrillic
|
| 9 |
|
| 10 |
-
How to use
|
| 11 |
|
| 12 |
```
|
| 13 |
import torch
|
|
@@ -24,6 +24,11 @@ with torch.inference_mode():
|
|
| 24 |
print(tokenizer.decode(logits[0].argmax(-1), skip_special_tokens=True))
|
| 25 |
# хэло Уорлд май нэйм из дэвид дэйл энд ёрз из скУорзэнэгжэр
|
| 26 |
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 27 |
|
| 28 |
|
| 29 |
|
|
|
|
| 7 |
|
| 8 |
This is a model for trainable transliteration from Latin (English but not only) to Russian Cyrillic
|
| 9 |
|
| 10 |
+
**How to use:**
|
| 11 |
|
| 12 |
```
|
| 13 |
import torch
|
|
|
|
| 24 |
print(tokenizer.decode(logits[0].argmax(-1), skip_special_tokens=True))
|
| 25 |
# хэло Уорлд май нэйм из дэвид дэйл энд ёрз из скУорзэнэгжэр
|
| 26 |
```
|
| 27 |
+
The argument `spaces` could be from 0 to 4, and it affects the results; a recommended value is 2.
|
| 28 |
+
|
| 29 |
+
**Why use:**
|
| 30 |
+
- Just for fun
|
| 31 |
+
- To augment your training data, if for some reason you want to make it robust to script changes
|
| 32 |
|
| 33 |
|
| 34 |
|