mirror of
https://github.com/facebook/duckling.git
synced 2025-01-07 06:19:10 +03:00
6f560efa7b
Summary: Parts of day are time ranges, e.g. "tonight" is a range from 6:00pm to midnight. We have intersect logic in place to resolve a string like "tonight at 7pm" to one time, at 7pm. But if the time is outside of the part of day's range (e.g. "tonight at 5pm"), the string is resolved to 2 separate times ("tonight" and "at 5pm"). These changes resolve e.g. "tonight at xx" to "xx" irrespective of the range of tonight, as long as the am/pm makes sense (so "tonight at 5am" would still resolve to 2 separate times - "tonight" and at "5am"). "this/early morning at xx" gets resolved to "xx am". All other parts of day get resolved to "xx pm", with one exception: all parts of day resolve "... at 12" to midnight. Differential Revision: D17694898 fbshipit-source-id: 1e24023759bb942659285d18a6a4d0b09f77c9da |
||
---|---|---|
.. | ||
Duckling | ||
TestMain.hs |