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

keywords.py AttributeError #503

Closed
hellrich opened this issue Oct 29, 2015 · 2 comments
Closed

keywords.py AttributeError #503

hellrich opened this issue Oct 29, 2015 · 2 comments

Comments

@hellrich
Copy link
Contributor

I tried the example given at http://rare-technologies.com/text-summarization-with-gensim/ and got the following error:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/hellrich/bin/anaconda3/envs/gensimtest/lib/python3.4/site-packages/gensim/summarization/keywords.py", line 198, in keywords
    graph = _build_graph(_get_words_for_graph(tokens))
  File "/home/hellrich/bin/anaconda3/envs/gensimtest/lib/python3.4/site-packages/gensim/summarization/keywords.py", line 35, in _get_words_for_graph
    for word, unit in tokens.iteritems():
AttributeError: 'dict' object has no attribute 'iteritems'
@piskvorky
Copy link
Owner

Looks like a python3 compatibility error that was recently fixed, in #441 .

Will be part of the next release of gensim; use the develop branch from github if you need it fixed asap.

Let me know if that worked for you; closing as "already fixed". And thanks for reporting!

@hellrich
Copy link
Contributor Author

hellrich commented Nov 2, 2015

Works fine, thanks!

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