duckling/Duckling/TimeGrain
Fredrik Wallén 9b5b7bc6ce Corrected ordinals for Swedish and updated tests accordingly
Summary:
There are problems in the ordinal recognition for Swedish. The most severe one is that all the numbers above 15 are actually Danish, not Swedish. Apart from that digits and digits followed by a dot are considered ordinals.

This pull request fixes this and also adds support for ordinals up to 100. The structure of the code is similar to in the ordinal recognition in English. Tests are also updated, both the ordinal tests and the time tests where incorrect ordinals were used.
Closes https://github.com/facebookincubator/duckling/pull/86

Reviewed By: JonCoens

Differential Revision: D5698145

Pulled By: patapizza

fbshipit-source-id: c31d7bc
2017-08-25 17:04:29 -07:00
..
DA Initial commit 2017-03-08 10:33:56 -08:00
DE Initial commit 2017-03-08 10:33:56 -08:00
EN Initial commit 2017-03-08 10:33:56 -08:00
ES Initial commit 2017-03-08 10:33:56 -08:00
FR Initial commit 2017-03-08 10:33:56 -08:00
GA Initial commit 2017-03-08 10:33:56 -08:00
HE TimeGrain 2017-04-24 06:49:40 -07:00
HR TimeGrain 2017-04-26 09:19:27 -07:00
HU HU Time, TimeGrain 2017-08-22 19:34:33 -07:00
IT Initial commit 2017-03-08 10:33:56 -08:00
JA Initial commit 2017-03-08 10:33:56 -08:00
KO Initial commit 2017-03-08 10:33:56 -08:00
NB Initial commit 2017-03-08 10:33:56 -08:00
PL Initial commit 2017-03-08 10:33:56 -08:00
PT Initial commit 2017-03-08 10:33:56 -08:00
RO Initial commit 2017-03-08 10:33:56 -08:00
SV Corrected ordinals for Swedish and updated tests accordingly 2017-08-25 17:04:29 -07:00
TR Duration for TR 2017-05-31 02:19:40 -07:00
VI VI: TimeGrain 2017-04-28 08:04:21 -07:00
ZH Add Cantonese support to date time into ZH 2017-05-30 07:49:19 -07:00
Types.hs Time: don't shift duration on <duration> before/after <time> (but now) 2017-07-26 11:49:44 -07:00