Skip to content
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

Inconsistency for TimeIntervals #680

Open
joffreyvillard opened this issue Oct 16, 2018 · 0 comments
Open

Inconsistency for TimeIntervals #680

joffreyvillard opened this issue Oct 16, 2018 · 0 comments

Comments

@joffreyvillard
Copy link

joffreyvillard commented Oct 16, 2018

Hi,

I found the inconsistency below for TimeIntervals (see the to field)
In such sentences, we know that the expected result depends on the user (there is not a single good answer that everyone agrees with), but it seems that at least the output should be consistent, so that each application could apply its own rule.
What do you think?

EDIT: btw, the reported issue about grains missing for TimeIntervals (#678) prevents from implementing a robust workaround for this one :(

Thanks in advance!

Joffrey

"between 2016 and 2017"

{
  "entity": "snips/datetime",
  "range": {
    "end": 21,
    "start": 0
  },
  "rawValue": "between 2016 and 2017",
  "slotName": "date-time",
  "value": {
    "from": "2016-01-01 00:00:00 +01:00",
    "kind": "TimeInterval",
    "to": "2018-01-01 00:00:00 +01:00"
  }
}

"from 2016 to 2017"

{
  "entity": "snips/datetime",
  "range": {
    "end": 17,
    "start": 0
  },
  "rawValue": "from 2016 to 2017",
  "slotName": "date-time",
  "value": {
    "from": "2016-01-01 00:00:00 +01:00",
    "kind": "TimeInterval",
    "to": "2017-01-01 00:00:00 +01:00"
  }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant