[TimexExpression] Option to start week on sunday
Hi,
We are using LUIS for one of our customers in UAE where the week starts on Sunday. Currently when we say "for the last 2 weeks" the phrase is resolved for 2 weeks back, but started on Monday.
We would like to be able to configure the starting day of the week (set to Sunday)
Thanks!
Hi @kirsanau, in the current design, the process for such cases would be to get the response from LUIS and re-resolve it using the TimexExpression lib and pass the week definition as context to get a new resolution according to it. The lib exists in the lab and also as packages, but this specific feature is not yet implemented in it. We can prioritize it and include it in release vNext+1. Would that address your need?
Hi @tellarin,
Thanks for response. Not sure if I got your idea right - do you propose
- send the expression to Luis
- get the resolved value
- manually check if it corresponds to this case (because other luis responses are fine we rely on them)
- if not week related - proceed normal
- if week related - re-resolve week issues with lib and new week definition
is kind of work around, but not really what we are looking for. the response of lib and luis differs, and we already have done some extra after-processing to unify it in bot framework.
Ideally it should be param of luis.
The recognizers project is separate from LUIS and we can't commit to changes on their side. In this case you'd need to reach out to their team and perhaps they can expose customization of the resolution, which would basically be the same process calling the lib feature, but on their service.
If you can share the differences you mentioned in a separate Issue or maybe in a GitHub Discussion that would be very helpful. There should be no difference between a LUIS-based resolution and a non-customized result from the timexresolver lib.
+1 for the feature request.
@tellarin , the current Recognizer follows ISO8601 standard that starts a week from Monday. However, in some countries (including US, Canada), a week starts from Sunday. It would be great if the Recognizer can be configurable about this.