Giter Club home page Giter Club logo

insight's Introduction

LettuceEats.me

Within this repo are the files for my Insight project, LettuceEats.

Background

LettuceEats is a test web application designed to take the research out of going out to eat when you or someone in your party has either food allergies or food restrictions, e.g., tree nuts. Users can search by category, specify vegan, vegetarian, etc, or supply a string of other food items to avoid. LettuceEats then returns a curated list of recommended restaurants that are ranked by the number of acceptable menu items.

For example, say you are either allergic to avocado, or simply wish to avoid it, in this case a search for 'avocado' would need to catch items such as guacamole, particularly when avocado is not mentioned in that menu. The motive behind LettuceEats is thus to enable free-text searching using Natural Language Processing (NLP).

word2vec Model

To do this I relied on word2vec to produce a word-embedding model. Using a skip-gram base model, I trained three distinct word models to act as the engine, the differences being the combination of hierarchical softmax and negative sampling used for each model. This was done in order to reduce false-positives (e.g., matching on 'avocado' and 'cucumber').

Training Data

With the help of the Locu restaurant API, the model was trained on a collection of menus from cities across the US. Since the corpus was built from scratch, the validation of the model was checked by various test case 'by hand'. Overall the model's performance is thus far acceptable and could improve dramatically by adding recipe data.

Disclaimers:

The Flask web framework was hosted on an AWS EC2 instance. Some of the restaurant data obtained from the Locu API is either out of date or incomplete, whereas only 25 restaurants have been collected per city. In a real world scenario, please inform your server if a person in your party has a food allergy before placing your order.

insight's People

Contributors

jparrent avatar

Stargazers

 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.