duckling/Duckling/Time
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 Refactored weekend rules to use the weekend helper for all languages 2017-08-22 10:34:24 -07:00
DE Refactored weekend rules to use the weekend helper for all languages 2017-08-22 10:34:24 -07:00
EN Don't allow matches in the middle of words 2017-08-17 15:49:26 -07:00
ES Refactored weekend rules to use the weekend helper for all languages 2017-08-22 10:34:24 -07:00
FR Refactored weekend rules to use the weekend helper for all languages 2017-08-22 10:34:24 -07:00
GA Codemod intersectMB to intersect 2017-04-18 10:19:20 -07:00
HE Refactored weekend rules to use the weekend helper for all languages 2017-08-22 10:34:24 -07:00
HR Refactored weekend rules to use the weekend helper for all languages 2017-08-22 10:34:24 -07:00
HU HU Time, TimeGrain 2017-08-22 19:34:33 -07:00
IT Consolidate days of week and months 2017-08-22 15:04:27 -07:00
KO Refactored weekend rules to use the weekend helper for all languages 2017-08-22 10:34:24 -07:00
NB Refactored weekend rules to use the weekend helper for all languages 2017-08-22 10:34:24 -07:00
PL Time/PL: Don't parse ordinals without context 2017-08-24 08:34:33 -07:00
PT Time/PT: don't parse 'um' alone 2017-08-24 21:49:36 -07:00
RO Refactored weekend rules to use the weekend helper for all languages 2017-08-22 10:34:24 -07:00
SV Corrected ordinals for Swedish and updated tests accordingly 2017-08-25 17:04:29 -07:00
TimeZone Initial commit 2017-03-08 10:33:56 -08:00
VI Consolidate days of week and months, for Vietnamese rules 2017-08-24 10:06:18 -07:00
ZH consolidated rules for days of week/months in duckling ZH 2017-08-25 16:34:48 -07:00
Corpus.hs Initial commit 2017-03-08 10:33:56 -08:00
Helpers.hs Time: Fix nthDOWOfMonth 2017-08-01 09:04:31 -07:00
Types.hs Disallow nested intervals 2017-05-10 12:04:18 -07:00