Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
sentiment analysis
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