allenai

allenai / dependency_parsing / 0.1.0

Dependency Parsing

Royalty Free
Extract relationships between "head" words and words that modify those heads
Language
Python 3.x - Beta
Metrics
API Calls - 3 Avg call duration - N/A
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
{
  "predicted_dependencies": [
    "mark",
    "nsubj",
    "advcl",
    "num",
    "dobj",
    "tmod",
    "punct",
    "aux",
    "nsubj",
    "root",
    "iobj",
    "dobj",
    "punct"
  ],
  "predicted_heads": [
    3,
    3,
    10,
    5,
    3,
    3,
    10,
    10,
    10,
    0,
    10,
    10,
    10
  ],
  "words": [
    "If",
    "I",
    "bring",
    "10",
    "dollars",
    "tomorrow",
    ",",
    "can",
    "you",
    "buy",
    "me",
    "lunch",
    "?"
  ]
}

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
# Enter API Key: YOUR_API_KEY
CLI Install Docs

Use



algo run allenai/dependency_parsing/0.1.0 -d '{
  "sentence": "If I bring 10 dollars tomorrow, can you buy me lunch?"
}' --timeout 300
  
CLI Docs