1. Learn
  2. /
  3. Courses
  4. /
  5. Natural Language Processing (NLP) in Python

Connected

Exercise

Detecting duplicate questions

A startup is developing a Q&A assistant to improve the user experience on their support forum. One key feature is to detect when users ask the same question using different words. You've been asked to implement a solution using a pre-trained QQP model that can determine whether two questions are duplicates.

Instructions

100 XP
  • Initialize a suitable classifier pipeline with the "textattack/bert-base-uncased-QQP" model.
  • Use the pipeline to classify whether question_1 and question_2 are paraphrases.