Skip to content

Instantly share code, notes, and snippets.

@Nithilaa
Created June 10, 2021 03:34
Show Gist options
  • Save Nithilaa/e613b8d2197c44f6a15f962f8d44829f to your computer and use it in GitHub Desktop.
Save Nithilaa/e613b8d2197c44f6a15f962f8d44829f to your computer and use it in GitHub Desktop.
lemmatization
lemmer = WordNetLemmatizer()
%time df2['Review_Processed'] = df2['Review_Processed'].map(lambda x : ' '.join([lemmer.lemmatize(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