mirror of
https://github.com/facebook/duckling.git
synced 2024-12-01 08:19:36 +03:00
7a6c2597af
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 |
||
---|---|---|
.. | ||
AR.hs | ||
CS.hs | ||
DA.hs | ||
DE.hs | ||
EN.hs | ||
ES.hs | ||
ET.hs | ||
FR.hs | ||
GA.hs | ||
HE.hs | ||
HR.hs | ||
ID.hs | ||
IT.hs | ||
JA.hs | ||
KO.hs | ||
MY.hs | ||
NB.hs | ||
NL.hs | ||
PL.hs | ||
PT.hs | ||
RO.hs | ||
RU.hs | ||
SV.hs | ||
TR.hs | ||
UK.hs | ||
VI.hs | ||
ZH.hs |