You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As per num2words usage, below is the format:
num2words [options]
The language option is -l --lang= and for Arabic language ar should be specified under value.
When tried, it gave error and display usage:
$ num2words --lang=ar 10
10'Num2Word_AR' object has no attribute 'str_to_number'
So I used a wrapper script with below contents and run with python3 script.py and it worked:
------------------8<-----------------------
from num2words import num2words
from sys import argv