/ Модель

Характеристики

Контекст
512 токенов
Параметры
138 млн
Лицензия
MIT
Архитектура
bert · dense
Базовая модель
bert-base-turkish-cased
Библиотека
transformers
Опубликована
10 июл 2026

berturk-turkish-sentiment

Классификация текстаТекст → label

Дообученная BERTurk-модель определяет отрицательную, нейтральную или положительную тональность турецкого текста.

18скачиваний за 30 дней0лайковвеса обновлены10 июл 2026

Бенчмарки

Как модель справилась с задачами пользователей ailist и что о ней публикуют открытые лидерборды

Публичные оценки

Из открытых лидербордов. Сравнивайте результаты одного теста при одинаковых условиях — отсутствие оценки не значит, что модель хуже.

В подключённых источниках результатов для этой модели пока нет.

Что умеет модель

Описание составлено по карточке модели и метаданным Hugging Face

Модель gmzx/berturk-turkish-sentiment разработана Gamze Nur Aslan и представляет собой дообученный на классификацию последовательностей BERTurk — регистрозависимый BERT-энкодер для турецкого языка. Модель относит текст к одному из трёх классов тональности: отрицательной, нейтральной или положительной. Она содержит 137,8 млн параметров, принимает текстовые последовательности длиной до 512 токенов и доступна в формате safetensors для Transformers.

Модель предназначена для анализа турецких отзывов о товарах и магазинах, обратной связи клиентов и сообщений в социальных сетях. При дообучении использован сбалансированный набор из 30 000 примеров winvoker/turkish-sentiment-analysis-dataset; на валидационной выборке из той же коллекции указана точность 94,2%. Модель распространяется по лицензии MIT.

Качество может снижаться на сарказме, смешанной тональности, сленге, орфографических ошибках, длинных текстах и узкоспециализированной лексике. Большинство ошибок в оценке автора приходится на различение положительной и отрицательной тональности; результаты на других языках и на данных из иных источников не оценивались. Предсказания не следует использовать как единственное основание для медицинских, юридических, кадровых или финансовых решений.

Сценарии применения

  • анализ тональности отзывов о товарах на турецком языке
  • классификация отзывов о магазинах
  • оценка обратной связи клиентов
  • анализ тональности публикаций в социальных сетях
  • автоматическая разметка турецких текстов по тональности

Ограничения

Модель предназначена для турецкого языка; качество на других языках не оценивалось. Возможны ошибки на сарказме, смешанной тональности, сленге, опечатках, длинных текстах и в новых предметных областях; валидационные результаты получены на данных из источников, представленных в обучающей коллекции.

Карточка модели

README от автора на Hugging Face, как он его опубликовал

Открыть на Hugging Face

BERTurk Turkish Sentiment Analysis

This is a Turkish sentiment classification model fine-tuned from dbmdz/bert-base-turkish-cased.

The model classifies Turkish texts into three sentiment categories:

  • Negative
  • Notr
  • Positive

Model Details

  • Developed by: Gamze Nur Aslan
  • Model type: BERT-based sequence classification model
  • Language: Turkish
  • Task: Multiclass sentiment classification
  • Framework: PyTorch and Hugging Face Transformers
  • Fine-tuned from: dbmdz/bert-base-turkish-cased
  • Number of classes: 3

Label Mapping

Label IDLabel
0Negative
1Notr
2Positive

Intended Uses

The model can be used for:

  • Turkish product review analysis
  • Customer feedback classification
  • Social media sentiment analysis
  • Educational and research projects
  • Sentiment-based text analysis applications

Out-of-Scope Uses

The model should not be used as the sole decision-making system for:

  • Medical decisions
  • Legal decisions
  • Recruitment decisions
  • Financial or credit decisions
  • Other high-stakes applications

The model was designed for Turkish texts. Its performance on other languages has not been evaluated.

How to Use

from transformers import pipeline

classifier = pipeline(
    "text-classification",
    model="gmzx/berturk-turkish-sentiment"
)

