scrapinghub / number-parser

Parse numbers written in natural language
BSD 3-Clause "New" or "Revised" License
104 stars 23 forks source link

README tests are failing #33

Closed noviluni closed 4 years ago

noviluni commented 4 years ago

When running tox some errors are raised from the README.rst file:

1) This:

>>> output = parse_number("not_a_number")
>>> output
None

should be:

>>> output = parse_number("not_a_number")
>>> output

(removing the None)

2) This:

>>> parse("two thousand thousand")
2000 1000

should be:

>>> parse("two thousand thousand")
'2000 1000'

3)

And there is a trailing space after 1432524 in >>> parse_number("चौदह लाख बत्तीस हज़ार पाँच सौ चौबीस", language='hi')

noviluni commented 4 years ago

Closing as it was fixed in #35 :slightly_smiling_face: