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.

Cross-train should filter qna questions with brackets in crosstrained lu results to avoid introducing pattern validation failures in luis build #1064

Closed

Description

@feich-ms

Versions

4.11.0

Describe the bug

Reported from composer microsoft/BotFramework-Composer#4970. Cross-train is adding qna questions to corresponding lu files when doing lu vs qna crosstraining. This will introduce some special utterances or patterns from qna questions to lu files. When publishing these lu files, the luis api will return validation exceptions for some corner cases patterns whose formats are not allowed. The optional fix is to filter qna questions with brackets in crosstrained lu results.

To Reproduce

Steps to reproduce the behavior:

  1. Add a special question like What does const [thing, setThing] = useState() mean? in qna file of a dialog. Add a lu file as well for that dialog
  2. Cross-train the lu and qna files with cross-train cli
  3. Publish the cross-trained lu file
  4. You will see the exception like Luis build failed: Found a group without an or field '|' in the pattern.

Expected behavior

No exceptions are thrown

Screenshots

If applicable, add screenshots to help explain your problem.

Additional context

Add any other context about the problem here.

[bug]

Activity

  1. added this to the R12 milestone on Nov 30, 2020
  2. changed the title [-]Cross-train should remove all patterns in crosstrained results to avoid introducing pattern validation failures in luis build[/-] [+]Cross-train should filter qna questions with brackets in crosstrained lu results to avoid introducing pattern validation failures in luis build[/+] on Dec 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions