/ Модель

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

Контекст
512 токенов
Лицензия
Apache 2.0
Архитектура
distilbert · dense
Опубликована
20 окт 2023

intent_classification

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

Дообученная модель DistilBERT для классификации намерений пользователя в англоязычном тексте.

141скачиваний за 30 дней59лайковвеса обновлены9 дек 2023

Бенчмарки

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

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

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

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

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

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

Falconsai/intent_classification — модель классификации текста на основе DistilBERT, дообученная разработчиком Falconsai для определения намерений пользователя. Она относит текст к категориям намерений, например запросу информации, вопросу или выражению мнения, и предназначена для анализа взаимодействий в чат-ботах, виртуальных помощниках и рекомендательных системах. Модель принимает текст на английском языке и возвращает метку класса; максимальный контекст — 512 токенов.

Доступны веса PyTorch и Safetensors, а также формат Core ML. В README указаны точность 99,87% и оценочная потеря 0,0117, однако обучающий набор был небольшим, менее 50 тысяч примеров, и описан как проприетарный. Модель выпущена по лицензии Apache-2.0.

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

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

Ограничения

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

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

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

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

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

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

Открыть на Hugging Face

Model Card: Fine-Tuned DistilBERT for User Intent Classification

Model Description

The Fine-Tuned DistilBERT is a variant of the BERT transformer model, distilled for efficient performance while maintaining high accuracy. It has been adapted and fine-tuned for the specific task of classifying user intent in text data.

The model, named "distilbert-base-uncased," is pre-trained on a substantial amount of text data, which allows it to capture semantic nuances and contextual information present in natural language text. It has been fine-tuned with meticulous attention to hyperparameter settings, including batch size and learning rate, to ensure optimal model performance for the user intent classification task.

During the fine-tuning process, a batch size of 8 for efficient computation and learning was chosen. Additionally, a learning rate (2e-5) was selected to strike a balance between rapid convergence and steady optimization, ensuring the model not only learns quickly but also steadily refines its capabilities throughout training.

This model has been trained on a rather small dataset of under 50k, 100 epochs, specifically designed for user intent classification. The dataset consists of text samples, each labeled with different user intents, such as "information seeking," "question asking," or "opinion expressing." The diversity within the dataset allowed the model to learn to identify user intent accurately. This dataset was carefully curated from a variety of sources.

The goal of this meticulous training process is to equip the model with the ability to classify user intent in text data effectively, making it ready to contribute to a wide range of applications involving user interaction analysis and personalization.

Intended Uses & Limitations

Intended Uses

  • User Intent Classification: The primary intended use of this model is to classify user intent in text data. It is well-suited for applications that involve understanding user intentions, such as chatbots, virtual assistants, and recommendation systems.

How to Use

To use this model for user intent classification, you can follow these steps:

from transformers import pipeline

classifier = pipeline("text-classification", model="Falconsai/intent_classification")
text = "Your text to classify here."
result = classifier(text)

Limitations

  • Specialized Task Fine-Tuning: While the model excels at user intent classification, its performance may vary when applied to other natural language processing tasks. Users interested in employing this model for different tasks should explore fine-tuned versions available in the model hub for optimal results.

Training Data

The model's training data includes a proprietary dataset designed for user intent classification. This dataset comprises a diverse collection of text samples, categorized into various user intent classes. The training process aimed to equip the model with the ability to classify user intent effectively.

Training Stats

  • Evaluation Loss: 0.011744413524866104
  • Evaluation Accuracy: 0.9986976744186047
  • Evaluation Runtime: 3.1136
  • Evaluation Samples per Second: 1726.29
  • Evaluation Steps per Second: 215.826

Responsible Usage

It is essential to use this model responsibly and ethically, adhering to content guidelines and applicable regulations when implementing it in real-world applications, particularly those involving potentially sensitive content.

References

Disclaimer: The model's performance may be influenced by the quality and representativeness of the data it was fine-tuned on. Users are encouraged to assess the model's suitability for their specific applications and datasets.

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

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

GPU в ailist

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

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

Подбираем GPU…

Класс архитектуры
DistilBertForSequenceClassification
Ревизия весов
630d0d4

0 моделей