mirror of
https://github.com/facebook/duckling.git
synced 2024-10-27 14:26:54 +03:00
003604dce7
Summary: This is the next step for: https://fb.facebook.com/groups/527352907463243/permalink/600056483526218/ This: * changes the time language to be able to track contradictions (`EmptyPredicate`) * changes the time language to be able to collect non-contradicting pieces, like month and hour and unify them * provides an efficient way to convert those pieces into (past,future) time series * adds AMPM predicate runner - there's a bit of overlap with is12H, but it basically works * changes a test case that was wrong before * regenerates classifiers, I'm not sure why they changed exactly Before: ``` res <- H.io $ let sentence = "10am thurs 4.30 thurs 12pm sat" in (debugTokens sentence $ analyze sentence (testContext {lang = EN}) HashSet.empty) (15.50 secs, 6,171,188,928 bytes) res <- H.io $ let sentence = "I have 9 am 12 pm 1 pm 2pm 4 pm 3 pm on Saturday" in (debugTokens sentence $ analyze sentence (testContext {lang = EN}) HashSet.empty) (110.82 secs, 44,031,569,512 bytes) ``` After: ``` res <- H.io $ let sentence = "10am thurs 4.30 thurs 12pm sat" in (debugTokens sentence $ analyze sentence (testContext {lang = EN}) HashSet.empty) (1.24 secs, 703,020,912 bytes) res <- H.io $ let sentence = "I have 9 am 12 pm 1 pm 2pm 4 pm 3 pm on Saturday" in (debugTokens sentence $ analyze sentence (testContext {lang = EN}) HashSet.empty) (9.51 secs, 5,891,109,592 bytes) ``` Reviewed By: JonCoens Differential Revision: D4676812 fbshipit-source-id: 9810203 |
||
---|---|---|
.. | ||
AR.hs | ||
DA.hs | ||
DE.hs | ||
EN.hs | ||
ES.hs | ||
ET.hs | ||
FR.hs | ||
GA.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 |