This visualizations shows the positivity and negativity in yelp reviews. The size of the data points corresponds to the number of words in the review. The sentiment is scored using the NRC lexicon created by Saif M. Mohammad and based on implementation by Matthew Jockers.
# Copyright 2016 Google Inc. All Rights Reserved. Licensed under the Apache | |
# License, Version 2.0 (the "License"); you may not use this file except in | |
# compliance with the License. You may obtain a copy of the License at | |
# http://www.apache.org/licenses/LICENSE-2.0 | |
# Unless required by applicable law or agreed to in writing, software | |
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT | |
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the | |
# License for the specific language governing permissions and limitations under | |
# the License. |
Forked from Mike Bostock's Example. Displays common machine learning algorithms.
Not bad, apparently.
This chart plots the average emtional valence contained within Yelp reviews for coffee shops across 8 emotions, four positive emotions on the right, and four negative emotions on the left. Interestingly, Starbucks seems to provide a less emotionally rich experience than going to other coffee shops. Possibly, this is due to the fact that Starbucks customers dissproportionally dilute their coffee with cream and sugar, and thus dilute their coffee-drinking experience. The greatest joy seems to be coming from the Other category, possibly a testament to the romance often associated with Independent Coffee shops. Apparently, the most anticipated place is Krispy Kreme. It makes sense, people likely eat donuts much less than they drink coffee, so when they go, it's a specical event.
This chart is built using the the radar-chart-d3 plugin created Alvaro Graves. The emotional valence was estimated using the [syuzhet R package](