小编And*_*her的帖子

使用Python从文本中删除非英语单词

我正在对python进行数据清理练习,我正在清理的文本包含我想删除的意大利语单词.我一直在网上搜索我是否可以使用像nltk这样的工具包在Python上执行此操作.

例如给出一些文字:

"Io andiamo to the beach with my amico."
Run Code Online (Sandbox Code Playgroud)

我想留下:

"to the beach with my" 
Run Code Online (Sandbox Code Playgroud)

有谁知道如何做到这一点?任何帮助将非常感激.

python data-cleaning data-science

14
推荐指数
2
解决办法
2万
查看次数

标签 统计

data-cleaning ×1

data-science ×1

python ×1