Off the top of my head:
perl -MLingua::EN::Numbers -pe 's/(\d\S+)/Lingua::EN::Numbers::num2en( +$1) || $1/ge' < input_file > output_file
This will attempt to change anything that starts with a digit. You might want a more specific pattern. Also, it uses Lingua::EN::Numbers instead of the one you listed (Lingua::Numbers2words, which I didn't find). I haven't tested this.
In reply to Re: change numbers in a corpus into words
by kyle
in thread change numbers in a corpus into words
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |