ModernBERT-TR aspect extraction

ModernBERT-TR Aspect Extraction

A 150M-parameter Turkish token classifier that extracts opinion targets with O, B-ASP, and I-ASP labels.

Results

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.

Usage

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.

Training

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.

License

Apache-2.0.

Downloads last month
57
Safetensors
Model size
0.1B params
Tensor type
F32
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for ytu-ce-cosmos/modernbert-tr-absa-extraction

Finetuned
(5)
this model
Finetunes
1 model

Dataset used to train ytu-ce-cosmos/modernbert-tr-absa-extraction

Collection including ytu-ce-cosmos/modernbert-tr-absa-extraction