Giter VIP home page Giter VIP logo

business_embeddings's Introduction

Yelp Embeddings

This repo references https://github.com/acocos/business_embeddings, updates and fixed bugs from the original repo

This repo contains code used to generate business embeddings for the Yelp Academic Dataset as detailed in this blog.

Contents

file/directory description
src/pipeline.sh This script demonstrates how to extract business/context pairs from the Yelp data and use them to train word embeddings using word2vecf. You can run this pipeline (after downloading the Yelp data and installing word2vecf, see below).
src/extract_contexts.py Generates business/context pairs from the Yelp data
src/infer.py Script from the original word2vecf code, useful for loading and manipulating the resulting vectors
src/examine_places.py Script used to produce results given in blog post
data/ Download the Yelp data and extract it to this directory
data/processed If you run pipeline.sh, the resulting vectors will end up here. Or you can download them and put them there on your own.

Getting started

  1. The code in this repo depends on the word2vecf adaptation of the popular word2vec software, allowing the use of arbitrary contexts to train vectors. It was developed by researchers at Bar-Ilan University and is available here. You'll need to download and install before running the pipeline to train the vectors on your own.
  2. If you want to train your own vectors, you'll also need to download the Yelp data and extract it to the ./data directory.
  3. Once you have done those two things, you will be able to run src/pipeline.sh to generate your own business embeddings.

business_embeddings's People

Contributors

yaoyang33 avatar

Watchers

James Cloos avatar  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.