texts = [
    "Bu ürün gerçekten harika, çok memnun kaldım.",
    "Kargo çok geç geldi ve ürün bozuk çıktı.",
    "Toplantı yarın saat üçte yapılacak."
]

results = classifier(texts)

for text, result in zip(texts, results):
    print(text)
    print(result)

Example output:

Bu ürün gerçekten harika, çok memnun kaldım.
{'label': 'Positive', 'score': 0.99}

Kargo çok geç geldi ve ürün bozuk çıktı.
{'label': 'Negative', 'score': 0.99}

Toplantı yarın saat üçte yapılacak.
{'label': 'Notr', 'score': 0.99}

Training Data

The model was fine-tuned using the winvoker/turkish-sentiment-analysis-dataset.

The original dataset contains Turkish texts collected from several sources:

  • Product reviews
  • Store reviews
  • Wikipedia sentences
  • Tweets
  • HUMIR
  • Random text samples

A balanced subset of 30,000 examples was selected.

ClassNumber of examples
Negative10,000
Notr10,000
Positive10,000

The balanced dataset was split into:

  • Training set: 24,000 examples
  • Validation set: 6,000 examples

Each class contained 8,000 training examples and 2,000 validation examples.

Training Procedure

Preprocessing

The tokenizer associated with dbmdz/bert-base-turkish-cased was used.

The following preprocessing steps were applied:

  • Labels were converted to numerical IDs.
  • Text truncation was enabled.
  • Maximum sequence length was set to 128 tokens.
  • Dynamic padding was applied with DataCollatorWithPadding.
  • The dataset was split using stratified sampling.

Training Hyperparameters

HyperparameterValue
Epochs1
Learning rate2e-5
Training batch size16
Evaluation batch size16
Weight decay0.01
Maximum sequence length128
Evaluation strategyEnd of each epoch
Best-model metricMacro F1
Training environmentGoogle Colab GPU

Evaluation

The model was evaluated on a balanced validation set containing 6,000 examples.

The following metrics were used:

  • Accuracy
  • Macro precision
  • Macro recall
  • Macro F1-score

Macro averaging gives equal importance to the Negative, Notr, and Positive classes.

Overall Results

MetricScore
Validation loss0.1753
Accuracy0.9420
Macro precision0.9420
Macro recall0.9420
Macro F1-score0.9420

Class-Level Results

ClassPrecisionRecallF1-scoreSupport
Negative0.91000.92000.91502,000
Notr0.99500.99850.99682,000
Positive0.92090.90750.91412,000

Confusion Matrix

Actual / PredictedNegativeNotrPositive
Negative18404156
Notr319970
Positive17961815

The model performs especially well on the Notr class. Most errors occur between the Positive and Negative classes.

Limitations and Bias

The model may have difficulty processing:

  • Sarcasm and irony
  • Mixed-sentiment sentences
  • Slang and spelling mistakes
  • Context-dependent expressions
  • Very long texts
  • Domain-specific terminology

For example, a sentence containing both positive and negative expressions may be classified according to whichever sentiment the model considers dominant.

The training dataset combines texts from different sources. Wikipedia sentences are mostly neutral and stylistically different from product reviews and social media texts. The model may therefore learn source-specific writing patterns in addition to sentiment.

The validation examples were selected from the same collection of sources as the training examples. Performance on completely different real-world datasets may be lower than the reported results.

The model may reproduce offensive expressions, biases, or undesirable associations found in its training data.

Ethical Considerations

Model predictions should be reviewed by a human when used in sensitive contexts.

The model should not be considered an objective measure of a person's emotions, opinions, intentions, or personality.

Author

Gamze Nur Aslan

Computer Engineering Student

Interested in artificial intelligence, natural language processing, and machine learning.

Как запустить

На своей GPU в ailist. Цена — по текущим предложениям провайдеров

GPU в ailist

Универсальный рантайм · transformers · text-classification

Можно запустить

Подбираем GPU…

Класс архитектуры
BertForSequenceClassification
Ревизия весов
f44c246

0 моделей