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

IndexError when running evaluation #5

Open
YourSaDady opened this issue Mar 16, 2024 · 1 comment
Open

IndexError when running evaluation #5

YourSaDady opened this issue Mar 16, 2024 · 1 comment

Comments

@YourSaDady
Copy link

Hi. I tried to follow the README example, and when I came to the Evaluation step, an IndexError occurred when I ran python evaluate.py --model openlm-research/open_llama_3b --domain ID --result ParaRel_openllama_3b:
微信图片_20240316175713

I think the error is due to that in evaluate.py, the SURE and UNSURE are lists of encodings but not their ids:
SURE.append(tokenizer("sure")[0]) UNSURE.append(tokenizer("unsure")[0])

@shizhediao
Copy link
Owner

Hi,
Thank you very much for your comment!
We updated our code at #6. Please pull the latest code and test it again.
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