Downloads · 30 days
3
6% of all-time downloads
remox01/opus-mt-tc-big-en-tr
opus-mt-tc-big-en-tr is a translation model from remox01. Use it when you need text moved from one language to another.
This model translates English to Turkish. It is based on Helsinki-NLP/opus-mt-tc-big-en-tr.
Downloads · 30 days
3
6% of all-time downloads
All-time downloads
50
Public
Parameters
235M
471 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors470 MB · 99%
From the Hugging Face model README
This model translates English to Turkish. It is based on Helsinki-NLP/opus-mt-tc-big-en-tr.
This model uses the remox01/xde dataset.
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
tokenizer = AutoTokenizer.from_pretrained("remox01/opus-mt-tc-big-en-tr")
model = AutoModelForSeq2SeqLM.from_pretrained("remox01/opus-mt-tc-big-en-tr")
text = "Hello, how are you?"
inputs = tokenizer(text, return_tensors="pt")
outputs = model.generate(**inputs)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))