Skip to content

Commit

Permalink
Hotfix for inverted stopwords filtering
Browse files Browse the repository at this point in the history
  • Loading branch information
braun-steven committed Feb 7, 2019
1 parent c35958e commit bc3ae6b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ protected List<Datum> collectData(int num) {

// Skip stopwords
tokens = tokens.stream()
.filter(stopwords::isStopword)
.filter(s -> !stopwords.isStopword(s))
.collect(Collectors.toList());

// If tokens are empty, add at least the UNKNOWN_WORD_SENTINEL
Expand Down

0 comments on commit bc3ae6b

Please sign in to comment.