TESSA | Text Sentiment Analysis
TESSA is a Text Sentiment Analysis project with main purpose to predict the Emotion conveyed from a text document. This project explores machine learning models for text emotion detection and classification. We aim to develop an efficient model for identifying emotions in text data, employing natural language processing. The models trained on labeled Twitter(X) datasets find applications in customer service, social media monitoring, marketing analysis, and various other uses. We mainly hope to utilize this emotion detection as a marketing tool to analyze customer perceptions gathered from reviews, tweets, and customer service interactions. This approach will help clients understand their sentiments within their customer base, enabling targeted strategies aligned with their experiences and expectations. We examine and create eight models to determine the most effective approach for emotion detection. We successfully developed our business tool, with the Bidirectional LSTM emerging as the top-performing model with an accuracy of 92.88%.
Explore the docs »
View Web Application
·
Report Bug
·
Request Feature
Table of Contents
Task | Assigned |
---|---|
Create Github Repository | Everyone |
Brainstorm Project | Everyone |
Finding Dataset | Everyone |
EDA | Everyone |
Data Preprocessing | Everyone |
Data Modeling: Random forest, Decision Tree | Meng Wai Chan |
Data Modeling: Logistic Regression , SVM | Farhanul Thouship |
Data Modeling: BiLSTM, CNN, CNN+LSTM, MNB | Georgios Ioannou |
Model Evaluation | Everyone |
Streamlit Application | Georgios Ioannou |
Emotions Dataset For NLP
- 2 Columns, 20k rows
- Columns: content, sentiment
- Bidirectional LSTM (BiLSTM)
- Convolutional Neural Network (CNN)
- CNN + LSTM
- Multinomial Naive Bayes (MNB)
- Decision Tree
- Random Forest
- Logistic Regression
- Support Vector Machine (SVM)
To get a local copy of TESSA up and running locally follow these simple example steps:
NOTE: How to check if Python is installed and what is its version
python --version
NOTE: How to check if Git is installed and what is its version
git -v
-
Please make sure you have pyenv installed and use Python3 version 3.11.0:
- You can use pyenv to switch between different Python versions:
-
Please make sure you have git installed
-
Please look at the setup folder found in this project.
-
Navigate to the directory where you want to clone/run/save the application:
cd your_selected_directory
-
Clone this repository:
git clone https://github.com/mengwaichan/CSc448_Final_Project.git
-
Navigate to the realesrgan git repository:
cd CSc448_Final_Project
-
Use Python3 3.11.0 version in the cloned repository folder:
pyenv local 3.11.0
-
Create virtual environment in the cloned repository folder:
python -m venv .tessa-venv
-
Activate the virtual environment (Windows OR Mac/Linux):
- Windows
.\.tessa-venv\Scripts\activate
- Mac/Linux
source .tessa-venv/bin/activate
-
Install the dependencies listed in the requirements.txt file:
pip install -r requirements.txt
-
Run Streamlit:
streamlit run app.py
-
To Run The Notebooks (3 Options):
- Use Kaggle
- Use Jupyter Notebboks Extension for VS Code
- Use Anaconda
- Download and install Anaconda
- Launch a jupyter notebook:
- MacOS users, open up terminal and type in
jupyter notebook
- Window users, open up your Anaconda Power Shell, and type in
jupyter notebook
- MacOS users, open up terminal and type in
Machine Learing Model is located in code
Project Presentation is located in documents
Project Final Report is located in documents
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Distributed under the MIT License. See LICENSE for more information.
MIT License
Copyright (c) 2023 TESSA
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Georgios Ioannou - @LinkedIn
Farhanul Thouship - @LinkedIn
Meng Wai Chan - @LinkedIn
Project Link: https://github.com/mengwaichan/CSc448_Final_Project