/Contradictory-DearWatson

Primary LanguageJupyter NotebookApache License 2.0Apache-2.0

Contradictory-My Dear Watson

About

This project is a part of Kaggle Challenge Contradictory - My Dear Watson in which I classified a phrase into 3 classes on the basis of its context. Classes:-

  1. Neutral
  2. Entailment
  3. Contradictory

Tech Stack Used

  • Numpy
  • Pandas
  • NLP
  • Matplotlib
  • Keras
  • Re
  • NLTK
  • string
  • pickle
  • Tensorflow
  • Pytorch
  • Glove Embeddings
  • Cosine Similarity

Model Structure

(NLP)                                                      (NLP)
Input (456,50)                                            Input (34,50)
  |                                                        |
  |                                                        |
LSTM (output_dim = 256,512)                          LSTM (ouput_dim=256,512)
  |                                                        |
  |                                                        |
Flatten                                                 Flatten
  |_________________________      __________________________|
                           |     |
                           |     |
                        Cosine Similarity
                             |
                             |
                           Dense
                             |
                             |
                           Dense (3)
                          (output)