diff options
author | cedricbonhomme <devnull@localhost> | 2010-10-21 13:53:23 +0200 |
---|---|---|
committer | cedricbonhomme <devnull@localhost> | 2010-10-21 13:53:23 +0200 |
commit | 6d6b6c57f8496597f7495e3e3a5b6a616518e368 (patch) | |
tree | 842719d62d8ddac237b6ee96e7a4e54daaae5b32 /utils.py | |
parent | Improvements of the result page for the search). (diff) | |
download | newspipe-6d6b6c57f8496597f7495e3e3a5b6a616518e368.tar.gz newspipe-6d6b6c57f8496597f7495e3e3a5b6a616518e368.tar.bz2 newspipe-6d6b6c57f8496597f7495e3e3a5b6a616518e368.zip |
Improvements of the regular expression for tag clouds and search.
Diffstat (limited to 'utils.py')
-rwxr-xr-x | utils.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -162,7 +162,7 @@ def top_words(dic_articles, n=10, size=5): Return the n most frequent words in a list. """ words = Counter() - wordre = re.compile(r'\b\w{%s,}\b' % size) + wordre = re.compile(r'\b\w{%s,}\b' % size, re.I) for rss_feed_id in dic_articles.keys(): for article in dic_articles[rss_feed_id]: for word in wordre.findall(clear_string(article[4].encode('utf-8'))): |