lmoroney / dlaicourse

Notebooks for learning deep learning
5.66k stars 5.37k forks source link

stopword appears in word_index #71

Open JasonGitHub opened 4 years ago

JasonGitHub commented 4 years ago
for row in reader:
        labels.append(row[0])
        sentence = row[1]
        for word in stopwords:
            token = " " + word + " " 

This part of code is buggy, as any stop word appearing at the end of sentence is ignored.

By checking word_index, for example, "to" appeared. Please kindly fix the issue.