duckling/Duckling/Ranking/Classifiers
Julien Odent 7a6c2597af Time: don't shift duration on <duration> before/after <time> (but now)
Summary:
* `Duration` before/after `Time` now resolves with the lowest grain
* "now" has an undefined grain `NoGrain`, as depending on the context it might mean different things, as opposed to "right now"

Before:
`day after tomorrow` -> `day` grain
`1 day after tomorrow` -> `hour` grain

Given that the reference date/time is `2013-02-12T04:30:00`.
`one year from now` -> `2014-02-01T00:00:00` with `month` grain.
`one year from today` -> `2014-02-01T00:00:00` with `month` grain.

After:
`day after tomorrow` -> `day` grain
`1 day after tomorrow` -> `day` grain
`one year from now` -> `2014-02-12T04:30:00` with `month` grain (remains the same).
`one year from today` -> `2014-02-12T00:00:00` with `day` grain.

For other `Time` entities involving `Duration`, such as "in + `Duration`", the behavior remains the same: shift to the lower grain (the intent is not precise).

Reviewed By: l5t, blandinw

Differential Revision: D5467164

fbshipit-source-id: b63b6a4
2017-07-26 11:49:44 -07:00
..
AR.hs Revert Duckling part of 'clean up unused imports' 2017-04-24 07:34:27 -07:00
CS.hs CS: Setup + basic Numeral 2017-05-11 09:49:27 -07:00
DA.hs Remove ruleIntersect2 2017-03-14 05:04:12 -07:00
DE.hs Various smaller DE time improvements 2017-06-23 07:04:27 -07:00
EN.hs Time: don't shift duration on <duration> before/after <time> (but now) 2017-07-26 11:49:44 -07:00
ES.hs Fix 4:23am returning 5:23am 2017-04-06 11:04:16 -07:00
ET.hs Revert Duckling part of 'clean up unused imports' 2017-04-24 07:34:27 -07:00
FR.hs Add rules for FR Time 2017-06-21 15:04:27 -07:00
GA.hs Initial commit 2017-03-08 10:33:56 -08:00
HE.hs HE: Time 2017-04-28 10:04:35 -07:00
HR.hs Time: don't shift duration on <duration> before/after <time> (but now) 2017-07-26 11:49:44 -07:00
ID.hs Revert Duckling part of 'clean up unused imports' 2017-04-24 07:34:27 -07:00
IT.hs Optimize simple time predicates 2017-03-13 17:04:10 -07:00
JA.hs Revert Duckling part of 'clean up unused imports' 2017-04-24 07:34:27 -07:00
KO.hs KO/Time: Fix typo 2017-06-05 08:49:21 -07:00
MY.hs Revert Duckling part of 'clean up unused imports' 2017-04-24 07:34:27 -07:00
NB.hs NB: Bringing latest changes 2017-04-28 08:04:22 -07:00
NL.hs Revert Duckling part of 'clean up unused imports' 2017-04-24 07:34:27 -07:00
PL.hs Time: don't shift duration on <duration> before/after <time> (but now) 2017-07-26 11:49:44 -07:00
PT.hs Fix 4:23am returning 5:23am 2017-04-06 11:04:16 -07:00
RO.hs Initial commit 2017-03-08 10:33:56 -08:00
RU.hs Revert Duckling part of 'clean up unused imports' 2017-04-24 07:34:27 -07:00
SV.hs Remove ruleIntersect2 2017-03-14 05:04:12 -07:00
TR.hs Revert Duckling part of 'clean up unused imports' 2017-04-24 07:34:27 -07:00
UK.hs Revert Duckling part of 'clean up unused imports' 2017-04-24 07:34:27 -07:00
VI.hs VI: Time 2017-04-28 08:04:21 -07:00
ZH.hs Add Cantonese support to date time into ZH 2017-05-30 07:49:19 -07:00