Repository navigation
detect chinese and japanese near-duplicates in dedup - #86
Merged
Merged
Conversation
chinese and japanese have no spaces between words, so a whole sentence became one token and a one-character edit scored zero similarity. split each cjk character into its own token, keep whitespace tokens for other text, and bump the protocol to v3. Fixes Juneo-Lab#85
3 of 4 tasks
EonHao
approved these changes
Nov 22, 2026
EonHao
left a comment
Contributor
There was a problem hiding this comment.
Thanks, @tridev-tej. Approving.
What I checked:
- Each Chinese or Japanese character is now its own token, so a one-character edit to a CJK sentence scores above the near-duplicate threshold. Text without CJK tokenizes exactly as before.
- The follow-up commit keeps fullwidth Latin and Hangul whitespace-delimited, so distinct rows in those scripts are not collapsed.
- Moving the protocol to
policy-aware-structural-token-minhash-v3is right: reports from older builds are no longer comparable. - The new dedup and split-leak tests fail on
mainand pass here. The full suite, Ruff, mypy, andmkdocs build --strictpass locally with this branch merged together with #87 and #88.
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
chinese and japanese presentations were tokenized only on whitespace, so a whole sentence was one token and a one-character edit scored 0.0 similarity. near-duplicates reached training and train/test leaks went unreported. now each cjk character is its own token; text without cjk tokenizes exactly as before. dedup protocol bumped to v3, docs and changelog updated. builds with cjk presentations may drop more rows than before. Fixes #85