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

match = detNum == list(filter(lambda p: p['det'] == 10, pairs))[0]['det'] IndexError: list index out of range #5

Closed
haoran1062 opened this issue Jan 12, 2021 · 1 comment

Comments

@haoran1062
Copy link

haoran1062 commented Jan 12, 2021

I modified evaluation params CONFIDENCES=True and TRANSCRIPTION = True,
input text file format like this:

70,566,85,566,85,573,70,573,0.7102742,my_word

the running issue is :

File "/projects/TedEval-master/script.py", line 489, in evaluate_method
    match = detNum == list(filter(lambda p: p['det'] == 10, pairs))[0]['det']
IndexError: list index out of range

why p['det'] == 10? and the filter list result is None. How to slove this problem?

@chaeyoung-lee
Copy link
Collaborator

Hi @haoran1062

Thank you for pointing out this issue!

I fixed this issue in the recent commit. You can pull the latest commit or simply change line 489 to

match = detNum in detMatchedNums

Please reopen this issue if this does not resolve your problem. Thank you.

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