textrank icon indicating copy to clipboard operation
textrank copied to clipboard

Keywords change on different run for same text

Open vertika-19 opened this issue 5 years ago • 7 comments

Everytime you run the program, the set of keywords change. Can you point out why is it happening.

vertika-19 avatar Dec 12 '18 05:12 vertika-19

There are no random components in the algorithm. Can you provide a concrete example?

fedelopez77 avatar Dec 12 '18 08:12 fedelopez77

You can check in this different runs are giving different set of keywords as well as order is also changing.

capture1 capture2

vertika-19 avatar Dec 12 '18 09:12 vertika-19

I tried several runs, with different texts, relaunching the interpreter, and I couldn't reproduce it. I always get the same list of keywords in the exact same order. Are you using the last version of summa, with the last version of scipy and all its dependencies?

fedelopez77 avatar Dec 12 '18 11:12 fedelopez77

Are you using python 2?

vertika-19 avatar Dec 12 '18 11:12 vertika-19

No, the current stable version on Master on this repository, as the one that you can download via pip, are for Python 3. We no longer provide support for Python2

fedelopez77 avatar Dec 12 '18 11:12 fedelopez77

In the first go I tried few things like I created 2 separate virtual environments :

  1. With python 3
  2. With python 2

Freshly installed just summa on these which installed scipy and numpy as dependencies. Installed summa as : pip install summa

In 1. python 3 - problem persists i.e shows different keywords everytime I launch the interpreter and run

In 2. Python 2 - No such problem, keywords set and order is same everytime.

Is it the same with you!?

vertika-19 avatar Dec 12 '18 11:12 vertika-19

Hello! I'm facing the same error with python 3. Somebody solved this?

mingoarte avatar Nov 26 '19 11:11 mingoarte