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

Error in PositionRank: tuple index out of range #217

Closed
artdream-dubai opened this issue Jan 23, 2023 · 1 comment
Closed

Error in PositionRank: tuple index out of range #217

artdream-dubai opened this issue Jan 23, 2023 · 1 comment

Comments

@artdream-dubai
Copy link

Now there is an error when working with PositionRank, before it was working. I start the example in "Getting started"->Model parameterization and try to check PositionRank. In step-5 : ranking keyphrase candidates there is the error:

IndexError Traceback (most recent call last)
in
3 # 2. graph construction (building a complete-weighted-graph of topics)
4 # 3. rank topics (nodes) using a random walk algorithm
----> 5 extractor.candidate_weighting()

1 frames
/usr/local/lib/python3.8/dist-packages/networkx/classes/backends.py in wrapper(*args, **kwds)
132 @functools.wraps(func)
133 def wrapper(*args, **kwds):
--> 134 graph = args[0]
135 if hasattr(graph, "networkx_plugin") and plugins:
136 plugin_name = graph.networkx_plugin

IndexError: tuple index out of range


I kindly ask for your help here,
Thank you for this nice research instrument!

@ygorg
Copy link
Collaborator

ygorg commented Mar 14, 2023

Thanks for this issue ! It is linked to #221 and fixed by #222.

@ygorg ygorg closed this as completed Mar 14, 2023
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