Natural Language Interface

Learn how to fine-tune the pre-trained BERT model for natural language interface (NLI) tasks.

In natural language interface (NLI), the goal of our model is to determine whether a hypothesis is an entailment (true), a contradiction (false), or an undetermined (neutral) given a premise. Let's learn how to perform NLI by fine-tuning BERT.

Consider the sample dataset shown in the following figure; as we can see, we have a premise and a hypothesis with a label indicating whether they are entailment, contradiction, or undetermined:

Get hands-on with 1200+ tech skills courses.