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.

[LU] Parsing examples of entities with children breaks when parent is referenced multiple times #555

Closed

Description

bf-cli version: 4.7.0

Input:

## SampleINtent
- 1. foo {@PAR={@ENT1=bar}} is {@PAR={@ENT2=bar}}
- 2. foo {@PAR=1 {@ENT1=bar}} is {@PAR=2 {@ENT2=bar}}
- 3. foo {PAR={ENT1=bar}} is {PAR={ENT2=bar}}
- 4. foo {PAR=1 {ENT1=bar}} is {PAR=2 {ENT2=bar}}

@ ml PAR
    - @ ml ENT1
    - @ ml ENT2

Output: (same for other examples)

{
      "text": "1. foo bar} is {@PAR={@ENT2=bar}", // <<< Wrong parsing
      "intent": "SampleINtent",
      "entities": [
        {
          "entity": "ENT1",
          "startPos": 28,
          "endPos": 30
        },
        {
          "entity": "PAR",
          "startPos": 7,
          "endPos": 31
        }
      ]
    },

Activity

  1. added
    Bot Services
    customer-reported
    on Feb 9, 2020
  2. added
    R8
    lu
    on Feb 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Bot ServicesR8customer-reportedlu

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions