Bixby: this weekend, next weekend is returning the same value

二次信任 提交于 2019-12-13 04:45:17

问题


Today i am testing my app and trying to modify the static message i am providing to user. So

On 2019-05-07 1: When i say, next weekend, it returned start day 2019-05-10 and end day 2019-05-12 and also giving me extra information like offset: Next and namedTimeIntervalRel: Weekend. But I hit the next weekend query again so the extra information won't appear and the date was same. I need extra information so that i could message user that this result is for next weekend.

2: When i say this weekend, It returned the same date and extra information as well and no matter how many time I hit the this weekend query, every time I get the extra information.

So, How would i get the extra information every time and why next weekend is this weekend?

If extra information is not possible, is there any way i can calculate and find whether user asked for this weekend or next or next month and so on?


回答1:


I am able to reproduce the issue (not seeing the offset and namedTimeIntervalRel) as you have described it. This could potentially be a bug. I'd suggest that you raise it with Bixby Developer Support through Bixby Studio Help -> Contact Support so you can track it and be notified when it is fixed.

As regards to this weekend and next weekend, Bixby's convention appears to similar to this interpretation: https://english.stackexchange.com/questions/29104/this-weekend-vs-next-weekend




回答2:


Here is a workaround for strange selection when repeating utterance with "this weekend" or "tonight"

add default-select

    input (dateTimeExpression) {
      type (MyDateTimeExpression)
        min (Optional)
      default-select {
        with-rule: select-first
      }
    }

Adding this may require some other changes as now it will select first dateTimeExpression when there is more than one.

And for the "this weekend" vs "next weekend" issue, I would suggest using conversation drives as a continuation of search result. You can construct "How about next day/week/weekend" as conversation driver depend on the input (this would not be easy, but definitely possible).

So, when user ask about next weekend Bixby will display this weekend result, but user can easily check next weekend result by click conversation drives or say "next weekend"

Hope this would help. Have fun with Bixby!



来源:https://stackoverflow.com/questions/56023687/bixby-this-weekend-next-weekend-is-returning-the-same-value

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!