/ Модель

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

Контекст
512 токенов
Параметры
162 млн
Архитектура
bert · dense
Библиотека
pysentimiento
Опубликована
27 фев 2023

bertabaporu-pt-hate-speech

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

Модель классифицирует тексты на португальском языке для выявления языка вражды.

530скачиваний за 30 дней5лайковвеса обновлены29 мар 2023

Бенчмарки

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

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

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

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

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

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

Модель pysentimiento/bertabaporu-pt-hate-speech предназначена для выявления языка вражды в текстах на португальском языке. Она создана на основе BERTabaporu — модели RoBERTa, обученной на португалоязычных твитах, и дообучена для классификации текстов. Модель содержит 162,4 млн параметров, использует архитектуру BERT для классификации последовательностей и обрабатывает контекст длиной до 512 токенов.

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

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

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

Ограничения

Модель ориентирована на португальский язык; перенос на другие языки не подтверждён. Лицензия и точность на разных типах текстов в предоставленных источниках не описаны.

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

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

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

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

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

Открыть на Hugging Face

Hate speech detection in Portuguese

Repository: https://github.com/pysentimiento/pysentimiento/

Model trained for hate speech detection in Portuguese. Base model is BERTabaporu, a RoBERTa model trained in Portuguese tweets.

Usage

Use it directly with pysentimiento

from pysentimiento import create_analyzer
analyzer = create_analyzer(task="hate_speech", lang="pt")

analyzer.predict("você tem que matar todos os malditos negros")
# Returns AnalyzerOutput(output=['Racism'], probas={Sexism: 0.027, Body: 0.016, Racism: 0.698, Ideology: 0.025, Homophobia: 0.017})

Citation

If you use this model in your research, please cite pysentimiento and RoBERTuito papers:

@misc{perez2021pysentimiento,
      title={pysentimiento: A Python Toolkit for Sentiment Analysis and SocialNLP tasks},
      author={Juan Manuel Pérez and Juan Carlos Giudici and Franco Luque},
      year={2021},
      eprint={2106.09462},
      archivePrefix={arXiv},
      primaryClass={cs.CL}
}
@misc {pablo_botton_da_costa_2022,
author = { {pablo botton da costa} },
title = { bertabaporu-base-uncased (Revision 1982d0f) },
year = 2022,
url = { https://huggingface.co/pablocosta/bertabaporu-base-uncased },
doi = { 10.57967/hf/0019 },
publisher = { Hugging Face }
}
@inproceedings{fortuna-etal-2019-hierarchically,
    title = "A Hierarchically-Labeled {P}ortuguese Hate Speech Dataset",
    author = "Fortuna, Paula  and
      Rocha da Silva, Jo{\~a}o  and
      Soler-Company, Juan  and
      Wanner, Leo  and
      Nunes, S{\'e}rgio",
    booktitle = "Proceedings of the Third Workshop on Abusive Language Online",
    month = aug,
    year = "2019",
    address = "Florence, Italy",
    publisher = "Association for Computational Linguistics",
    url = "https://aclanthology.org/W19-3510",
    doi = "10.18653/v1/W19-3510",
    pages = "94--104",
    abstract = "Over the past years, the amount of online offensive speech has been growing steadily. To successfully cope with it, machine learning are applied. However, ML-based techniques require sufficiently large annotated datasets. In the last years, different datasets were published, mainly for English. In this paper, we present a new dataset for Portuguese, which has not been in focus so far. The dataset is composed of 5,668 tweets. For its annotation, we defined two different schemes used by annotators with different levels of expertise. Firstly, non-experts annotated the tweets with binary labels ({`}hate{'} vs. {`}no-hate{'}). Secondly, expert annotators classified the tweets following a fine-grained hierarchical multiple label scheme with 81 hate speech categories in total. The inter-annotator agreement varied from category to category, which reflects the insight that some types of hate speech are more subtle than others and that their detection depends on personal perception. This hierarchical annotation scheme is the main contribution of the presented work, as it facilitates the identification of different types of hate speech and their intersections. To demonstrate the usefulness of our dataset, we carried a baseline classification experiment with pre-trained word embeddings and LSTM on the binary classified data, with a state-of-the-art outcome.",
}

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

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

GPU в ailist

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

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

Подбираем GPU…

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

0 моделей