Skip to content

Predicting the directional relationship between two sentences using deep learning models.

Notifications You must be signed in to change notification settings

nharikrishnan/textual_entailment

Repository files navigation

Textual Entailment and relatedness score

In this project, deep learning models are used to predict the directional relation between 2 sentences, the possible relations are 'Entailment', 'Neutral', and 'Contradiction'. The data set used for the study is the SICK data set which can be downloaded from 'http://marcobaroni.org/composes/sick.html'.

Methods

  • Bidirectional LSTM
  • Siamese LSTM
  • Siamese CNN
  • GRU
  • Deep RNN

drawing

The highest accuracy was achieved using siamese LSTM for both entailment and relatedness task are as follows:

  • Entailment Task: 84%
  • relatedness Task: 81%

Prerequisites

Python version 3.7.7 was used for development.
Python Packages required can be found in 'requirement.txt'
The packages can be installed using the command:

pip install 'package_name'

Word embedding

Glove.6b.50d.txt word embedding file is used assigning weights in embedding layer for all deep learning tasks.

  1. Instructions to download the word embedding file is given inside word embedding folder, download the word embedding file following the instruction and keep the glove.6b.50d.txt file inside the word embedding folder.

About

Predicting the directional relationship between two sentences using deep learning models.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published