tirthadagr8 commited on
Commit
ef18d1e
Β·
verified Β·
1 Parent(s): 46a0b74

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +2 -2
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.},