Downloads · 30 days
12
8% of all-time downloads
ytu-ce-cosmos/modernbert-tr-absa-extraction
modernbert-tr-absa-extraction is a token classification model from ytu-ce-cosmos. Use it when you need labels on individual words, such as names. 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 extraction" / </p <h1 align="center"ModernBERT-TR Aspect Extraction</h1
Downloads · 30 days
12
8% of all-time downloads
All-time downloads
154
Public
Parameters
149M
1.3 GB on disk
Likes
5
Public
Click a slice to open those files.
.onnx748 MB · 56%
From the Hugging Face model README
A 150M-parameter Turkish token classifier that extracts opinion targets with O, B-ASP, and I-ASP labels.
Our model scores 64.09 +/- 0.30% exact entity-span F1 on the ABSA-TR test set. The released checkpoint scores 69.46% on the translated M-ABSA Turkish test set.
The quantized int8 version scores 61.30% on ABSA-TR test set.
from transformers import pipeline
extract = pipeline(
"token-classification",
model="ytu-ce-cosmos/modernbert-tr-absa-extraction",
aggregation_strategy="first",
)
extract("Kargo hızlıydı ama ürün kötüydü.")
You can call the tokenizer with is_split_into_words=True to allow the tokenizer to split the sentence into words, and keep the first WordPiece label for each word.
We finetune ytu-ce-cosmos/modernbert-tr-base using about 8.7k translated M-ABSA records and 11,993 teacher-labeled data points. We use learning rate 4e-5, batch size 32, 15 epochs, linear warmup and decay, no weight decay, and first-subword alignment.
Standalone binaries are available in the encoderfile repo.
Apache-2.0.