Update README.md
Browse files
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 |
-
|
34 |
-
print("".join(
|
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 |
|