0
Pythons NLTK是否提供了一种功能,可以用英文名称替换文本中的数字?NLTK是否可以用英文单词替换数字?
例如:
You had 1 job. -> You had one job.
42 is the answer. -> Fourty-two is the answer.
3.14 is almost pi -> Three point one four is almost pi.
(我不关心大小写)。
我希望我没有做例子中的任何错误(英语不是我的母语) 。 –