KES commited on
Commit
9d94ad3
1 Parent(s): 8874350

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +2 -2
README.md CHANGED
@@ -30,8 +30,8 @@ text = "Dem men doh kno wat dey doing wid d money"
30
  inputs = tokenizer("tec:"+text, truncation=True, return_tensors='pt')
31
 
32
  output = model.generate(inputs['input_ids'], num_beams=4, max_length=512, early_stopping=True)
33
- correction=tokenizer.batch_decode(output, skip_special_tokens=True)
34
- print("".join(correction)) #Correction: These men do not know what they are doing with the money.
35
  ```
36
  ___
37
 
30
  inputs = tokenizer("tec:"+text, truncation=True, return_tensors='pt')
31
 
32
  output = model.generate(inputs['input_ids'], num_beams=4, max_length=512, early_stopping=True)
33
+ translation=tokenizer.batch_decode(output, skip_special_tokens=True)
34
+ print("".join(translation)) #translation: These men do not know what they are doing with the money.
35
  ```
36
  ___
37