/ Модель

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

Контекст
514 токенов
Параметры
305 млн
Лицензия
MIT
Архитектура
xlm-roberta · dense
Базовая модель
xlm-roberta-base
Библиотека
transformers
Опубликована
21 июн 2026

AlbaSocialXLM-R

Заполнение пропусковТекст → текст3 профессии

XLM-RoBERTa, адаптированная к неформальным албанским текстам из соцсетей для предсказания замаскированных слов и дообучения под классификационные задачи.

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

Бенчмарки

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

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

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

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

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

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

AlbaSocialXLM-R — модель XLM-RoBERTa, разработанная для работы с албанскими текстами из социальных сетей. Она основана на FacebookAI/xlm-roberta-base и продолжительно обучена предсказывать замаскированные токены на корпусе примерно из 400 тысяч албанских комментариев, включая исходные и контролируемые синтетические варианты. Модель содержит 305,2 млн параметров, принимает текст с контекстом до 514 токенов и распространяется в формате safetensors под лицензией MIT.

Это masked language model, а не готовый классификатор. Её можно использовать для предсказания замаскированных слов или дообучать с классификационной головой для анализа тональности, эмоций, позиции, токсичности и диалектных вариантов в комментариях и других неформальных албанских текстах. Модель специально адаптирована к шумному письму, региональным формам и тексту без диакритических знаков.

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

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

  • Предсказание пропущенных слов в албанских комментариях
  • Дообучение классификатора тональности албанских постов
  • Выявление языка вражды и токсичности в албанских комментариях
  • Определение диалектных и региональных вариантов албанского
  • Классификация эмоций, тем и позиции в албанских сообщениях

Ограничения

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

Для каких профессий подходит3

Разделы каталога профессий, в задачах которых используется эта модель

Все профессии

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

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

Открыть на Hugging Face

AlbaSocialXLM-R

AlbaSocialXLM-R is a social-media-adapted XLM-RoBERTa model for Albanian. It is based on FacebookAI/xlm-roberta-base and was further adapted with continued masked language model pretraining on around 400,000 Albanian social-media comments, including original and controlled synthetic social-media variants.

The model is mainly intended as a reusable encoder for Albanian social-media classification tasks, especially when the text is informal, noisy, dialectal, written without diacritics, or shaped by online communication style.

This model was developed for the paper:

A Social-Media-Adapted Masked Language Model for Low-Resource Languages: Multi-Task Applications on Sentiment, Hate Speech, and Dialect Detection

Intended use

AlbaSocialXLM-R is designed for Albanian user-generated text, especially:

  • social-media comments, posts, replies, and short reactions
  • noisy or informal Albanian text
  • Albanian text written without diacritics
  • dialectal or regionally influenced Albanian writing
  • news portal comments, forum-style messages, and chat-like text

It can be fine-tuned for tasks such as sentiment analysis, emotion detection, stance detection, hate speech detection, offensive language detection, toxicity classification, dialect detection, regional variety classification, topic classification, intent classification, public opinion mining, comment moderation research, and other Albanian social-media text mining tasks.

Important note

This is a masked language model, not a ready-made classifier.

For classification tasks, use this checkpoint as the base encoder and fine-tune it with a classification head on your labelled dataset.

How to use: masked-token prediction

from transformers import AutoTokenizer, AutoModelForMaskedLM, pipeline

model_id = "Endrit/AlbaSocialXLM-R"

tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForMaskedLM.from_pretrained(model_id)

fill_mask = pipeline("fill-mask", model=model, tokenizer=tokenizer)

predictions = fill_mask("ky sen nuk osht hiq <mask>")

for item in predictions:
    print(item["token_str"], item["score"])

How to use: fine-tuning for classification

from transformers import AutoTokenizer, AutoModelForSequenceClassification

model_id = "Endrit/AlbaSocialXLM-R"

tokenizer = AutoTokenizer.from_pretrained(model_id)

model = AutoModelForSequenceClassification.from_pretrained(
    model_id,
    num_labels=3,
    ignore_mismatched_sizes=True
)

Example label settings:

# Sentiment classification
id2label = {0: "negative", 1: "neutral", 2: "positive"}

# Hate speech detection
id2label = {0: "non_hate", 1: "hate"}

# Dialect detection
id2label = {0: "AL", 1: "KS", 2: "MK"}

For sentence similarity, retrieval, or semantic search, additional sentence-embedding fine-tuning or post-processing is recommended because raw XLM-R embeddings are not optimized as standalone semantic embeddings.

Training data

The model was adapted on Albanian social-media text from the training partitions of sentiment analysis, hate speech detection, and dialect detection datasets. The adaptation corpus combines original social-media comments with controlled LLM-generated variants.

Validation and test partitions were excluded from the MLM adaptation corpus. The original datasets and raw comments are not included in this repository.

Training procedure

The model was initialized from FacebookAI/xlm-roberta-base and continued with the masked language modelling objective. The tokenizer was kept unchanged from XLM-R.

The released checkpoint corresponds to the Social-original+augmented MLM setting, using original and synthetic Albanian social-media comments for domain adaptation.

Evaluation summary

In the associated paper, social-media adaptation improved performance across three Albanian social-media classification tasks: sentiment analysis, hate speech detection, and dialect detection.

Additional analysis showed that the adapted model better handles informal Albanian tokens, missing diacritics, dialectal forms, compressed expressions, and social-media-specific writing patterns.

Limitations and responsible use

AlbaSocialXLM-R is not a general-purpose Albanian model trained from scratch. It is a continued-pretrained XLM-R model adapted to Albanian social-media text.

Because the adaptation data comes from online language, the model may reflect social-media biases, offensive expressions, political language, regional patterns, and platform-specific writing habits.

The model should not be used as the only basis for decisions affecting people. For hate speech, toxicity, moderation, or other sensitive applications, task-specific evaluation and human oversight are strongly recommended.

License

This model is released under the MIT license.

Citation

If you use this model, please cite the associated paper:

@article{fetahi2026albasocialxlmr,
  title={A Social-Media-Adapted Masked Language Model for Low-Resource Languages: Multi-Task Applications on Sentiment, Hate Speech, and Dialect Detection},
  author={Fetahi, Endrit and Schuster, Sebastian},
  year={2026}
}

Repository

https://huggingface.co/Endrit/AlbaSocialXLM-R

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

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

GPU в ailist

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

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

Подбираем GPU…

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

0 моделей