CoNLL 2 JSON

This Converts CoNLL-U data to JSON trees, handy for working with nlp parsers on the web

Algorithmia Platform License

Run an Example

{
  "children": [
    {
      "children": [
        {
          "children": [],
          "deprel": "nsubj",
          "deps": null,
          "feats": null,
          "form": "'s",
          "head": 3,
          "id": 2,
          "lemma": null,
          "misc": null,
          "upostag": "PRON",
          "xpostag": "PRP"
        },
        {
          "children": [
            {
              "children": [],
              "deprel": "det",
              "deps": null,
              "feats": null,
              "form": "some",
              "head": 5,
              "id": 4,
              "lemma": null,
              "misc": null,
              "upostag": "DET",
              "xpostag": "DT"
            }
          ],
          "deprel": "dobj",
          "deps": null,
          "feats": null,
          "form": "text",
          "head": 3,
          "id": 5,
          "lemma": null,
          "misc": null,
          "upostag": "NOUN",
          "xpostag": "NN"
        }
      ],
      "deprel": "ccomp",
      "deps": null,
      "feats": null,
      "form": "parse",
      "head": 1,
      "id": 3,
      "lemma": null,
      "misc": null,
      "upostag": "VERB",
      "xpostag": "VB"
    }
  ],
  "deprel": "ROOT",
  "deps": null,
  "feats": null,
  "form": "Let",
  "head": 0,
  "id": 1,
  "lemma": null,
  "misc": null,
  "upostag": "VERB",
  "xpostag": "VB"
}

Install & Use

Use

curl -X POST -d '<INPUT>' -H 'Content-Type: application/json' -H 'Authorization: Simple YOUR_API_KEY' https://api.algorithmia.com/v1/algo/corprew/conll2JSON/0.1.2