Downloads · 30 days
6
15% of all-time downloads
mertafacan/electra-tr-product-reviews-daft
electra-tr-product-reviews-daft is a machine learning model from mertafacan. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as apache-2.0.
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.
Downloads · 30 days
6
15% of all-time downloads
All-time downloads
41
Public
Parameters
13.7M
165 MB on disk
Likes
0
Public
Click a slice to open those files.
.pt110 MB · 66%
From the Hugging Face model README
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.
incidelen/electra-small-turkish-sentiment-analysis-casedtr)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")
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.
Author: Mert Afacan Email: [email protected]