Team Ai
Apppublic

jokerthejoke/MACHINE-LEARNING

sourceHugging Faceupdated 3y agoView on Hugging Face
0likes
App README

![Sync to Hugging Face hub](https://github.com/Sabry-Ahmed/MACHINE-LEARNING/actions/workflows/main.yml)

Multimodal Sentiment Analysis System for Large Companies

This project aims to develop a comprehensive sentiment analysis system tailored for large companies, enabling them to extract and understand customer emotions from both text-based (emails) and audio-based (phone calls) interactions. By analyzing these customer interactions, companies can gain valuable insights to enhance their customer experience and satisfaction levels.

Scheme: Data Input and Deployment Workflow

This scheme illustrates the workflow for inputting data (voices and texts) using a Streamlit application and deploying the code to Hugging Face Spaces using GitHub Actions.

Step 1: Data Input with Streamlit

  1. 1.User Interaction:
  2. 2.Users interact with a Streamlit web application interface.
  3. 3.The application prompts users to input data in the form of voice recordings or text.
  1. 1.Input Options:
  2. 2.Users can either upload audio files (e.g., MP3 or WAV) or enter text directly into the application.
  1. 1.Streamlit Interface:
  2. 2.Streamlit provides an intuitive interface for users to input their data.
  3. 3.It offers functionalities such as file upload widgets and text input fields.

Step 2: Data Processing and Analysis

  1. 1.Data Processing:
  2. 2.The Streamlit application processes the input data, handling both audio files and text inputs.
  3. 3.Audio files are converted to text using speech-to-text conversion libraries (e.g., librosa).
  4. 4.Text inputs are directly processed for sentiment analysis.
  1. 1.Sentiment Analysis:
  2. 2.Sentiment analysis algorithms analyze the processed text data to determine sentiment (positive, negative, neutral).

Step 3: Deployment to Hugging Face Spaces

  1. 1.Git Version Control:
  2. 2.The code, including the Streamlit application and sentiment analysis scripts, is version-controlled using Git.
  3. 3.Changes and updates are tracked using Git commits.
  1. 1.GitHub Actions:
  2. 2.GitHub Actions are configured to automate the deployment process.
  3. 3.Upon pushing changes to the Git repository, GitHub Actions trigger deployment to Hugging Face Spaces.
  1. 1.Hugging Face Spaces:
  2. 2.The code is deployed to Hugging Face Spaces, making the Streamlit application accessible online.
  3. 3.Users can interact with the deployed application through the Hugging Face Spaces platform.

[image]

Features

  • —Email Sentiment Analysis: Automatically analyzes the sentiment of customer emails to determine positivity or negativity.
  • —Phone Call Sentiment Analysis: Performs sentiment analysis on recorded phone calls to identify positive or negative feedback.

Deployment

The project is deployed on the Hugging Face Spaces platform. You can access the application here.

How It Works

  1. 1.Data Collection:
  2. 2.Emails and phone call recordings are collected from customer interactions.
  1. 1.Data Processing:
  2. 2.NLP techniques are used to extract text from emails.
  3. 3.Speech-to-text conversion tools are employed for phone call recordings.
  1. 1.Sentiment Analysis:
  2. 2.Sentiment analysis algorithms classify the text data into positive or negative sentiments.

Technologies Used

  • —Python
  • —Streamlit
  • —Hugging Face Spaces
  • —Docker
  • —Transformers

Usage

  1. 1.Local Deployment:
  2. 2.Clone the project repository from GitHub.
  3. 3.Navigate to the project directory.
  4. 4.Run docker-compose up to deploy the application locally.
  1. 1.Online Access:
  2. 2.Access the application directly via the provided Hugging Face Spaces link.

Future Enhancements

  • —Database Integration: Implement a database system to store analyzed data for future reference and analysis.
  • —API Development: Create an API to access the analyzed data and provide graphical representations of sentiment analysis results.
  • —Enhanced NLP: Enhance text processing capabilities to extract and analyze every word of the client's discussion, providing deeper insights into customer feedback.

Conclusion

Given more time could be made to the Review Simplification Project. Integrating a database system and developing an API would facilitate data storage and access, enabling advanced analytics and visualization. Additionally, further enhancements to NLP capabilities would allow for more comprehensive analysis of customer feedback, leading to more actionable insights for businesses.