diff options
Diffstat (limited to 'utils.py')
-rwxr-xr-x | utils.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -121,7 +121,7 @@ def top_words(dic_articles, n=10, size=5): for article in dic_articles[rss_feed_id]: words_gen.extend([word.strip(punctuation).lower() \ for word in clear_string(article[4].encode('utf-8')).split() \ - if len(word) > size]) + if len(word) >= size]) words = Counter() for word in words_gen: words[word] += 1 |