Created
August 4, 2020 03:06
-
-
Save abhishek-shrm/502be4077635a8c6269057f5465f28a4 to your computer and use it in GitHub Desktop.
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
# Removing extra spaces | |
training_corpus['cleaned']=training_corpus['cleaned'].apply(lambda x: re.sub(' +',' ',x)) | |
testing_corpus['cleaned']=testing_corpus['cleaned'].apply(lambda x: re.sub(' +',' ',x)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment