AventIQ-AI / sentiment_analysis_for_customer_feedback

huggingface.co
Total runs: 16
24-hour runs: 0
7-day runs: -43
30-day runs: 13
Model's Last Updated: April 08 2025

Introduction of sentiment_analysis_for_customer_feedback

Model Details of sentiment_analysis_for_customer_feedback

BERT-Base-Uncased Quantized Model for customer feedback sentiment analysis

This repository hosts a quantized version of the bert-base-uncased model, fine-tuned for social media sentiment analysis tasks. The model has been optimized for efficient deployment while maintaining high accuracy, making it suitable for resource-constrained environments.

Model Details
  • Model Architecture: BERT Base Uncased
  • Task: Social Media Sentiment Analysis
  • Dataset: Social Media Sentiments Analysis Dataset [Kaggle]
  • Quantization: Float16
  • Fine-tuning Framework: Hugging Face Transformers
Usage
Installation
pip install transformers torch
Loading the Model

from transformers import BertForSequenceClassification, BertTokenizer
import torch
device = 'cuda' if torch.cuda.is_available() else 'cpu'

# Load quantized model
model_name = "AventIQ-AI/sentiment_analysis_for_customer_feedback"
model = BertForSequenceClassification.from_pretrained(model_name).to(device)
tokenizer = BertTokenizer.from_pretrained(model_name)

#Function to make analysis
def predict_sentiment(text):
    # Tokenize input text
    inputs = tokenizer(text, return_tensors="pt", truncation=True, padding=True, max_length=512)
    
    # Move tensors to GPU if available
    inputs = {key: val.to(device) for key, val in inputs.items()}

    # Get model prediction
    with torch.no_grad():
        outputs = model(**inputs)
    
    # Get predicted class
    logits = outputs.logits
    predicted_class = torch.argmax(logits, dim=1).item()

    # Map back to sentiment labels
    sentiment_labels = {0: "Negative", 1: "Neutral", 2: "Positive"}
    return sentiment_labels[predicted_class]

# Define a test sentence
test_sentence = "Spending time with family always brings me so much joy."
print(f"Predicted Sentiment: {predict_sentiment(text)}")
Performance Metrics
  • Accuracy: 0.82
  • Precision: 0.68
  • Recall: 0.82
  • F1 Score: 0.73
Fine-Tuning Details
Dataset

The dataset is taken from Kaggle Social Media Sentiment Analysis.

Training
  • Number of epochs: 6
  • Batch size: 8
  • Evaluation strategy: epoch
  • Learning rate: 3e-5
Quantization

Post-training quantization was applied using PyTorch's built-in quantization framework to reduce the model size and improve inference efficiency.

Repository Structure
.
├── model/               # Contains the quantized model files
├── tokenizer_config/    # Tokenizer configuration and vocabulary files
├── model.safensors/     # Fine Tuned Model
├── README.md            # Model documentation
Limitations
  • The model may not generalize well to domains outside the fine-tuning dataset.
  • Quantization may result in minor accuracy degradation compared to full-precision models.
Contributing

Contributions are welcome! Feel free to open an issue or submit a pull request if you have suggestions or improvements.

Runs of AventIQ-AI sentiment_analysis_for_customer_feedback on huggingface.co

16
Total runs
0
24-hour runs
-44
3-day runs
-43
7-day runs
13
30-day runs

More Information About sentiment_analysis_for_customer_feedback huggingface.co Model

sentiment_analysis_for_customer_feedback huggingface.co

sentiment_analysis_for_customer_feedback huggingface.co is an AI model on huggingface.co that provides sentiment_analysis_for_customer_feedback's model effect (), which can be used instantly with this AventIQ-AI sentiment_analysis_for_customer_feedback model. huggingface.co supports a free trial of the sentiment_analysis_for_customer_feedback model, and also provides paid use of the sentiment_analysis_for_customer_feedback. Support call sentiment_analysis_for_customer_feedback model through api, including Node.js, Python, http.

sentiment_analysis_for_customer_feedback huggingface.co Url

https://huggingface.co/AventIQ-AI/sentiment_analysis_for_customer_feedback

AventIQ-AI sentiment_analysis_for_customer_feedback online free

sentiment_analysis_for_customer_feedback huggingface.co is an online trial and call api platform, which integrates sentiment_analysis_for_customer_feedback's modeling effects, including api services, and provides a free online trial of sentiment_analysis_for_customer_feedback, you can try sentiment_analysis_for_customer_feedback online for free by clicking the link below.

AventIQ-AI sentiment_analysis_for_customer_feedback online free url in huggingface.co:

https://huggingface.co/AventIQ-AI/sentiment_analysis_for_customer_feedback

sentiment_analysis_for_customer_feedback install

sentiment_analysis_for_customer_feedback is an open source model from GitHub that offers a free installation service, and any user can find sentiment_analysis_for_customer_feedback on GitHub to install. At the same time, huggingface.co provides the effect of sentiment_analysis_for_customer_feedback install, users can directly use sentiment_analysis_for_customer_feedback installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

sentiment_analysis_for_customer_feedback install url in huggingface.co:

https://huggingface.co/AventIQ-AI/sentiment_analysis_for_customer_feedback

Url of sentiment_analysis_for_customer_feedback

sentiment_analysis_for_customer_feedback huggingface.co Url

Provider of sentiment_analysis_for_customer_feedback huggingface.co

AventIQ-AI
ORGANIZATIONS

Other API from AventIQ-AI

huggingface.co

Total runs: 18
Run Growth: 14
Growth Rate: 77.78%
Updated:February 17 2025