This repo contains the model and the notebook for fine-tuning BERT model on SNLI Corpus for Semantic Similarity.
Semantic Similarity with BERT.
Motivation: Semantic Similarity determines how similar two sentences are, in terms of their meaning. In this tutorial, we can fine-tune BERT model and use it to predict the similarity score for two sentences.
This example demonstrates the use of the Stanford Natural Language Inference (SNLI) Corpus to predict semantic sentence similarity with Transformers.
-
Total train samples: 100000
-
Total validation samples: 10000
-
Total test samples: 10000
-
Contradiction: The sentences share no similarity.
-
Entailment: The sentences have a similar meaning.
-
Neutral: The sentences are neutral.