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

Recursion depth exceeded in comparison at ~1000 tokens #67

Open
kjhenner opened this issue Oct 27, 2022 · 1 comment
Open

Recursion depth exceeded in comparison at ~1000 tokens #67

kjhenner opened this issue Oct 27, 2022 · 1 comment

Comments

@kjhenner
Copy link

Recursion depth exceeded in comparison at ~1000 tokens, which isn't really that many tokens. A non-recursive solution would make a lot more sense here.

import rouge
r = rouge.Rouge()
for i in range(1, 10000, 100):
    print(i)
    r.get_scores(["aaa " * i], ["bbb " * i])
File [...] rouge/rouge_score.py", line 185, in _recon
    elif table[i - 1, j] > table[i, j - 1]:

RecursionError: maximum recursion depth exceeded in comparison
@pltrdy
Copy link
Owner

pltrdy commented Dec 13, 2022

Sorry for delay, could you open a PR on that?

Thanks

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