Quora Question Pair Similarity

Published:

Project Overview

This project targets the duplicate detection challenge on Quora. By predicting whether two separate text questions carry the same semantic meaning, this model enables search query optimizations, prevents duplicate thread spamming, and boosts text indexing.


Key Features & Objectives

  • Semantic Matching: Processes variations in spelling, syntax, and synonyms to recognize matching question intents.
  • High-Volume Classification: Handles millions of text queries dynamically with low inference lag.
  • Imbalanced Target Distribution: Managed class ratios between duplicate and unique question lists during training.

Technical Stack & Technologies

  • Programming Language: Python
  • Libraries: NLTK, Scikit-learn, Pandas, NumPy, XGBoost
  • Text Models: TF-IDF, Word2Vec embeddings

Core Techniques & Algorithms

  • Fuzzy Feature Engineering: Extracted fuzzy string ratios (Levenshtein distance, partial ratio, token sort ratio) to represent structural word overlaps.
  • Semantic Distance Calculations: Structured cosine and Jaccard distance metrics on word vectors to quantify textual similarity.
  • XGBoost Classifier Tuning: Modeled duplicate labels through gradient-boosted trees, ranking NLP features to optimize classification parameters.