/ Модель

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

Контекст
130 токенов
Параметры
136 млн
Лицензия
Apache 2.0
Архитектура
roberta · dense
Базовая модель
robertuito-base-uncased
Библиотека
transformers
Опубликована
23 июл 2026

robertuito-cl2-hate-speech

Классификация текстаТекст → label3 профессии

Классификатор RoBERTuito для выявления ненавистнических высказываний в коротких сообщениях на чилийском испанском.

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

Бенчмарки

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

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

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

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

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

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

RoBERTuito fine-tuned на корпусе CL2 — классификатор ненавистнических высказываний в коротких сообщениях на чилийском варианте испанского языка. Модель разработана для выявления высказываний, направленных против женщин, иммигрантов, коренных народов и LGBTQ+ сообщества; на выходе она относит текст к классу «hate» или «non-hate». Архитектура — RoBERTa для классификации последовательностей, около 136,3 млн параметров, максимальная длина контекста — 130 токенов. Базовая модель RoBERTuito предварительно обучена на испанских твитах. Доступны веса в форматах Safetensors и ONNX.

Модель подходит для сортировки очередей модерации и анализа чилийских публикаций в социальных сетях. Для корректной работы требуется нормализация текста как при обучении: упоминания заменяются на @usuario, ссылки — на url, текст приводится к нижнему регистру. В оценке на отложенной выборке CL2 получен F1 0,854. Модель хуже переносится на другие варианты испанского и английский; неявную ненависть распознаёт сложнее, а грубая, но безвредная речь может приводить к ошибкам. Для значимых решений рекомендуется проверка человеком. Лицензия — Apache-2.0.

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

  • фильтрация очереди модерации чилийских публикаций
  • поиск оскорбительных сообщений в чилийском X
  • выявление ненавистнических высказываний против женщин
  • мониторинг публикаций о коренных народах, иммигрантах и LGBTQ+ сообществе

Ограничения

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

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

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

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

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

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

Открыть на Hugging Face

RoBERTuito fine-tuned on CL2 — Hate speech detection in Chilean Spanish

This is a binary hate-speech detector for Chilean Spanish social-media text. It is RoBERTuito (a RoBERTa model pre-trained on 500M Spanish tweets) fine-tuned on CL2, a balanced Chilean Spanish hate-speech corpus. The model outputs hate or non-hate.

It is the deployment model recommended in the paper Hate speech detection in Chilean Spanish and its cross-lingual transferability, where CL2 is shown to be the most effective training resource for Chilean Spanish and RoBERTuito the most competitive model on the Chilean target.

Intended use

  • Detecting hate speech directed at protected groups (women, immigrants, Indigenous peoples, and the LGBTQ+ community) in Chilean Spanish tweets and short social-media messages.
  • Best suited to balanced or pre-filtered inputs (e.g. moderation queues). On a raw, low-prevalence stream, tune the decision threshold and see the paper for the trade-offs.

Usage

The model requires the same text normalisation used at training time (mentions → @usuario, links → url, lowercase). Skipping it degrades results.

import re, torch
from transformers import AutoTokenizer, AutoModelForSequenceClassification

_user = re.compile(r"@\w+"); _url = re.compile(r"https?://\S+|www\.\S+")
def preprocess(t):
    return _url.sub("url", _user.sub("@usuario", str(t))).lower().strip()

name = "mmendoza/robertuito-cl2-hate-speech"
tok = AutoTokenizer.from_pretrained(name)
model = AutoModelForSequenceClassification.from_pretrained(name).eval()

text = "no los soporto, que se vayan de mi pais"
enc = tok(preprocess(text), return_tensors="pt", truncation=True, max_length=128)
with torch.no_grad():
    prob = torch.softmax(model(**enc).logits, -1)[0]
print(model.config.id2label[int(prob.argmax())], f"p(hate)={prob[1]:.3f}")

Labels: {0: "non-hate", 1: "hate"}.

Training data

CL2 — a Chilean Spanish hate-speech corpus of 4,547 tweets collected from the Chilean X (formerly Twitter) network (Jan 2020–Jun 2022), 45.6 % labelled as hate, annotated by three independent annotators (majority vote) within the full conversation thread. It deliberately covers four protected groups: women, immigrants, Native Americans (Indigenous peoples), and the LGBTQ+ community. Available on Zenodo: https://zenodo.org/records/14619078

Training procedure

Fine-tuned on the full CL2 corpus with:

HyperparameterValue
Base modelpysentimiento/robertuito-base-uncased
Epochs5
Batch size32
Learning rate5e-5
Max sequence length128
Weight decay0.01
Warmup ratio0.1
Precisionfp16
Seed42

Evaluation

In-domain (held-out 20 % of CL2, stratified, n = 910):

AccuracyPrecisionRecallF1AUC
0.8640.8330.8770.8540.939

(These figures come from a held-out split; the released weights are trained on the full CL2 corpus for deployment.)

Functional tests (Multilingual HateCheck, Spanish, 27 functionalities): the CL2-trained model reaches the best average accuracy among the compared corpora (0.74), matching the XLM-T reference and surpassing or tying it on 14 of the 27 functionalities. It exhibits low unintended bias across seven demographic groups. See the paper for full transferability, functional, and bias results.

Limitations and biases

  • Scope is Chilean Spanish. The model encodes Chilean localisms and slang; it is not intended as a general or pan-Hispanic hate-speech detector, and transfers less well to other varieties and to English.
  • Trained on keyword/hashtag/account-sampled data, which over-represents explicit hate; implicit or subtly framed hate is harder to detect.
  • The corpus reflects the annotators' local judgement and the four targeted groups; other targets are out of scope.
  • Predictions can err on profanity-heavy but non-hateful colloquial speech and on non-hateful references to protected groups. Use with human review for consequential decisions.

Citation

@article{benoit_hate_chilean_spanish,
  title   = {Hate speech detection in Chilean Spanish and its cross-lingual transferability},
  author  = {Benoit, Domingo and {\~N}anculef, Ricardo and Mendoza, Marcelo},
  journal = {International Journal of Data Science and Analytics (under review)},
  year    = {2026}
}

Please also cite the base model (Pérez et al., RoBERTuito, LREC 2022) and the CL2 corpus (Zenodo 14619078).

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

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

GPU в ailist

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

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

Подбираем GPU…

Класс архитектуры
RobertaForSequenceClassification
Ревизия весов
7005ee9

0 моделей