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

In some cases, wrong detection of TimeInterval when year is written only once #682

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

Comments

@joffreyvillard
Copy link

Hi again,

Sometimes, when the year is only written once for a month-based time interval, the "from" is totally wrong.

Joffrey

"Between May and October 2018" > wrong (see 2007 in the "from")

{
  "entity": "snips/datetime",
  "range": {
    "end": 28,
    "start": 0
  },
  "rawValue": "Between May and October 2018",
  "slotName": "date-time",
  "value": {
    "from": "2007-05-01 00:00:00 +02:00",
    "kind": "TimeInterval",
    "to": "2018-11-01 00:00:00 +01:00"
  }
}

"Between May and October 2017" > ok

{
  "entity": "snips/datetime",
  "range": {
    "end": 28,
    "start": 0
  },
  "rawValue": "Between May and October 2017",
  "slotName": "date-time",
  "value": {
    "from": "2017-05-01 00:00:00 +02:00",
    "kind": "TimeInterval",
    "to": "2017-11-01 00:00:00 +01:00"
  }
}

"Between May 2018 and October 2018" > ok

{
  "entity": "snips/datetime",
  "range": {
    "end": 33,
    "start": 0
  },
  "rawValue": "Between May 2018 and October 2018",
  "slotName": "date-time",
  "value": {
    "from": "2018-05-01 00:00:00 +02:00",
    "kind": "TimeInterval",
    "to": "2018-11-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