Open ffos opened 5 years ago
Hey @ffos , Indeed, locutions such as "for 7 tomorrow" or "for 7 on wednesday" are not resolved by our datetime parser as they are slightly too ambiguous. The following alternatives work though:
It is always a bit risky to extend the datetime grammar as it may have unexpected side effects. For instance, if you take the sentence "find me a table for 4 on wednesday", it is not clear wether "4" refers to a time or a number of people.
Do you think the alternatives provided above could be good enough ? Cheers
Hi Adrien - First, many thanks to your team for building and releasing snips-nlu; it's an impressive tech that has moved us away from AWS Lex.
Re: this issue, thanks for your comment and clarifying how it can be ambiguous. I can see your argument. What I left out in the issue (and apology) is that we are also applying a single filter when making the request to snips. In each case we are making the request using a known context in the conversation of finding time as follows:
engine.parse(input_text, ['find_time'])
So, we have a situation where "for 7" (tested in version 0.20.1) unambiguously resolves to datetime, whereas "for 7 tomorrow" doesn't. We can't accomodate the alternatives though because the user of the system could naturally reply with utterances starting with "for
At the moment, we are thinking of falling back to a different intent definition of looking specifically for
This is the opposite of /issues/676. In this case, we want the number to be identified as a date, but it isn't in some cases
dataset.yaml:
After model is built and run, following are the outputs: Expected output (no bug case):
Unexpected output (bug):
Expected time:
"2019-09-13 07:00:00 +10:00"
Unexpected output (bug),
Expected time:
"2019-09-18 07:00:00 +10:00"
Environment: