doctt / doctt-frontend

Angular Frontend for DocTT, a document tagging tool.
3 stars 0 forks source link

Tree #2

Open denysvitali opened 5 years ago

denysvitali commented 5 years ago

It should be possible to view the document structure in a tree on the left side of the page, so that the user can choose some parts of the document.

denysvitali commented 5 years ago

Given the following structure layer1.zip

UAM Corpus Tools generates this: Screenshot-2019-03-21_10-55-51

Our tool generates the following JSON:

{
  "version": 1,
  "data": {
    "root": {
      "id": "clauses",
      "children": [
        {
          "id": "CLAUSES-TYPE",
          "children": [
            {
              "id": "material"
            },
            {
              "id": "mental"
            },
            {
              "id": "verbal"
            },
            {
              "id": "relational"
            },
            {
              "id": "existential"
            }
          ]
        },
        {
          "id": "CLAUSES-TYPE2",
          "children": [
            {
              "id": "nonfinite-clause",
              "children": [
                {
                  "id": "NONFINITE-CLAUSE-TYPE",
                  "children": [
                    {
                      "id": "gerund-clause"
                    },
                    {
                      "id": "participle-clause"
                    },
                    {
                      "id": "infinitive-clause"
                    }
                  ]
                }
              ]
            },
            {
              "id": "finite-clause",
              "children": [
                {
                  "id": "FINITE-CLAUSE-TYPE",
                  "children": [
                    {
                      "id": "modal"
                    },
                    {
                      "id": "nonmodal"
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "id": "CLAUSES-TYPE3",
          "children": [
            {
              "id": "passive-clause"
            },
            {
              "id": "active-clause"
            }
          ]
        }
      ]
    }
  }
}
denysvitali commented 5 years ago

image

e3be205

denysvitali commented 5 years ago

71a5c83: image

denysvitali commented 5 years ago

a245878:

image