我正在对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)
有谁知道如何做到这一点?任何帮助将非常感激.