This project focuses on sentiment analysis using machine learning and natural language processing techniques. The goal is to develop a Streamlit app capable of analyzing sentiments in various scenarios, including single-line reviews, multiple reviews from CSV files, and product reviews from Amazon URLs.
- B8_Amazon: Contains Jupyter notebooks with exploratory data analysis and model development.
- reviewscrapper.py: Includes Python scripts for web scraping reviews for a certain URL.
- review_analyzer.py: Houses the Streamlit app code for interactive sentiment analysis.
- models.p: Stores serialized models for sentiment analysis.
- requirements.txt: Lists the project dependencies for reproducibility.
- config.toml: Configuration for the Streamlit app theme.
-
Clone the repository:
git clone https://github.com/amri-tah/Amazon-Review-Sentiment-Analysis.git
-
Navigate to the project directory:
cd Amazon-Review-Sentiment-Analysis
-
Install dependencies:
pip install -r requirements.txt
-
Open terminal and run the Streamlit app:
streamlit run review_analyzer.py
-
Explore and run Jupyter notebook
B8_Amazon.ipynb
folder for data analysis and model development. -
Execute Python scripts in the
reviewscrapper.py
for web scraping. -
Run the Streamlit app for interactive sentiment analysis:
streamlit run review_analyzer.py