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

Define encoding for "load_ranking" and "load_qrels" #3

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

richardbinder
Copy link

@richardbinder richardbinder commented Jul 10, 2023

The methods "load_ranking" and "load_qrels" in core_metrics.py are calling commands to open files.
I had errors with it because the encoding wasn't specified.

In data_loading.py, the open commands use "utf-8" everywhere, and I believe this is also the encoding of all the provided data files and should work on all operating systems.
So I added "utf-8" encoding to "load_ranking" and "load_qrels" as well.

Sincerely,
Richard Binder

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

Successfully merging this pull request may close these issues.

1 participant