Created
June 10, 2021 03:34
-
-
Save Nithilaa/e613b8d2197c44f6a15f962f8d44829f to your computer and use it in GitHub Desktop.
lemmatization
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
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