/ Модель

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

Лицензия
MIT
Библиотека
adaptive-classifier
Опубликована
24 июн 2025

adaptive-sentiment-classifier

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

Классификатор на основе DistilBERT определяет положительную, отрицательную или нейтральную тональность английских текстов.

20скачиваний за 30 дней5лайковвеса обновлены25 июн 2025

Бенчмарки

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

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

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

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

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

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

Adaptive Sentiment Classifier — модель MemChainAI для классификации английских текстов по тональности на положительные, отрицательные и нейтральные. Она основана на DistilBERT и создана с помощью библиотеки adaptive-classifier; обучение проводилось на примерах из набора SetFit/tweet_sentiment_extraction с применением адаптивного и непрерывного обучения.

Модель предназначена для анализа отзывов, сообщений в социальных сетях и пользовательского контента. В карточке особо отмечена обработка технических описаний, вопросов и образовательных текстов как нейтральных. Заявленная точность на тесте составляет 80%; лицензия — MIT.

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

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

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

Ограничения

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

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

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

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

Также подходит для

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

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

Открыть на Hugging Face

Adaptive Sentiment Classifier

An improved sentiment analysis model using the adaptive-classifier library, designed for accurate classification of positive, negative, and neutral sentiments with special focus on technical and informational content.

Model Description

This model is based on the adaptive-classifier library and uses DistilBERT as the underlying transformer. It has been specifically trained to properly classify:

  • Positive sentiment: Expressions of satisfaction, enthusiasm, approval
  • Negative sentiment: Expressions of dissatisfaction, frustration, criticism
  • Neutral sentiment: Factual information, questions, technical descriptions

Key Improvements

  • ✅ Technical Content: Properly classifies technical descriptions as neutral
  • ✅ Questions: Correctly identifies questions as neutral rather than negative
  • ✅ Educational Content: Handles informational text appropriately
  • ✅ Balanced Training: Uses detailed class descriptions for better embeddings

Training Data

  • Primary Dataset: SetFit/tweet_sentiment_extraction (114 examples)
  • Training Method: Adaptive classifier with continual learning
  • Class Distribution: Balanced training with quality filtering
  • Additional Features: Detailed class descriptions for stronger initial embeddings

Performance

  • Test Accuracy: 80.0%
  • Problematic Cases Resolved: 8/10 challenging examples correctly classified
  • Improvement: 100% increase from baseline accuracy

Benchmark Examples

TextExpectedPredicted✓
"Granite Guardian 4 is a type of AI model..."neutralneutral✅
"Do you know what Granite Guardian 4 is?"neutralneutral✅
"Learning is a process of gaining knowledge..."neutralneutral✅
"I love this new technology!"positivepositive✅
"This is terrible and I hate it."negativenegative✅

Usage

Installation

pip install adaptive-classifier

Basic Usage

from adaptive_classifier import AdaptiveClassifier

# Load the model
classifier = AdaptiveClassifier.from_pretrained("MemChainAI/adaptive-sentiment-classifier")

# Make predictions
text = "This is a great product!"
predictions = classifier.predict(text)

# Get top prediction
label, confidence = predictions[0]
print(f"Sentiment: {label} ({confidence:.3f})")

API Integration

This model is designed to work with the MemChain Models API:

import requests

response = requests.post(
    "http://localhost:8033/model/sentiment/predict",
    json={"text": "Your text here", "k": 3}
)
result = response.json()

Batch Processing

texts = [
    "I love this!",
    "This is terrible.",
    "The system processes data automatically."
]

# Batch prediction
batch_results = classifier.predict_batch(texts)
for i, predictions in enumerate(batch_results):
    label, confidence = predictions[0]
    print(f"Text {i+1}: {label} ({confidence:.3f})")

Training Methodology

  1. Class Descriptions: Started with detailed descriptions of each sentiment class
  2. Quality Examples: Used filtered, high-quality examples from the dataset
  3. Iterative Training: Added examples gradually with evaluation at each step
  4. Continual Learning: Leveraged adaptive classifier's continual learning capabilities

Intended Use

  • Content Moderation: Analyze user-generated content sentiment
  • Customer Feedback: Classify customer reviews and feedback
  • Social Media: Monitor social media sentiment
  • Technical Documentation: Properly classify technical content as neutral
  • Educational Content: Handle informational and educational text appropriately

Limitations

  • Optimized for English text
  • Best performance on text similar to training data (tweets, reviews, questions)
  • May require additional examples for domain-specific terminology
  • Performance may vary on very long texts (>200 characters)

Ethical Considerations

  • The model should not be used as the sole basis for important decisions
  • Bias may exist reflecting the training data
  • Regular evaluation and retraining recommended for production use
  • Consider cultural and contextual factors when interpreting results

Citation

@misc{adaptive-sentiment-classifier-2025,
  title={Adaptive Sentiment Classifier},
  author={MemChain AI},
  year={2025},
  publisher={Hugging Face},
  url={https://huggingface.co/MemChainAI/adaptive-sentiment-classifier}
}

License

MIT License - see LICENSE file for details.

Contact

For questions, issues, or contributions, please visit the MemChain AI.

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

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

GPU в ailist

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

Нельзя запустить

Архитектура ? неизвестна transformers в образе рантайма.

Ревизия весов
41d8eb6

0 моделей