GithubHelp home page GithubHelp logo

milstein / yelp-2 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from lawrencechang/yelp

0.0 1.0 0.0 348 KB

Yelp graph characterization project for CS 246 Web Info Management with Junghoo Cho, at UCLA

Python 100.00%

yelp-2's Introduction

Yelp

Yelp graph characterization project for CS 246 Web Info Management with Junghoo Cho, at UCLA

###Pickle Contents after running mappings.py

business_to_review_ids.p = dictionary
business id -> [review id] list

user_to_review_ids.p = dictionary
user id -> [review_id] list

businesses.p = dictionary
business id ->

  {
    'type': 'business',
    'business_id': (a unique identifier for this business),
    'name': (the full business name),
    'neighborhoods': (a list of neighborhood names, might be empty),
    'full_address': (localized address),
    'city': (city),
    'state': (state),
    'latitude': (latitude),
    'longitude': (longitude),
    'stars': (star rating, rounded to half-stars),
    'review_count': (review count),
    'photo_url': (photo url),
    'categories': [(localized category names)]
    'open': (is the business still open for business?),
    'schools': (nearby universities),
    'url': (yelp url)
  }

reviews.p = list
review id is the list index

  {
    'type': 'review',
    'business_id': (the identifier of the reviewed business),
    'user_id': (the identifier of the authoring user),
    'stars': (star rating, integer 1-5),
    'text': (review text),
    'date': (date, formatted like '2011-04-19'),
    'votes': {
      'useful': (count of useful votes),
      'funny': (count of funny votes),
      'cool': (count of cool votes)
    }
  }

users.p = dictionary
user id ->

  {
    'type': 'user',
    'user_id': (unique user identifier),
    'name': (first name, last initial, like 'Matt J.'),
    'review_count': (review count),
    'average_stars': (floating point average, like 4.31),
    'votes': {
      'useful': (count of useful votes across all reviews),
      'funny': (count of funny votes across all reviews),
      'cool': (count of cool votes across all reviews)
    }
  }

yelp-2's People

Contributors

lawrencechang avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.