word_list = "love does not make the world go round. love is what makes the ride worthwhile"
from nltk.corpus import stopwords
for word in word_list:
#print word
if word in stopwords.words('english'):
#print word #print out stopword for checking
word_list.remove(word)
else:
print word
たとえば...私のword_listには...「愛は世界を一周させるものではありません。愛は乗り心地を価値あるものにするものです」
ストップワード以外のすべての単語を印刷したい...
しかし、それは愛、作る、行く、丸める、愛する、作る、価値があるだけを印刷します.......「世界、乗る」という言葉は印刷されません..誰もがそれを解決する方法を知っていますか?ありがとうございました...