Subin Alex
1 min readMar 22, 2019

--

I am getting syntax error while running this,

File "<ipython-input-7-2fb73f3d7be8>", line 7
filtered_sentence = [w for w in word_tokens if not w in stop_words] filtered_sentence = [] for w in word_tokens: if w not in stop_words: filtered_sentence.append(w) print(filtered_sentence)
^
SyntaxError: invalid syntax

--

--

No responses yet