Created
January 27, 2021 06:56
-
-
Save letthedataconfess/3be789b4f3f21d65182902c42dad123c to your computer and use it in GitHub Desktop.
sentiment analysis
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
nltk.download('wordnet') | |
lemmatizer=WordNetLemmatizer() | |
df['review']=df.review.apply(lambda x:[lemmatizer.lemmatize(word) for word in x]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment