-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: lift tokenization to before ranking
Moves the tokenization step outside of the fuzzy algorithm. It now expects the query to be tokenized. This allows the highlighting and ranking algorithms to become separate and increase performance. This does not have a measurable impact on performance, but it makes the code easier to use as a library without requiring allocations.
- Loading branch information
1 parent
f88c76e
commit 426f4d2
Showing
3 changed files
with
132 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters