Downloads · 30 days
11
10% of all-time downloads
ytu-ce-cosmos/modernbert-tr-absa-polarity
modernbert-tr-absa-polarity is a text classification model from ytu-ce-cosmos. Use it when you need a label for a piece of text. It is set up for transformers. The card lists the license as apache-2.0.
<p align="center" <img src="assets/logo.webp" width="20%" alt="ModernBERT-TR aspect polarity" / </p <h1 align="center"ModernBERT-TR Aspect Polarity</h1
Downloads · 30 days
11
10% of all-time downloads
All-time downloads
113
Public
Parameters
149M
1.3 GB on disk
Likes
3
Public
Click a slice to open those files.
.onnx748 MB · 56%
From the Hugging Face model README
A 150M-parameter Turkish classifier that receives a sentence and an aspect, then predicts negative, neutral, or positive sentiment toward that aspect.
Our model scores 72.74 +/- 2.10% macro-F1 on the ABSA-TR test set. The released checkpoint scores 72.87%.
The quantized int8 version scores 71.89% on ABSA-TR test set.
from transformers import pipeline
classify = pipeline(
"text-classification",
model="ytu-ce-cosmos/modernbert-tr-absa-polarity",
)
classify({"text": "Kargo hızlıydı ama ürün kötüydü.", "text_pair": "ürün"})
We finetune ytu-ce-cosmos/modernbert-tr-base with mean pooling and a three-label head using translated M-ABSA pairs, 11,470 native Turkish clothing-review rows, and 17,186 usable pairs from teacher-labeled Turkish reviews. We use learning rate 3e-5, batch size 32, 15 epochs, linear warmup and decay, weight decay 0.01, label smoothing 0.1, and five seeds.
Standalone binaries are available in the encoderfile repo.
Apache-2.0.