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.
(我不關心大小寫)。
我希望我沒有做例子中的任何錯誤(英語不是我的母語) 。 –