Sentiment analysis could be used to gather data on how people feel about certain aspects of a building or space. What are the most common words and adjectives used in positive and negative reviews of Airbnb properties in the Cambridge area, and how can this information be visualized through an interactive map to better understand the sentiment distribution? In this project, I used NLP(Natural Language Processing) techniques such as NLTK and TextBlob python library. The aim is to analyze cambridge-wide Airbnb reviews by using Sentiment Analysis, and visualize some interesting findings.
- 'data' is a folder where stores the downloaded cambridge Airbnb data
- 'Airbnb_Sentiment.ipynb' is the script where I run the sentiment analysis and visulization. It is created by google collab. To run the script, you need to upload the 'data' folder onto google drive and replace the corresponding path in the script
- 'map.html' is an interative map visualization
The Airbnb dataset is acquired from online platform Inside Airbnb(http://insideairbnb.com/), which provided detailed information under each listing and corresponding reviews
I first compared the NLTK Sentiment Intensity Analyzer and TextBlob Sentiment Analyzer by looking at the sentiment result on same review and overall sentiment distribution in the reviews. It turns out the TextBlob Sentiment Analyzer result makes more sense.
Here is some visualization results from the script