You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 15, 2025. It is now read-only.
Repository navigation
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
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:
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
Cross-train the lu and qna files with cross-train cli
Publish the cross-trained lu file
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.
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
Activity
[-]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[/+]