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

Integer relevance score #8

Closed
maximedb opened this issue Jan 19, 2022 · 4 comments
Closed

Integer relevance score #8

maximedb opened this issue Jan 19, 2022 · 4 comments
Labels
question Further information is requested

Comments

@maximedb
Copy link
Contributor

Hi,

Thank you for this nice library.

Is there a fundamental reason why relevance score need to be integers in Qrels?

Thanks.

@AmenRa AmenRa added the question Further information is requested label Jan 19, 2022
@AmenRa
Copy link
Owner

AmenRa commented Jan 19, 2022

Hi and thank you! :)

In Information Retrieval, relevance score judgments can be binary or graded.
To the best of my knowledge, graded relevance score judgments are usually expressed as integers.

Moreover, if I recall correctly, the choice of requiring integers was taken for similarity with trec_eval, the standard evaluation library in Information Retrieval.

Do you needranx to support floating point relevance score judgments?

Best,

Elias

@maximedb
Copy link
Contributor Author

Thank make sense! No no, it was just something I was wondering about :)

@Perenz
Copy link

Perenz commented Jul 28, 2022

Following up on this, I'd now need ranx to support floating point relevance score judgments?
Is that supported right now? Or is there a turnaround you'd recommend to use floating relevance score?

Best,

Stefano

@AmenRa
Copy link
Owner

AmenRa commented Jul 28, 2022

Hi Stefano,

I apologize if my question sounds stupid: are your relevance judgments truly continuous, or are they discrete but defined with floats?

In the latter case, you should always be able to convert them to integers by simply re-scaling them.

If that's not the case, you could, for example, round your floats at the 4th decimal position, multiply them by 10^4, and then cast them to integers.

If this still does not solve your problem, could you please provide more information about your use case so I can better help you find a solution?

I do not plan to change the implementation of Qrels at the moment.

Best,

Elias

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants