Skip to content

detect chinese and japanese near-duplicates in dedup - #86

Merged
EonHao merged 2 commits into
Juneo-Lab:mainfrom
tridev-tej:fix-issue-85
Nov 22, 2026
Merged

EonHao merged 2 commits into
Juneo-Lab:mainfrom
tridev-tej:fix-issue-85

Conversation

@tridev-tej

Copy link
Copy Markdown
Contributor

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

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
@tridev-tej
tridev-tej requested a review from EonHao as a code owner November 16, 2026 05:11
@github-actions github-actions Bot added area/generation Scenarios, quotas, synthesis, deduplication area/docs Site, README, and reference material labels Nov 16, 2026

@EonHao EonHao left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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-v3 is right: reports from older builds are no longer comparable.
  • The new dedup and split-leak tests fail on main and pass here. The full suite, Ruff, mypy, and mkdocs build --strict pass locally with this branch merged together with #87 and #88.

@EonHao
EonHao merged commit 889b6ea into Juneo-Lab:main Nov 22, 2026
18 checks passed
EonHao added a commit that referenced this pull request Nov 22, 2026
@EonHao EonHao mentioned this pull request Nov 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/docs Site, README, and reference material area/generation Scenarios, quotas, synthesis, deduplication

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Detect Chinese and Japanese near-duplicates in deduplication

2 participants