/ Модель

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

Контекст
96 токенов
Параметры
265 млн
Лицензия
Apache 2.0
Архитектура
bert · dense
Базовая модель
banglish-encoder
Библиотека
transformers
Опубликована
23 авг 2026

banglish-sentiment

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

Классификатор BERT определяет положительную, отрицательную, нейтральную или смешанную тональность коротких комментариев на Banglish.

35скачиваний за 30 дней0лайковвеса обновлены6 сен 2026

Бенчмарки

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

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

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

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

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

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

sifat-febo/banglish-sentiment — классификатор тональности комментариев на Banglish, разработанный автором модели на основе дообученного banglish-encoder. Он относит короткие неформальные комментарии к одному из четырёх классов: положительный, отрицательный, нейтральный или смешанный. Модель предназначена для сортировки отзывов, панелей модерации комментариев и анализа рынка, когда нужно быстро обработать множество сообщений.

Модель построена на архитектуре BERT, содержит 264,8 млн параметров и принимает текст на бенгальском и английском языках, смешанных в неформальной записи Banglish. Контекст ограничен 96 токенами. На отложенной выборке из 1 975 комментариев автор сообщает macro-F1 0,74; класс «смешанный» распознаётся хуже остальных. Лицензия — Apache-2.0.

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

  • сортировка отзывов на Banglish по тональности
  • анализ тональности комментариев в панелях мониторинга
  • подсчёт положительных и отрицательных отзывов о товарах
  • выявление нейтральных вопросов среди комментариев
  • поиск смешанных отзывов с похвалой и жалобой одновременно
  • анализ пользовательских комментариев для исследования рынка

Ограничения

Модель рассчитана на короткие неформальные комментарии и обрезает текст за пределами примерно пятидесяти слов. Она различает только четыре заданных класса, не классифицирует темы, сарказм или язык вражды; смешанная тональность распознаётся слабее остальных.

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

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

Открыть на Hugging Face

Banglish Sentiment

Reads the mood of the comment section.

eta onek sundor hoyeche vai          -> positive
1 minute por por 3g hoia jay         -> negative
gt 10 pro kokon asbe bangladesh e?   -> neutral
app ta valo but dam beshi            -> mixed

Four moods, including the hard one: praise and complaint in the same breath.

 

Banglish e

ki eta? Comment porhe bole dey mood ta ki — bhalo, kharap, emni question, na dui rokom ek shathe. Banglish ei kaj kore, formal Bangla lage na.

ki kaj e lagbe? Review sorting, comment moderation dashboard, market research — jekhane hajar hajar comment porhar time nai.

 

Use it

import torch
from huggingface_hub import hf_hub_download
from safetensors.torch import load_file
from transformers import AutoModel, AutoTokenizer

repo = "sifat-febo/banglish-sentiment"
tok = AutoTokenizer.from_pretrained(repo)
enc = AutoModel.from_pretrained(repo)
head = load_file(hf_hub_download(repo, "head.safetensors"))

def sentiment(text):
    x = tok(text, return_tensors="pt", truncation=True)
    vec = enc(**x).last_hidden_state.mean(dim=1)
    logits = vec @ head["weight"].T + head["bias"]
    return enc.config.id2label[int(logits.argmax())]

The head is a separate small file on purpose: the encoder averages every word before deciding, which the standard one-line pipeline cannot do — these twelve lines are the whole integration.

 

How good

0.74 macro-F1 on 1,975 held-out comments, four-way. Always guessing the commonest answer scores 0.12 on the same ruler. We also read 60 of its answers by hand: the mistakes sit on genuinely blurry lines — a complaint-shaped question, a sarcastic compliment — never a cheerful review called hateful.

 

Built

On banglish-encoder, our MuRIL further pretrained on Banglish. That backbone beat stock MuRIL at this exact task on all five seeded runs — this model is the winning arm. Trained on BnSentMix, ~20k human-labeled code-mixed comments.

 

Limits

Short, informal text — a comment, not an essay (about fifty words, then it truncates). Four fixed moods; it does not detect topics, sarcasm as a category, or hate speech. "mixed" is the hardest class and its weakest.

 

AI Disclosure

The author designed the system, chose the base models, ran all training and measurement on the author's own machine, read the models' output, and chose what to publish and what to withhold. Claude Code (Anthropic) was used as a coding and writing tool under that direction.

 

License

Apache 2.0. Data from BnSentMix (MIT); base model lineage: MuRIL (Google, Apache 2.0).

@misc{banglishsentiment2026,
  author = {Sifat Febo},
  title = {Banglish Sentiment: reads the mood of the comment section},
  year = {2026},
  url = {https://huggingface.co/sifat-febo/banglish-sentiment}
}

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

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

GPU в ailist

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

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

Подбираем GPU…

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

0 моделей