allo-media/text2num

raises KeyError for Portuguese

Closed this issue · 6 comments

Thanks for providing this package. Unfortunately I receive an for Portuguese:

!pip install text2num
from text_to_num import text2num
text2num("trinta e dois", "pt")

Thanks,
Felix

rtxm commented
In [1]: from text_to_num import text2num

In [2]: text2num("trinta e dois", "pt")
Out[2]: 32

Which version of text2num do you use?

rtxm commented

Spanish Portuguese support has not been released yet, it's in master only.
It's been stable for a while now. I'll make a new release.

rtxm commented

Sorry for the typo! Please be assured that I don't confuse Portuguese with Spanish.
Text2num 2.3.0 with Portuguese support is fresh on Pypi!
Enjoy!