【发布时间】:2015-01-13 02:52:36
【问题描述】:
Pythons 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.
(我不关心大小写)。
【问题讨论】:
-
我希望我在示例中没有犯任何错误(英语不是我的母语)。