Identify dependency data

The Analytics API’s /syntax/dependencies endpoint will return the parse tree of the input text as a list of labeled directed links between tokens, as well as the list of tokens in the input sentence.

The /syntax/dependencies endpoint returns a list of sentences, their offsets, and their labeled dependencies, all connected to a list of tokens by indices.

Headers

X-RosetteAPI-KeystringRequired

Request

This endpoint expects an object.
contentstringRequired
The text to be analyzed.
languagestringOptional

Three-letter ISO 693-3 language code.

Response

OK
sentencelist of objects or null
list of sentences with dependencies
tokenslist of strings or null
tokens