- This is currently the 2nd version of Review Analysis.
- Mainly, we want to focus on extraction of reviews and analyze them based on word count, high quality word count, keywords, etc.
- 2.0 takes Google Review information from scraped raw data from an executable file and then, using Spark protocols to analyze reviews
- Some implementations are not developed yet from 1.0 -- more to come
- Robust
- Unlikely to crash
- Easy to debug
- Fairly easy to put new implementations in (modular programming).
- Runs faster than 1.0
- Guarantee to parse all data without loss of data.
- Lot cleaner (1.0 was spaghetti and meatballs)
- If Spark crashes, then whole thing stops running (this actually depends on your computer computational power) -- highly unlikely!! Most to almost all the time, your computer should run Spark normally.
- No scraping website data. That is a completely separate functionality.
- Spark is slightly harder to manage if you don't know what you're doing.
-
Inputs - raw GOOGLE_REVIEWS.csv and REVIEW_AUTHORS.csv
-
Outputs - author_info.csv, sentiment_info.csv, product_info.csv results
-
New columns in database:
- "Keywords", "KWSentence" are managed by sentence_analysis.py
- "KW Sentiment Score" (Keyword Sentiment Score), "Sentiment Score" are managed by sentiment_analysis.py
- "High Quality Word Count", "Low Quality Word Count", "Word Count", are managed by words_analysis.py
-
(Special feature) - Spark allows you to use UDF (User-defined functions) to help you parse review data and perform certain functions onto it (without the struggle of remembering your SQL functionalities)
Add configurations from 'requirements.txt'. If you're using an IDE, it will prompt you to install the packages. Otherwise, simply run:
- pip install <package_names>
You should know how to run Apache Spark on Python IDE. Make sure Apache Spark and Pypsark package (Python) is running properly before executing the program
Make sure the following are existed in the program:
- 'review_analysis' (for storing csv data)
- Put scraped GOOGLE_REVIEWS.csv and REVIEWS_AUTHORS.csv into review_analysis folder
- Run 'python report_output.py' - that's it. If any error shows up, report it.
- Analysis csv files will be in the following folders: author_info, product_info, sentiment_info