📜  删除停用词 - Python 代码示例

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

代码示例2
traindf['title'] = traindf['title'].apply(lambda x: ' '.join([word for word in x.lower().split() if word not in 
                                                            stopwords.words('english') and string.punctuation]))