📜  从文本中删除停用词 - Python 代码示例

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

代码示例1
pattern = re.compile(r'\b(' + r'|'.join(stopwords.words('english')) + r')\b\s*')
text = pattern.sub('', "eswar and co and the smartext kid")