text_plain_output_1.png
from nltk.corpus import stopwords

from nltk.tokenize import word_tokenize, sent_tokenize

from string import punctuation

text = 'Mary had a little lamb. Her fleece was white as snow'

customStopWords = set(stopwords.words('english') + list(punctuation))

wordsWOStopwords = [word for word in word_tokenize(text) if word not in customStopWords]

print(wordsWOStopwords)