Skip to content
This repository was archived by the owner on Jan 15, 2025. It is now read-only.
This repository was archived by the owner on Jan 15, 2025. It is now read-only.

Hierarchical entities are not parsed correctly #920

Closed

Description

This json is parsed incorrectly

{
  "intents": [
      {
          "name": "None"
      }
  ],
  "entities": [
      {
          "name": "add",
          "roles": [],
          "children": [
              {
                  "name": "count",
                  "children": [],
                  "features": [
                      {
                          "modelName": "globalCount",
                          "isRequired": true
                      }
                  ]
              }
          ]
      },
      {
          "name": "globalCount",
          "roles": [],
          "children": [
              {
                  "name": "countNumber",
                  "children": [],
                  "features": [
                      {
                          "modelName": "number",
                          "isRequired": true
                      }
                  ]
              }
          ]
      }
  ],
  "composites": [],
  "closedLists": [],
  "regex_entities": [],
  "regex_features": [],
  "utterances": [
      {
          "text": "add two apples",
          "intent": "None",
          "entities": [
              {
                  "entity": "add",
                  "startPos": 0,
                  "endPos": 13,
                  "children": [
                      {
                          "entity": "count",
                          "startPos": 4,
                          "endPos": 13
                      }
                  ]
              },
              {
                  "entity": "globalCount",
                  "startPos": 4,
                  "endPos": 13,
                  "children": [
                      {
                          "entity": "countNumber",
                          "startPos": 4,
                          "endPos": 6
                      }
                  ]
              }
          ]
      }
  ],
  "patterns": [],
  "patternAnyEntities": [],
  "prebuiltEntities": [
      {
          "name": "number",
          "roles": []
      }
  ],
  "luis_schema_version": "7.0.0",
  "versionId": "0.1",
  "name": "LuTest",
  "desc": "",
  "culture": "en-us",
  "tokenizerVersion": "1.0.0",
  "phraselists": []
}

**Expected: **


> LUIS application information
> !# @app.name = LuTest
> !# @app.versionId = 0.1
> !# @app.culture = en-us
> !# @app.luis_schema_version = 7.0.0
> !# @app.tokenizerVersion = 1.0.0


> # Intent definitions

## None
- {@add=add {@globalCount={@count={@countNumber=two} apples}}}


> # Entity definitions

@ ml add
    - @ globalCount count


@ ml globalCount
    - @ number countNumber



> # PREBUILT Entity definitions

@ prebuilt number


> # Phrase list definitions


> # List entities

> # RegEx entities




Actual:


> LUIS application information
> !# @app.name = LuTest
> !# @app.versionId = 0.1
> !# @app.culture = en-us
> !# @app.luis_schema_version = 7.0.0
> !# @app.tokenizerVersion = 1.0.0


> # Intent definitions

## None
- {@add=add {@globalCount={@countNumber={@count=two} apples}}}


> # Entity definitions

@ ml add
    - @ globalCount count


@ ml globalCount
    - @ number countNumber



> # PREBUILT Entity definitions

@ prebuilt number


> # Phrase list definitions


> # List entities

> # RegEx entities




Activity

  1. added
    lu
    R10
    on Aug 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

R10lu

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions