Skip to content

Instantly share code, notes, and snippets.

@sayeedul
Created March 16, 2018 17:51
Show Gist options
  • Save sayeedul/d8bc6b7069d4b723365378700e6d1f3b to your computer and use it in GitHub Desktop.
Save sayeedul/d8bc6b7069d4b723365378700e6d1f3b to your computer and use it in GitHub Desktop.
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