|
--- |
|
library_name: transformers |
|
pipeline_tag: translation |
|
--- |
|
### How to use |
|
|
|
You can use this model directly with a pipeline: |
|
|
|
|
|
```python |
|
from transformers import AutoTokenizer, pipeline |
|
tokenizer = AutoTokenizer.from_pretrained("shihab17/bengali-bn-to-en") |
|
model = AutoModelForSeq2SeqLM.from_pretrained("shihab17/bengali-bn-to-en") |
|
|
|
sentence = 'ম্যাচ শেষে পুরস্কার বিতরণের মঞ্চে তামিমের মুখে মোস্তাফিজের প্রশংসা শোনা গেল' |
|
|
|
translator = pipeline("translation_en_to_bn", model=model, tokenizer=tokenizer) |
|
output = translator(sentence) |
|
print(output) |
|
``` |