Skip to content

Bug in get_tag_count #20

@FrancisMurillo

Description

@FrancisMurillo

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions