allenai

allenai / textual_entailment / 0.1.1

Textual Entailment

Royalty Free
Determine whether one sentence follows from another one
Language
Python 3.x - Beta
Metrics
API Calls - 20 Avg call duration - 1.10sec
Permissions
The Algorithm Platform License is the set of terms that are stated in the Software License section of the Algorithmia Application Developer and API License Agreement. It is intended to allow users to reserve as many rights as possible without limiting Algorithmia's ability to run it as a service. Learn More

Run an Example

Input
Output
{
  "contradiction": 0.9735872745513916,
  "entailment": 0.00033908788464032114,
  "neutral": 0.02607356198132038
}

Install and Use

Install

Install the Algorithmia CLI client by running:

curl -sSLf https://algorithmia.com/install.sh | sh

Then authenticate by running:

$ algo auth
# When prompted for api endpoint, hit enter
# When prompted for API key, enter your key: YOUR_API_KEY
CLI Install Docs

Use



algo run allenai/textual_entailment/0.1.1 -d '{
"premise": "Two women are wandering along the shore drinking iced tea.",
"hypothesis": "Two women are sitting on a blanket near some rocks talking about politics."
}' --timeout 300
  
CLI Docs