Skip to content

Service: Foundry Description

Eliza Margaretha edited this page Dec 20, 2019 · 5 revisions

** WARNING: This service is experimental and may change without any notice.

Returns descriptions of all foundries.

Available in: lite and full version

Method: POST

Service URL: root/annotation/description

Parameters

Request body:

JSON with the following attributes:

Name Required Description Example
codes yes foundry/layer codes opennlp opennlp/*
opennlp/p
language no 2-letter language code determining the language of the description attribute in the foundry and layer objects en (default)
de

Examples

Request with cURL

curl -H "Content-Type: application/json" 
"http://localhost:8089/api/v1.0/annotation/description" 
--data '{"codes":["mate/*"], "language":"en" }'

Response

[{
    "code": "mate",
    "description": "Mate",
    "layers": [
        {
            "code": "m",
            "description": "Morphology",
            "keys": [                
                {
                    "code": "case",
                    "description": "Case",
                    "values": {
                        "*": "Undefined",
                        "acc": "Accusative",
                        "dat": "Dative",
                        "gen": "Genitive",
                        "nom": "Nominative"
                    }
                },
                {
                    "code": "degree",
                    "description": "Degree",
                    "values": {
                        "comp": "Comparative",
                        "pos": "Positive",
                        "sup": "Superative"
                    }
                }               
            ]
        },
        {
            "code": "p",
            "description": "Part-of-Speech",
            "keys": [                
                {
                    "code": "ADJA",
                    "description": "Attributive Adjective"
                },
                {
                    "code": "ADJD",
                    "description": "Predicative Adjective"
                },
                {
                    "code": "ADV",
                    "description": "Adverb"
                }
            ]
        }
    ]
}]
Clone this wiki locally