Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug in get_tag_count #20

Open
FrancisMurillo opened this issue Jul 12, 2014 · 1 comment
Open

Bug in get_tag_count #20

FrancisMurillo opened this issue Jul 12, 2014 · 1 comment

Comments

@FrancisMurillo
Copy link

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
Copy link

I had the same problem and this solution works

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants