Issue when there is 'zéro' before other letters
Closed this issue · 2 comments
Mickaelh51 commented
Ex OK:
data_zero = 'zéro'
print(alpha2digit(data_zero, 'fr'))
0
Ex: NOK:
data1 = 'a a un trois sept trois trois sept cinq quatre zéro c c'
data2 = 'b b un trois sept trois trois sept cinq quatre zéro d d'
print(alpha2digit(data1, 'fr'))
print(alpha2digit(data2, 'fr'))
a a 1 3 7 3 3 7 5 4 zéro c c
b b 1 3 7 3 3 7 5 4 zéro d d
We can see zéro
is not transform to digit 0.
thanks in advance for your help
have a good day
Mickaelh51 commented
idem for this example:
data_3 = 'sept un zéro'
result: 7 un 0
rtxm commented
Thanks for your feedback.