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

Use Levenshtein distance to sort LoD Controller results. Much more accurate, less fuzz #171

Open
DiegoPino opened this issue Mar 22, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request External API Things we do not control but we depend on LoD and Auth Controller A Tree of Apples UI/UX The thing people do when in front of a screen
Milestone

Comments

@DiegoPino
Copy link
Member

DiegoPino commented Mar 22, 2024

What?

We return results from remote LoD APIs sorted by what the API provides. But really, from the the user/metadata cataloger perspective we want to return things listed by "how close" they are to the original input/search string.

e.g the first term for input "Music" in LoC Subjects is "MUSIC (Computers)"... but the user searched for Music. That is where my little little knowledge of data science comes in place: Levenshtein.

A simple sort-by fixes the issue

See how that/this is better when i use my brainz to add a line of code.

image

This also helps a lot with unsupervised LoD reconciliation at an AMI level or when using ami_lod_reconcile(subject|lower|capitalize,'loc;subjects;thing','en',1) in a twig template.

@alliomeria thoughts?

@DiegoPino DiegoPino self-assigned this Mar 22, 2024
@DiegoPino DiegoPino added enhancement New feature or request UI/UX The thing people do when in front of a screen External API Things we do not control but we depend on LoD and Auth Controller A Tree of Apples labels Mar 22, 2024
@DiegoPino DiegoPino added this to the 1.4.0 milestone Mar 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request External API Things we do not control but we depend on LoD and Auth Controller A Tree of Apples UI/UX The thing people do when in front of a screen
Projects
None yet
Development

No branches or pull requests

1 participant