This is a English to Turkish translator t5-base finetuned model on Helsinki-NLP/opus-100
Example Usage
#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!
- Downloads last month
- 69
This model does not have enough activity to be deployed to Inference API (serverless) yet. Increase its social
visibility and check back later, or deploy to Inference Endpoints (dedicated)
instead.
Model tree for suayptalha/Translate-EN-to-TR
Base model
google-t5/t5-base