-
-
Notifications
You must be signed in to change notification settings - Fork 333
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
DiGraph instead of Graph #229
Comments
Thanks @Chtchou for the heads up. I did some experiments using DiGraph and Graph(undirected) and founds results to be different. input text:
DiGraph with edges from token to neighbour (current setup):
Using DiGraph with direction of edges reversed:
Using Graph
Observations:
Since co-occurence is symetric and we want influence to flow equally in both the directions, I intend to change it to Graph along with test cases changes if required. |
Looks great, many thanks @Ankush-Chander and @Chtchou |
Is there a specific reason why pytextrank uses a Directed Graph instead of an undirected Graph?
On your explanatory notebook you use an undirected graph (like the original implementation) but in the source code it has been changed to directed graph instead?
This can creates totally different results
The text was updated successfully, but these errors were encountered: