/ Модель

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

Контекст
512 токенов
Параметры
137 млн
Лицензия
CC0 1.0
Архитектура
electra · dense
Опубликована
31 авг 2023

suicidality

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

Англоязычная модель ELECTRA для классификации текста и выявления высказываний, указывающих на суицидальность.

18 290скачиваний за 30 дней34лайкавеса обновлены7 янв 2024

Бенчмарки

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

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

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

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

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

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

sentinet/suicidality — модель классификации текста на базе архитектуры ELECTRA, дообученная разработчиками репозитория для выявления высказываний, указывающих на суицидальность. Она относит текст к одному из двух классов: несвязанный с суицидальностью или указывающий на неё. Модель содержит 136,7 млн параметров, принимает последовательности длиной до 512 токенов и рассчитана на английский язык.

Модель предназначена для первичного анализа текстовых сообщений и выявления сигналов, требующих внимания человека. В README приведены метрики на валидационной выборке: accuracy 0,939, recall 0,937, precision 0,928 и F1 0,933; состав источников обучающих данных не раскрыт. Предсказания следует рассматривать как вспомогательный сигнал, а не как диагноз или замену человеческой оценке и помощи. Модель распространяется по лицензии CC0 1.0.

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

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

Ограничения

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

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

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

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

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

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

Открыть на Hugging Face

Advanced Suicidality Classifier Model

Introduction

Welcome to the Suicidality Detection AI Model! This project aims to provide a machine learning solution for detecting sequences of words indicative of suicidality in text. By utilizing the ELECTRA architecture and fine-tuning on a diverse dataset, we have created a powerful classification model that can distinguish between suicidal and non-suicidal text expressions.

Labels

The model classifies input text into two labels:

  • LABEL_0: Indicates that the text is non-suicidal.
  • LABEL_1: Indicates that the text is indicative of suicidality.

Training

The model was fine-tuned using the ELECTRA architecture on a carefully curated dataset. Our training process involved cleaning and preprocessing various text sources to create a comprehensive training set. The training results indicate promising performance, with metrics including:

Performance

The model's performance on the validation dataset is as follows:

  • Accuracy: 0.939432
  • Recall: 0.937164
  • Precision: 0.92822
  • F1 Score: 0.932672

These metrics demonstrate the model's ability to accurately classify sequences of text as either indicative of suicidality or non-suicidal.

Data Sources

We collected data from multiple sources to create a rich and diverse training dataset:

The data underwent thorough cleaning and preprocessing before being used for training the model.

How to Use

Installation

To use the model, you need to install the Transformers library:

pip install transformers

Using the Model

You can utilize the model for text classification using the following code snippets:

  1. Using the pipeline approach:
from transformers import pipeline

classifier = pipeline("sentiment-analysis", model="sentinetyd/suicidality")

result = classifier("text to classify")
print(result)
  1. Using the tokenizer and model programmatically:
from transformers import AutoTokenizer, AutoModel

tokenizer = AutoTokenizer.from_pretrained("sentinetyd/suicidality")
model = AutoModel.from_pretrained("sentinetyd/suicidality")

# Perform tokenization and prediction using the tokenizer and model

Ethical Considerations

Suicidality is a sensitive and serious topic. It's important to exercise caution and consider ethical implications when using this model. Predictions made by the model should be handled with care and used to complement human judgment and intervention.

Model Credits

We would like to acknowledge the "gooohjy/suicidal-electra" model available on Hugging Face's model repository. You can find the model at this link. We used this model as a starting point and fine-tuned it to create our specialized suicidality detection model.

Contributions

We welcome contributions and feedback from the community to further improve the model's performance, enhance the dataset, and ensure its responsible deployment.

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

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

GPU в ailist

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

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

Подбираем GPU…

Класс архитектуры
ElectraForSequenceClassification
Ревизия весов
2514fb9

0 моделей