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.

luis:convert - nested machine-learned entity indices are not calculated correctly #627

Closed

Description

@rozele

Versions

What CLI version are you using.
What Nodejs version are you using
What command-line interpreters are you using
What OS are you using

@microsoft/botframework-cli/4.7.0 darwin-x64 node-v10.13.0

Describe the bug

Give a clear and concise description of what the bug is.

When I create a model with a nested machine-learned entity, if I label an inner entity that has text that shows up twice in the outer entity, the wrong index is selected. E.g.:

## Repros
- when I use the {@outer=same {@inner=text} twice in nested ML entity text}

To Reproduce

  1. Install BF CLI 4.7.0
  2. Create a file called test.lu with the following text:
## Repros
- when I use the {@outer=same {@inner=text} twice in nested ML entity text}
  1. Run bf luis:convert -i test.lu -o test.json

Expected behavior

Give a clear and concise description of what you expected to happen.

I expect the startPos of the inner entity to be 20.

        {
          "entity": "inner",
          "startPos": 20,
          "endPos": 23
        }

Instead, it selects the second occurrence:

        {
          "entity": "inner",
          "startPos": 51,
          "endPos": 54
        }

[bug]

Activity

  1. changed the title [-]Nested machine-learned entity indices are not calculated correctly[/-] [+]luis:convert - nested machine-learned entity indices are not calculated correctly[/+] on Mar 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions