📜  删除标点符号和特殊字符 nltk - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:03.629000             🧑  作者: Mango

代码示例1
traindf['title'] =traindf['title'].apply(lambda x: ' '.join([re.sub('[^a-zA-Z]' , "",word) for word in x.split() 
                                                            ]))