Created
March 16, 2018 17:51
-
-
Save sayeedul/d8bc6b7069d4b723365378700e6d1f3b 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
noise_list = ["is", "a", "this", "..."] | |
def _remove_noise(input_text): | |
words = input_text.split() | |
noise_free_words = [word for word in words if word not in noise_list] | |
noise_free_text = " ".join(noise_free_words) | |
return noise_free_text | |
print(_remove_noise("this is a sample text") ) | |
''' import Image | |
Image.show('audio.jpg') ''' | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment