Skip to content

Instantly share code, notes, and snippets.

@sai-teja-ponugoti
Created June 9, 2020 21:50
Show Gist options
  • Save sai-teja-ponugoti/d864d18cc6f8e16809a8aad58fb03f68 to your computer and use it in GitHub Desktop.
Save sai-teja-ponugoti/d864d18cc6f8e16809a8aad58fb03f68 to your computer and use it in GitHub Desktop.
# importing NLTK libarary stopwords
import nltk
from nltk.corpus import stopwords
nltk.download('stopwords')
stopwords_default = stopwords.words('english')
print(len(stopwords_defaut))
stopwords_default.append('like')
, 'marvel', 'ghost'])
print(len(stopwords_default))
# for adding multiple words
stopwords_default.extend(['marvel', 'ghost'])
print(len(stopwords_default))
@Herzeg137
Copy link

It's not working

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment