allenai

allenai / machine_comprehension / 0.1.2

Machine Comprehension

Royalty Free
Answer a question, posed in natural language, based on a passage of text.
Language
Python 3.x - Beta
Metrics
API Calls - 550 Avg call duration - 1.00sec
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
{
  "best_span_str": "Keanu Reeves, Laurence Fishburne, Carrie-Anne Moss, Hugo Weaving, and Joe Pantoliano"
}

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/machine_comprehension/0.1.2 -d '{
  "passage": "The Matrix is a 1999 science fiction action film written and directed by The Wachowskis, starring Keanu Reeves, Laurence Fishburne, Carrie-Anne Moss, Hugo Weaving, and Joe Pantoliano.",
  "question": "Who stars in The Matrix?"
  
}' --timeout 300
CLI Docs