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

Sort dictionary entries by number of text processors applied #1200

Merged
merged 14 commits into from
Jul 12, 2024

Conversation

Casheeew
Copy link
Member

@Casheeew Casheeew commented Jul 11, 2024

Resolves #1060 .

This PR adds a textProcessorRuleChainCandidates object similar to inflectionRuleChainCandidates so that it is easier to trace the textProcessor rules applied and sort based on that number.

For example, after this PR, (using CC100 frequency-based sorting) おっと should correctly match 夫 before 音, and へった should correctly match 減る before 下手。

@Casheeew Casheeew requested a review from a team as a code owner July 11, 2024 11:25
Copy link

codspeed-hq bot commented Jul 11, 2024

CodSpeed Performance Report

Merging #1200 will not alter performance

Comparing cashewnuttynuts:sort-by-variants (fa2346e) with master (751acba)

Summary

✅ 5 untouched benchmarks

Copy link
Collaborator

@StefanVukovic99 StefanVukovic99 left a comment

Choose a reason for hiding this comment

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

The translator stuff is pretty complicated so I'll need to look into this more.

test/data/translator-test-results.json Outdated Show resolved Hide resolved
@Casheeew Casheeew marked this pull request as draft July 11, 2024 13:02
@Casheeew
Copy link
Member Author

Okay, I believe that the issue should be fixed, and everything should be sound. I will leave this as draft for some more so we can test things more thoroughly though.

@Casheeew Casheeew marked this pull request as ready for review July 12, 2024 08:36
@Casheeew
Copy link
Member Author

Tested on Japanese.
Ready for review

@StefanVukovic99 StefanVukovic99 added kind/bug The issue or PR is regarding a bug area/linguistics The issue or PR is related to linguistics labels Jul 12, 2024
Casheeew and others added 6 commits July 12, 2024 20:01
@StefanVukovic99 StefanVukovic99 added this pull request to the merge queue Jul 12, 2024
Merged via the queue into yomidevs:master with commit 502f71c Jul 12, 2024
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/linguistics The issue or PR is related to linguistics kind/bug The issue or PR is regarding a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Sort inexact matches lower
2 participants