File size: 784 Bytes
352393c 41ebd54 352393c d021575 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
---
license: apache-2.0
datasets:
- Helsinki-NLP/opus-100
language:
- tr
- en
base_model:
- google-t5/t5-base
pipeline_tag: text2text-generation
library_name: transformers
tags:
- translation
---
This is a English to Turkish translator t5-base finetuned model on Helsinki-NLP/opus-100
Example Usage
```py
#Load the model and tokenizer
plain_text = "Translate to Turkish: " #English text here!
inputs = tokenizer(cipher_text, return_tensors="pt", padding=True, truncation=True, max_length=256).to(device)
outputs = model.generate(inputs["input_ids"], max_length=256)
translated_text = tokenizer.decode(outputs[0], skip_special_tokens=True)
```
License: This model is on Apache-2.0 License. Check licence docs for more!
[☕ Buy Me a Coffee](https://www.buymeacoffee.com/suayptalha) |