duckling/Duckling
Alex Torres 498e8b16e6 fix pt rules for numeral
Summary:
When I write "dois mil e duzentos" the result should be 2200, but duckling recognize the numbers separated and give the result:

`[{"dim":"number","body":"dois","value":{"value":2,"type":"value"},"start":0,"end":4},{"dim":"number","body":"mil","value":{"value":1000,"type":"value"},"start":5,"end":8},{"dim":"time","body":"mil","value":{"values":[],"value":"1000-01-01T00:00:00.000-07:53","grain":"year","type":"value"},"start":5,"end":8},{"dim":"number","body":"duzentos","value":{"value":200,"type":"value"},"start":11,"end":19}]`

Now with this commit, duckling gives the correct result:

`[{"dim":"number","body":"dois mil e duzentos","value":{"value":2200,"type":"value"},"start":0,"end":19}]`
Closes https://github.com/facebook/duckling/pull/117

Reviewed By: blandinw

Differential Revision: D6477925

Pulled By: patapizza

fbshipit-source-id: 26ab503cc8def739c51ceb5bae7546016ba65ad6
2017-12-04 18:00:36 -08:00
..
AmountOfMoney Numeral/FR: allow space as a thousand separator 2017-10-17 12:20:32 -07:00
Dimensions Support for Greek times and dates 2017-12-04 16:45:40 -08:00
Distance Added Distance and Volume Dimensions for Russian language 2017-11-08 11:00:31 -08:00
Duration Support for Greek times and dates 2017-12-04 16:45:40 -08:00
Email Email/EN: Allow 'dot' in emails. 2017-12-04 14:01:10 -08:00
Engine Make matching anywhere vs at pos obvious 2017-04-28 09:19:20 -07:00
Numeral fix pt rules for numeral 2017-12-04 18:00:36 -08:00
Ordinal Support Greek ordinals 2017-11-08 11:00:31 -08:00
PhoneNumber Locales support 2017-10-13 08:34:21 -07:00
Quantity Added Quantity dimension to Russian language 2017-11-14 21:00:28 -08:00
Ranking fix pt rules for numeral 2017-12-04 18:00:36 -08:00
Regex Initial commit 2017-03-08 10:33:56 -08:00
Rules Support for Greek times and dates 2017-12-04 16:45:40 -08:00
Temperature Locales support 2017-10-13 08:34:21 -07:00
Testing Locales support 2017-10-13 08:34:21 -07:00
Time Support for Greek times and dates 2017-12-04 16:45:40 -08:00
TimeGrain Support for Greek times and dates 2017-12-04 16:45:40 -08:00
Types Don't allow matches in the middle of words 2017-08-17 15:49:26 -07:00
Url Revert Duckling part of 'clean up unused imports' 2017-04-24 07:34:27 -07:00
Volume Added Distance and Volume Dimensions for Russian language 2017-11-08 11:00:31 -08:00
Api.hs Locales support 2017-10-13 08:34:21 -07:00
Core.hs Locales support 2017-10-13 08:34:21 -07:00
Debug.hs Locales support 2017-10-13 08:34:21 -07:00
Dimensions.hs Support Greek numerals 2017-11-02 17:16:18 -07:00
Engine.hs Locales support 2017-10-13 08:34:21 -07:00
Locale.hs Support Greek numerals 2017-11-02 17:16:18 -07:00
Resolve.hs Locales support 2017-10-13 08:34:21 -07:00
Rules.hs Support Greek numerals 2017-11-02 17:16:18 -07:00
Types.hs Time/EN: don't parse "this in 2 minutes" + fix thanksgiving in EN locales 2017-10-31 12:34:21 -07:00