tirthadagr8
commited on
Update README.md
Browse files
README.md
CHANGED
@@ -19,14 +19,14 @@ model=AutoModelForCausalLM.from_pretrained('tirthadagr8/Japanese_to_english_gpt2
|
|
19 |
model.cuda()
|
20 |
src_text='γγͺγγ¨γ―ιγ³γγγͺγ'
|
21 |
print(tokenizer.batch_decode(model.generate(tokenizer.encode(f"Translate the following Japanese sentence to English:\n\nJapanese:{src_text}\nEnglish:",return_tensors='pt')[:,:-1].cuda(),max_length=128))[0])
|
22 |
-
|
23 |
OUTPUT:
|
24 |
```
|
25 |
<bos>Translate the following Japanese sentence to English:
|
26 |
|
27 |
Japanese:γγͺγγ¨γ―ιγ³γγγͺγ
|
28 |
English:i don't want to play with you.<eos>
|
29 |
-
|
30 |
```bibtex
|
31 |
@ARTICLE{pryzant_jesc_2018,
|
32 |
author = {{Pryzant}, R. and {Chung}, Y. and {Jurafsky}, D. and {Britz}, D.},
|
|
|
19 |
model.cuda()
|
20 |
src_text='γγͺγγ¨γ―ιγ³γγγͺγ'
|
21 |
print(tokenizer.batch_decode(model.generate(tokenizer.encode(f"Translate the following Japanese sentence to English:\n\nJapanese:{src_text}\nEnglish:",return_tensors='pt')[:,:-1].cuda(),max_length=128))[0])
|
22 |
+
```
|
23 |
OUTPUT:
|
24 |
```
|
25 |
<bos>Translate the following Japanese sentence to English:
|
26 |
|
27 |
Japanese:γγͺγγ¨γ―ιγ³γγγͺγ
|
28 |
English:i don't want to play with you.<eos>
|
29 |
+
```
|
30 |
```bibtex
|
31 |
@ARTICLE{pryzant_jesc_2018,
|
32 |
author = {{Pryzant}, R. and {Chung}, Y. and {Jurafsky}, D. and {Britz}, D.},
|