This commit is contained in:
bobloy 2018-05-12 18:26:03 -04:00
parent c42ba7cc8c
commit 5ae4246aa6

@ -225,7 +225,7 @@ class TwitterTrainer(Trainer):
for word in tweet_words:
# If the word contains only letters with a length from 4 to 9
if word.isalpha() and len(word) > 3 and len(word) <= 9:
if word.isalpha() and 3 < len(word) <= 9:
words.add(word)
return words