mirror of
https://github.com/facebook/duckling.git
synced 2025-01-08 15:00:59 +03:00
498e8b16e6
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 |
||
---|---|---|
.. | ||
AmountOfMoney | ||
Dimensions | ||
Distance | ||
Duration | ||
Engine | ||
Numeral | ||
Ordinal | ||
PhoneNumber | ||
Quantity | ||
Ranking | ||
Regex | ||
Rules | ||
Temperature | ||
Testing | ||
Time | ||
TimeGrain | ||
Types | ||
Url | ||
Volume | ||
Api.hs | ||
Core.hs | ||
Debug.hs | ||
Dimensions.hs | ||
Engine.hs | ||
Locale.hs | ||
Resolve.hs | ||
Rules.hs | ||
Types.hs |