rustling-ontology icon indicating copy to clipboard operation
rustling-ontology copied to clipboard

Error in parsing money with billion + small number at the end

Open niedakh opened this issue 7 years ago • 1 comments

Parsing Error

Version

commit a24b00e54b69216446981e319588635ee4ee2269 (HEAD -> develop, tag: 0.17.4, origin/develop, origin/HEAD)

Language

en

Parser input

Okay, um, your total is one billion three dollars and that is it?

Parser output

+----+-------------+-----------+-------------------------------------------------------------------+-----------------------------------------------------------------------------------------------+
| ix | log(p)      | p         | text                                                              | value                                                                                         |
+====+=============+===========+===================================================================+===============================================================================================+
| 0  | -0.11813116 | 0.8885795 | ________________________one billion three dollars________________ | AmountOfMoney(AmountOfMoneyOutput { value: 1000000000.0, precision: Exact, unit: Some("$") }) |
+----+-------------+-----------+-------------------------------------------------------------------+-----------------------------------------------------------------------------------------------+

Parser expected output (Optional)

+----+-------------+-----------+-------------------------------------------------------------------+-----------------------------------------------------------------------------------------------+
| ix | log(p)      | p         | text                                                              | value                                                                                         |
+====+=============+===========+===================================================================+===============================================================================================+
| 0  | -0.11813116 | 0.8885795 | ________________________one billion three dollars________________ | AmountOfMoney(AmountOfMoneyOutput { value: 1000000003.0, precision: Exact, unit: Some("$") }) |
+----+-------------+-----------+-------------------------------------------------------------------+-----------------------------------------------------------------------------------------------+

niedakh avatar Aug 08 '18 12:08 niedakh

To do: check together with https://github.com/snipsco/rustling-ontology/issues/170

rosastern avatar Sep 27 '19 09:09 rosastern