Skip to content

SJSU272LabF17/Find-DupQuora

Repository files navigation

Project-Team-17

Title

Detecting duplicate questions on Quora

Objective

This project aims to find the duplicate questions on Quora using NLP and Machine Learning Techniques.

Team Members

  1. Thejaswi Kampalli
  2. Manogna Sindhusha Mujje
  3. Pooja Shivasharanappa
  4. Harsh Patel

About Project:

We started off the project learning and discussing the basic concepts of Data Mining and Natural Language Processing. After some research on the implementation of the project, the solution is boiled down to cosine similarity calculation using term frequencies. This program implements cosine similarity technique by building CSR Matrix which contains term frequencies of each question as a vector.

After the initial feedback given by the professor on 4th December, we tried to further improve the accuracy by implementing some Machine Learning techniques. We realised, there are some false positives and false negatives occuring as the current approach does not deal with semantic relations between words.So we tried using Word2vec pre-trained model by Google to plot vectors in the space. We then tried to compute the semantic difference between the sentence vectors so that it shows the difference to be high if the contexts that the two questions are speaking about are different and low if the contexts are same. We used Support vector Machines as a Supervised learning Algorithm and trained the model using first 6000 question pairs and then tested on next 4000 question pairs. It showed an increased accuracy.

Dataset:

Quora has released a dataset consisting of question pairs earlier this year. The dataset can be downloaded from this link http://qim.ec.quoracdn.net/quora_duplicate_questions.tsv It includes 404351 question pairs with a label column indicating if they are duplicate or not. The score listed for each question pair as 1 if both are simalar and 0 if both are different. The dataset has 63.07% labelled as non duplicates and 36.93% labelled as duplicates.

Note:

The dataset file is too big to run the cosine similarity technique in our machines, hence we executed the code with a smaller dataset on a Jupyter Notebook. Word2Vec model can be downloaded from this link https://github.com/mmihaltz/word2vec-GoogleNews-vectors

About

Detecting duplicate questions on Quora

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published