|
--- |
|
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) |