atizo / PyTagCloud

Create beautiful tag clouds as images or HTML
https://labs.atizo.com/software/#pytagcloud
BSD 3-Clause "New" or "Revised" License
397 stars 128 forks source link

Bug in get_tag_count #20

Open FrancisMurillo opened 10 years ago

FrancisMurillo commented 10 years ago

I tried running the example code on Python 3.

I get an iteritems() error on get_tag_count. Replacing iteritems() to items() does the trick.

However by looking at the counted variable in that function, it returns an empty dictionary where as the words variable is non-empty.

It seems the s.guess(words) loads "german", not "english", which might have caused the counted variable to be empty because of the improper stop words used.

Here is my a screenshot of my fix capture

Great library by the way, kudos.

AZaitzeff commented 8 years ago

I had the same problem and this solution works