-
Notifications
You must be signed in to change notification settings - Fork 484
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixing Issue#3568, bot receives a utterances smaller than the entity indexes #4456
Fixing Issue#3568, bot receives a utterances smaller than the entity indexes #4456
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🕐
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@arielcintra Can you make a no-op change to the PR so it reruns the checks? Not sure why we're not able to rerun them on our end. |
@tdurnford they can be re-run from the Azure devops Pipeline, using the commit hash. They are running now. |
Oh, sorry ... that did not work. Presumably because this PR is from a fork? |
@arielcintra It looks like your branch is based on Thanks @BruceHaley for investigating! |
@arielcintra , could you please look at the message above to resolve the failing checks? Thank you. |
Close this PR out:
@arielcintra This looks like a great fix, and we would like to take it. Please update / re-open the PR with a Unit Test and address the merge issue so we can take it. |
Fixes #
Description
I've got the same issue as described on https://github.com/microsoft/botframework-solutions/issues/3568 and as analyzing the bot framework code and my LUIS applications, my team could get to the result that the code is trying to peform a substring on a utterance with bigger entities indexes.
Specific Changes
The change performed was to verirfy if the utterance length is smaller or equals to the entity size (endIndex - startIndex) and, as a suggestion, return the utterance, if not continues to perform the substring as always.
I putted as suggestion so you guys analyze if it does not impact other parts of the framework. None of the unit test were broken with the change.
Testing