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.
Duplicate utterances create malformed LUIS JSON #509
Duplicate utterances under an intent in a LU file results in a malformed LUIS JSON that cannot be imported into LUIS. The resulting errors from LUIS do not help to diagnose the issue.
Description
If a LU file has two instances of the same utterance under an intent, e.g.:
no, i already have meeting {FromTime=3pm} {FromDate=tomorrow} afternoon
no, i already have meeting {FromTime=3pm} {FromDate=tomorrow} afternoon
bf luis:convert then generates the following malformed JSON fragment whereby there are overlapping entities (startpos, endpos)
ludown CLI gracefully handled this situation whereby it ignored the extra instance however the new bf luis:convert CLI generates a malformed element whereby it duplicates the entities under the same utterance likely due to it grouping them together.
Suggested way forward
bf luis:convert display a warning message about a duplicate utterance and drop it still generating the LUIS file (which ludown did). Alternatively you can stop processing and display a clear error as to which intent/utterance is causing the issue
Activity