duckling/Duckling/Ranking/Classifiers
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
..
AR.hs Revert Duckling part of 'clean up unused imports' 2017-04-24 07:34:27 -07:00
BG.hs Setup Bulgarian language and Numeral Dimension 2017-08-09 08:19:24 -07:00
CS.hs CS: Setup + basic Numeral 2017-05-11 09:49:27 -07:00
DA.hs Don't allow matches in the middle of words 2017-08-17 15:49:26 -07:00
DE.hs [Duckling] Time/DE: don't parse 'nächste 5' 2017-08-09 06:49:26 -07:00
EN.hs Don't allow matches in the middle of words 2017-08-17 15:49:26 -07:00
ES.hs Adapting Spanish rules to handles names days and months in the same rules 2017-08-16 09:34:24 -07:00
ET.hs Revert Duckling part of 'clean up unused imports' 2017-04-24 07:34:27 -07:00
FR.hs Time/FR: don't parse 'a un' 2017-08-01 08:49:41 -07:00
GA.hs Initial commit 2017-03-08 10:33:56 -08:00
HE.hs HE: Time 2017-04-28 10:04:35 -07:00
HR.hs Time: don't shift duration on <duration> before/after <time> (but now) 2017-07-26 11:49:44 -07:00
HU.hs HU Time, TimeGrain 2017-08-22 19:34:33 -07:00
ID.hs Revert Duckling part of 'clean up unused imports' 2017-04-24 07:34:27 -07:00
IT.hs Consolidate days of week and months 2017-08-22 15:04:27 -07:00
JA.hs Revert Duckling part of 'clean up unused imports' 2017-04-24 07:34:27 -07:00
KO.hs KO/Time: Fix typo 2017-06-05 08:49:21 -07:00
MY.hs Revert Duckling part of 'clean up unused imports' 2017-04-24 07:34:27 -07:00
NB.hs Don't allow matches in the middle of words 2017-08-17 15:49:26 -07:00
NL.hs Revert Duckling part of 'clean up unused imports' 2017-04-24 07:34:27 -07:00
PL.hs Time/PL: Don't parse ordinals without context 2017-08-24 08:34:33 -07:00
PT.hs Time/PT: don't parse 'um' alone 2017-08-24 21:49:36 -07:00
RO.hs Consolidate days of week and months for Romanian rules 2017-08-17 15:34:19 -07:00
RU.hs Revert Duckling part of 'clean up unused imports' 2017-04-24 07:34:27 -07:00
SV.hs Corrected ordinals for Swedish and updated tests accordingly 2017-08-25 17:04:29 -07:00
TR.hs Revert Duckling part of 'clean up unused imports' 2017-04-24 07:34:27 -07:00
UK.hs Revert Duckling part of 'clean up unused imports' 2017-04-24 07:34:27 -07:00
VI.hs Consolidate days of week and months, for Vietnamese rules 2017-08-24 10:06:18 -07:00
ZH.hs consolidated rules for days of week/months in duckling ZH 2017-08-25 16:34:48 -07:00