You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
Great library by the way, kudos.
The text was updated successfully, but these errors were encountered:
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
Great library by the way, kudos.
The text was updated successfully, but these errors were encountered: