mirror of
https://github.com/facebook/duckling.git
synced 2024-10-26 21:59:44 +03:00
328e59ebc4
Summary: I'm using Duckling in my project but I noticed that quantities in kg weren't being detected correctly, though other entities such as numeral/volume were all working as expected. Investigating more I noticed that this was just because in Portuguese the Quantity entity was only configured to detect cups and pounds, never grams. And even for cups/pounds, products weren't being detected correctly. So I've just adapted the rules from English Quantity to work in Portuguese as well, while keeping the cups/pounds too. It's all working as expected now and it's backwards compatible. Pull Request resolved: https://github.com/facebook/duckling/pull/631 Reviewed By: stroxler Differential Revision: D29701339 Pulled By: chessai fbshipit-source-id: fca08a14c50844d418f101b885ca54554d993f58 |
||
---|---|---|
.. | ||
Corpus.hs | ||
Rules.hs |