fix readme
Browse files
README.md
CHANGED
@@ -21,7 +21,7 @@ The model can perform direct translation between any pair of Russian, Chinese or
|
|
21 |
Example translate Russian to Chinese
|
22 |
|
23 |
```python
|
24 |
-
from transformers import T5ForConditionalGeneration,
|
25 |
|
26 |
model_name = 'utrobinmv/t5_translate_en_ru_zh_small_1024'
|
27 |
model = T5ForConditionalGeneration.from_pretrained(model_name)
|
@@ -45,7 +45,7 @@ print(result)
|
|
45 |
and Example translate Chinese to Russian
|
46 |
|
47 |
```python
|
48 |
-
from transformers import T5ForConditionalGeneration,
|
49 |
|
50 |
model_name = 'utrobinmv/t5_translate_en_ru_zh_small_1024'
|
51 |
model = T5ForConditionalGeneration.from_pretrained(model_name)
|
|
|
21 |
Example translate Russian to Chinese
|
22 |
|
23 |
```python
|
24 |
+
from transformers import T5ForConditionalGeneration, T5Tokenizer
|
25 |
|
26 |
model_name = 'utrobinmv/t5_translate_en_ru_zh_small_1024'
|
27 |
model = T5ForConditionalGeneration.from_pretrained(model_name)
|
|
|
45 |
and Example translate Chinese to Russian
|
46 |
|
47 |
```python
|
48 |
+
from transformers import T5ForConditionalGeneration, T5Tokenizer
|
49 |
|
50 |
model_name = 'utrobinmv/t5_translate_en_ru_zh_small_1024'
|
51 |
model = T5ForConditionalGeneration.from_pretrained(model_name)
|