Textual entailment (TE), also known as Natural Language Inference (NLI), in natural language processing is a directional relation between text fragments. The relation holds whenever the truth of one text fragment follows from another text. Given a premise and a hypothesis, this module allows you to calculate textual entailment between the two.
It is a natural language inference task ....
# First install using
pip install .
# For huggingface
from textual_entailment import hf
# For allennlp
from textual_entailment import allennlp
# For Google's PaLM
from textual_entailment import palm