Giter Club home page Giter Club logo

quoraduplicates's Introduction

Classify if a question pair is similar to each other.

Script

python evaluate.py sentence1 sentence2

i.e. python evaluate.py "what do you think of bollywood" "what is your view on bollywood"

result - 'Yes'

NOTE: The above script can be changed to have multiple data points as inputs. The script will load the word embedding each time it is run using the avove command. It is better to modify the above script if multiple data points are to be tested

Web server(accessable from machine)

curl -X POST 'http://0.0.0.0:5000/sentence1=This%20is%20sentence%201.&sentence2=This%20is%20sentence%202.'
i.e. curl -X POST "http://0.0.0.0:5000/sentence1=what%20is%20your%20view%20on%20bollywood&sentence2=what%20do%20you%20think%20of%20bollywood"

Network Architechture

Bidirectional-LSTM. Concat the final states from the model for both the sentences and apply a fully-connected layer to get the classification layer. Entopy has been used as a loss function for the same. The architecure details such as number of layers, batch size etc. can be found in the model/config file

word embedding source

Google word2vec

Baseline accuracy:

Train accuracy: 80.76 %

Test accuracy: 72.83 %

quoraduplicates's People

Contributors

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