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

Candidate entities for scoring in pipeline #40

Merged
merged 3 commits into from
Mar 21, 2024

Conversation

AlCatt91
Copy link
Collaborator

Add feature to allow restricting scoring in AllScoresPipeline to a specific set of candidate heads/tails provided by the user. This implies that all predicted entities for completions are within this particular set.

TODO: it would be more efficient to just compute the scores for these candidate entities, instead of scoring everything and then masking the scores for entities not in the candidate set. This requires tweaking the AllScoresBESS module, supporting a custom candidate_sampler. In the case where we also want to filter triples, the filter generation would also need to be adjusted.

@AlCatt91 AlCatt91 requested a review from danjust March 21, 2024 15:24
Copy link
Contributor

@danjust danjust left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks all good to me. Thanks, Alberto!

@AlCatt91 AlCatt91 merged commit 1fedeac into main Mar 21, 2024
1 check passed
@AlCatt91 AlCatt91 deleted the candidate_entities_pipeline branch March 21, 2024 16:08
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.

2 participants