pep8
This commit is contained in:
parent
c42ba7cc8c
commit
5ae4246aa6
@ -225,7 +225,7 @@ class TwitterTrainer(Trainer):
|
|||||||
|
|
||||||
for word in tweet_words:
|
for word in tweet_words:
|
||||||
# If the word contains only letters with a length from 4 to 9
|
# 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)
|
words.add(word)
|
||||||
|
|
||||||
return words
|
return words
|
||||||
|
Loading…
x
Reference in New Issue
Block a user