Skip to content

Fix segmentation for 习总书记 - #227

Merged
yanyiwu merged 1 commit into
masterfrom
fix-xi-general-secretary-segmentation
Apr 23, 2026
Merged

Fix segmentation for 习总书记#227
yanyiwu merged 1 commit into
masterfrom
fix-xi-general-secretary-segmentation

Conversation

@yanyiwu

@yanyiwu yanyiwu commented Apr 23, 2026

Copy link
Copy Markdown
Owner

Summary

  • Add 习总书记 to the main dictionary so 和习总书记 no longer merges 和习 as one token.
  • Add a MixSegment regression test for 马克思主义和习总书记新时代中国特色社会主义.

Notes

Verification

  • make test passed locally on 2026-04-23.

Release assessment

  • This is a user-visible dictionary correctness fix. A patch release should be considered after merge, but no cppjieba release has been published from this branch yet.

@yanyiwu
yanyiwu merged commit 6e9dcac into master Apr 23, 2026
84 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

分词错误,‘和习’分成了一个词。

1 participant