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

Order of importance changes in set() #20

Open
Ysajid opened this issue Oct 11, 2018 · 0 comments
Open

Order of importance changes in set() #20

Ysajid opened this issue Oct 11, 2018 · 0 comments

Comments

@Ysajid
Copy link

Ysajid commented Oct 11, 2018

If set() is used in extract_key_phrases() function, then the order of importance changes while manipulating the set.

Result of running on same article 2 times:
{'account', 'personal information', 'surprise', 'political', 'scandal-plagued', 'privacy', 'network', 'possible', 'access', 'company', 'Instagram', 'survey', 'Spotify', 'Tinder', 'platform', 'turkey', 'security breach', 'Cambridge Analytica', 'database', 'Facebook', 'security scandal', 'innocuous', 'Research', 'percent', 'Friday'}

{'security breach', 'Instagram', 'percent', 'privacy', 'Research', 'network', 'political', 'Spotify', 'scandal-plagued', 'account', 'possible', 'Tinder', 'Facebook', 'platform', 'personal information', 'database', 'company', 'access', 'Friday', 'surprise', 'security scandal', 'survey', 'turkey', 'innocuous', 'Cambridge Analytica'}

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

1 participant