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

Add an autocomplete flag #118

Merged
merged 2 commits into from
Dec 2, 2023
Merged

Add an autocomplete flag #118

merged 2 commits into from
Dec 2, 2023

Conversation

gaurav
Copy link
Contributor

@gaurav gaurav commented Nov 16, 2023

NameRes' /lookup endpoint was previously designed for the autocomplete use-case, where we expect to give good results even when the search term is incomplete (e.g. diab instead of diabetes). We handled this by expanding the search to ({query}) OR ({query}*). This PR adds an autocomplete flag that allows this expansion to be turned on and off -- this should help improve our accuracy when NameRes is used for named entity linking only.

Closes #108.

@gaurav gaurav requested a review from cbizon November 16, 2023 19:57
@gaurav gaurav force-pushed the add-autocomplete-flag branch from 00bb9c2 to 3992dab Compare December 2, 2023 18:32
@gaurav gaurav merged commit e3e2962 into master Dec 2, 2023
1 check passed
@gaurav gaurav deleted the add-autocomplete-flag branch December 2, 2023 18:34
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.

Provide an option for NameRes to turn off incomplete matches for non-autocomplete applications
2 participants