Skip to content

Instantly share code, notes, and snippets.

Created Apr 11, 2021
What would you like to do?
import nltk
from nltk.corpus import stopwords
from nltk.tokenize import word_tokenize'stopwords')'punkt')
text = "Hi, My name is Aman Kharwal, I am here to guide you to your journey in Machine Learning for free."
tokens = word_tokenize(text)
tokenization = [word for word in tokens if not word in stopwords.words('english')]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment