Coder Social home page Coder Social logo

m0chim0nster / wine_recommender Goto Github PK

View Code? Open in Web Editor NEW

This project forked from roaldschuring/wine_recommender

0.0 0.0 0.0 140.11 MB

Creating wine embeddings and using these to produce wine recommendations

Jupyter Notebook 97.47% Python 2.53%

wine_recommender's Introduction

Wine Recommender

Introduction

In this repository, we (i) explore an approach to generating an embedding for each wine review that combines some of the best-practice approaches highlighted in existing literature, and (ii) use these wine embeddings to build a simple wine recommendation engine. This repository contains the following files:

  • creating_wine_review_embeddings.ipynb: this is the notebook file containing the analysis creating the wine embeddings, and building the wine recommendation engine
  • descriptor_mapping.csv: the full mapping of preprocessed wine descriptors to level 1, level 2 and level 3 terms.
  • wine_word2vec_model.bin, wine_word2vec_model.bin.trainables.syn1neg.npy, wine_word2vec_model.bin.wv.vectors.npy: trained instances of the word2vec model trained on the wine review corpus

The data obtained from the web scraping exercise was too large to be added to this repository. However, the scraper used to mine the data from www.winemag.com is available in this GitHub respository: https://github.com/RoaldSchuring/studying_grape_styles

Technologies

  • Python
  • Jupyter Notebook
  • The necessary Python package versions needed to run the various files in this repository have been listed out in the accompanying requirements.txt file

Project Description

One of the cornerstones of every chapter of the Robosomm series has been to extract descriptors from professional wine reviews, and to convert these into quantitative features. In doing so, we want to put ourselves in the shoes of a blind taster and extract only those descriptors that could be derived without knowing what the wine actually is.

In this notebook, we will combine a couple of best-practice approaches highlighted in the existing literature on this subject and create an embedding for each wine review. We will use this to build a simple wine recommender.

Getting Started

  1. Clone this repo

  2. Run the web scraper available in the other repository outlined above to get a full and fresh set of wine reviews

  3. Swap in the location of the csv files with the scraped wine reviews for the hard-coded location in section 1 of creating_wine_review_embeddings.ipynb

  4. Run creating_wine_review_embeddings.ipynb as you please to replicate the analysis.

Authors

Roald Schuring

wine_recommender's People

Contributors

roaldschuring 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.