Electra-TR Product Reviews (DAFT)
This is a Domain-Adaptive Fine-Tuned (DAFT) version of a Turkish ELECTRA model, adapted for Turkish product reviews sentiment analysis. The model was fine-tuned on the Turkish Product Reviews dataset.
π Model Details
- Base model:
incidelen/electra-small-turkish-sentiment-analysis-cased - Language: Turkish (
tr) - Task: Sentiment Analysis (binary classification)
- Domain: Product reviews (e-commerce)
- Method: Domain-Adaptive Fine-Tuning (DAFT)
π Usage
from transformers import AutoTokenizer, AutoModelForSequenceClassification
import torch
model_name = "mertafacan/electra-tr-product-reviews-daft"
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForSequenceClassification.from_pretrained(model_name)
text = "ΓrΓΌn beklediΔimden Γ§ok daha kaliteli, tavsiye ederim!"
inputs = tokenizer(text, return_tensors="pt")
outputs = model(**inputs)
pred = torch.argmax(outputs.logits, dim=1).item()
print("Positive" if pred == 1 else "Negative")
β οΈ Disclaimer
This model was fine-tuned as an experimental study and is not a general-purpose solution. Use with caution and consider other models for broader applications.
π¬ Contact
Author: Mert Afacan Email: mert0afacan@gmail.com
- Downloads last month
- -
Inference Providers NEW
This model isn't deployed by any Inference Provider. π Ask for provider support