Git Product home page Git Product logo

quora-dublicate-questions's Introduction

quora-dublicate-questions

This project involves analyzing, and building several ML and DL models. The target data set is based on question pairs posted by Quora.

First Quora Dataset Release: Question Pairs

Model

The model adopted is MaLSTM with Google pre-trained word to vector.

Deployment

Flask RESTful API with OpenAPI 2.0 specifications was developed to interface the pre-trained for testing new pairs of questions. The API allows HTTP GET, with question1 and questions as query string.

Parameters:
question1 and question2

Response Body
{
     "is_duplicate": false,
     "probability": "0.37658742"
}

Screenshot

Installation Instruction

  1. Pipenv is a tool that aims to bring the best of all packaging worlds to the Python world.
  2. For ease of installation, have pipenv installed.
  3. Run "pipenv shell" from the project root directory, this will create a VIRTUAL ENVIRONMENT and install all the project dependencies in it.
  4. Make sure that each sub-folders in the project is in the sys.path.
  5. Run model_train.py to train the model. This will also save the best model to file.
  6. Run wsgi.py to initiate the RESTfull API. Default port is 8080. OR run with gunicorn --bind 0.0.0.0:8080 wsgi:API

Thank You.

Download the Google news word2vec pretrained model from terminal

1: wget --save-cookies cookies.txt --keep-session-cookies
--no-check-certificate 'https://docs.google.com/uc?
export=download&id=0B7XkCwpI5KDYNlNUTTlSS21pQmM' -O- |
sed -rn 's/.confirm=([0-9A-Za-z_]+)./Code: \1\n/p'

This will give you an ID, say Code: Se3r

2: wget --load-cookies cookies.txt 'https://docs.google.com/
uc?export=download&confirm=YOURCODEID&id=0B7XkCwpI5KDYNlNUTTlSS21pQmM' -O
GoogleNews-vectors-negative300.bin.gz

Kindly replace the ID with yours.

quora-dublicate-questions's People

Contributors

ibodumas avatar

Stargazers

 avatar  avatar

Watchers

 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.