This project involves analyzing a dataset of Amazon product reviews. The analysis includes sentiment analysis, collocation extraction, and other techniques to derive insights from the data.
Due to the size of the dataset, it is not included in this repository, however, you can download it from Kaggle here
You can track the project's progress here
- Preprocessing: Cleaning and preparing the dataset for analysis.
- Sentiment Analysis: Classifying reviews as positive, negative, or neutral.
- Collocation Extraction: Identifying frequently co-occurring words using PMI and co-occurrence methods.
- Visualizations: Generating insightful visualizations to represent the analysis results.
Amazon_Review_Analysis.py
: The main script for performing analysis on the dataset.Reviews.csv
: The original dataset containing Amazon product reviews.sampled_reviews.csv
: A sampled subset of the dataset for testing and development purposes.README.md
: Documentation for the project.
preprocessing
(merged): Reformatting and cleaning the dataset in preparation for analysis.sentiment-analysis
(merged): Implementing TextBlob scoring and sentiment labelling.performance-optimisation
(merged): Introducing dataset sampling to improve compile time.collocation-extraction-pmi
(merged): Extracting collocations using the Pointwise Mutual Information (PMI) approach.collocation-extraction-co-occurrence
(merged): Extracting collocations using the Co-Occurrence approach.sentiment-visualisations
(merged): Adding visualisations to display sentiment patters.visualisation-improvements
(merged): Improving the visualisation of collocation extraction results.
- Python 3.8 or higher
- Required Python libraries:
pandas
numpy
matplotlib
seaborn
nltk
textblob
-
Clone the repository:
git clone https://github.com/your-username/Amazon-Review-Analysis.git
-
Navigate to the project directory:
cd Amazon_Review_Analysis
-
Download necessary NLTK resources:
import nltk nltk.download('punkt') nltk.download('stopwords') nltk.download('averaged_perceptron_tagger')
-
Download the dataset from Kaggle and place it in the project directory.
-
Rename the CSV file to
Reviews.csv
-
Run the program
-
Customise the collocation extraction filtering options to your needs (refer to inline comments).
Contributions are welcome!
Please fork the repository and submit a pull request with your changes.
For any questions or feedback, feel free to reach out:
- Email: [email protected]
- GitHub: Mattytomo365