duckling_old
duckling_old copied to clipboard
Online demo is inconsistent with code
trafficstars
The online demo sometimes gives different results than running play using the checked out code.
For example, for the query "friday at 12", the online demo gives noon (Friday, 20 February 2015 at 12:00:00 +0000 (UTC)), but the code gives midnight ("2015-02-20T00:00:00.000-08:00"):

duckling.core=> (play :en$core "friday at 12" nil (default-context :now))
W ------------ 10 | time | intersect | P = -13.5983 | named-day + at <time
----- 9 | time | at <time-of-day> | P = -4.0981 | + time-of-day (late
W -- 8 | volume | number as volume | P = -1.9832 | integer (numeric)
W -- 7 | distance | number as distance | P = -1.7585 | integer (numeric)
W -- 6 | temperature | number as temp | P = -2.0846 | integer (numeric)
-- 5 | null | number (as relative minutes) | P = -0.9287 | integer (numeric)
-- 4 | time | time-of-day (latent) | P = -0.8760 | integer (numeric)
-- 3 | time | year (latent) | P = -1.1828 | integer (numeric)
W -- 2 | number | integer (numeric) | P = -0.1219 |
------ 1 | time | named-day | P = 0.0000 |
friday at 12
5 winners:
number {:type "value", :value 12} {:integer true}
temperature (latent) {:type "value", :value 12} {}
distance (latent) {:type "value", :value 12} {}
volume (latent) {:type "value", :value 12} {}
time {:type "value", :value "2015-02-20T00:00:00.000-08:00", :grain :hour} {}
For further info: (details idx) where 1 <= idx <= 10
#'duckling.core/token
Thanks!