Created
June 10, 2021 03:33
-
-
Save Nithilaa/dee06e3d6ce728f86d1b72b62a4b1a6d to your computer and use it in GitHub Desktop.
remove stopwords
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from nltk.stem import WordNetLemmatizer | |
from nltk.corpus import stopwords | |
stop_words = stopwords.words('english') | |
%time df2['Review_Processed'] = df2['Review_Processed'].map(lambda x : ' '.join([w for w in x.split() if w not in stop_words])) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment