Skip to main content

Babel Street Analytics API

Annotated Data Model (ADM) response

Each document endpoint can return a more complete response in the format of the Annotated Data Model (ADM). The ADM contains a complete linguistic analysis of the text as a set of annotations; the annotations are a collection of objects. Some annotations relate to the entire input text; others to a span of text identified by a range of character offsets.

Use the query parameter output=rosette to make the response of the endpoint an ADM.

curl -s -X POST \
    -H "X-BabelStreetAPI-Key: your_api_key" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Cache-Control: no-cache" \
    -d '{"content": "Por favor Señorita, says the man." }' \
    "https://analytics.babelstreet.com/rest/v1/language?output=rosette"