mirror of
https://github.com/facebook/duckling.git
synced 2024-11-28 08:34:46 +03:00
4ef255e577
Summary: generalize chinese digit specifier (十百千万亿) parsing, and add hanzi tests These digits specifiers can be parsed as (<num><speci>)<num>, by using the multiplicater value <num><speci>, and a connect function that adds them together (two cases, skipping digits [which requires a 零 in between], and digits in consecutive locations). Note that 个 is technically a digit specifier, but in Chinese it is never used directly as a numeral specifier, and always as a counter. Reviewed By: zliu41 Differential Revision: D7424249 fbshipit-source-id: 20a85a7df1f908ee9879e92b904178fa26a9a5e5 |
||
---|---|---|
.. | ||
Asserts.hs |