Businesses can compare two pieces of text to determine whether one supports, contradicts, or fails to resolve the other. Natural language inference (NLI) treats this as a text-classification task. section 6.2
Robin example
Given the premise “A robin is a bird” and the hypothesis “A robin can fly,” the label is entailment when the hypothesis follows, contradiction when it conflicts, or neutral when it is irrelevant or difficult to categorize. section 6.2
NLI commonly distinguishes three relationships:
- Entailment: the hypothesis logically follows from the premise. section 6.2
- Contradiction: the hypothesis conflicts with the premise. section 6.2
- Neutral: the hypothesis is irrelevant or difficult to categorize. section 6.2
