You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I noticed that power_method for LexRankSummarizer and TextRankSummarizer may produce NaN, inf values for some input values. I am not entirely sure if that matters for your use case, but to me it seems weird, because other implementations don't seem to have this problem.
Hi, I noticed that
power_method
for LexRankSummarizer and TextRankSummarizer may produce NaN, inf values for some input values. I am not entirely sure if that matters for your use case, but to me it seems weird, because other implementations don't seem to have this problem.For example the testcase here uses the matrix:
and
LexRankSummarizer.power_method(matrix, LexRankSummarizer.epsilon)
returns the value[inf inf nan inf inf]
Another example is the following matrix:
It returns:
[inf inf inf]
.The implementation I found here gives
[0.2, 0.5666666666666667, 0.4666666666666667]
I used Python 3.9.16 and numpy 1.24.1
The text was updated successfully, but these errors were encountered: