Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tree #2

Open
4 tasks done
denysvitali opened this issue Mar 5, 2019 · 4 comments
Open
4 tasks done

Tree #2

denysvitali opened this issue Mar 5, 2019 · 4 comments
Assignees
Labels
component.tree The "Tree" component todo
Milestone

Comments

@denysvitali
Copy link
Member

denysvitali commented Mar 5, 2019

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.

  • Parse Tree from XML
  • Create DocTT Tree Structure
  • Create a tree structure UI
  • Colorize the tree
@denysvitali denysvitali added this to the M1 milestone Mar 5, 2019
@denysvitali denysvitali added the component.tree The "Tree" component label Mar 5, 2019
denysvitali added a commit that referenced this issue Mar 20, 2019
@denysvitali denysvitali self-assigned this Mar 20, 2019
denysvitali added a commit that referenced this issue Mar 21, 2019
@denysvitali
Copy link
Member Author

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
Copy link
Member Author

denysvitali commented Mar 24, 2019

image

e3be205

@denysvitali
Copy link
Member Author

71a5c83:
image

denysvitali added a commit that referenced this issue Apr 2, 2019
@denysvitali
Copy link
Member Author

a245878:

image

denysvitali added a commit that referenced this issue May 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component.tree The "Tree" component todo
Projects
None yet
Development

No branches or pull requests

2 participants