Instructions to use LuigiJoseph/Turkish-to-English-ft with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use LuigiJoseph/Turkish-to-English-ft with Transformers:
# Use a pipeline as a high-level helper # Warning: Pipeline type "translation" is no longer supported in transformers v5. # You must load the model directly (see below) or downgrade to v4.x with: # 'pip install "transformers<5.0.0' from transformers import pipeline pipe = pipeline("translation", model="LuigiJoseph/Turkish-to-English-ft")# Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("LuigiJoseph/Turkish-to-English-ft") model = AutoModelForSeq2SeqLM.from_pretrained("LuigiJoseph/Turkish-to-English-ft") - Notebooks
- Google Colab
- Kaggle
Fine-Tuned Model (Turkish โ English)
This model is a fine-tuned version of ckartal/turkish-to-english-finetuned-model on a custom dataset for translating e-commerce shopping items
Model Details
- Source language: Turkish (
tr) - Target language: English (
en) - Fine-tuned on: Custom dataset for e-commerce translations
- Base model: ckartal/turkish-to-english-finetuned-model
How to Use
You can use this model with the transformers library:
from transformers import AutoModelForSeq2SeqLM, AutoTokenizer
model_name = "LuigiJoseph/Turkish-to-English-ft"
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForSeq2SeqLM.from_pretrained(model_name)
text = "Selam Dรผnya"
inputs = tokenizer.encode(text, return_tensors="pt")
outputs = model.generate(inputs)
translation = tokenizer.decode(outputs[0], skip_special_tokens=True)
print(translation) # English translations
Evaluation Metrics
The performance of the base model and the fine-tuned model was measured using the BLEU metric:
| Model | BLEU Score |
|---|---|
| Base Model ckartal/turkish-to-english-finetuned-model | 23.99 |
| Fine-Tuned Model (this one) | 62.45 |
- Downloads last month
- 2
Model tree for LuigiJoseph/Turkish-to-English-ft
Base model
ckartal/turkish-to-english-finetuned-model