fix: HAPSYO_END_RE가 Kiwi EF 출력(조합용 ᆸ)과 매칭되지 않는 자모 불일치 - #2
Open
voiddeveloper wants to merge 1 commit into
Open
voiddeveloper wants to merge 1 commit into
voiddeveloper wants to merge 1 commit into
Conversation
정규식의 ㅂ니다/ㅂ니까가 호환 자모(U+3142)로 적혀 있어 Kiwi가 내놓는 EF 형태(조합용 U+11B8 'ᆸ니다')와 한 건도 매칭되지 않았다. 그 결과 '~합니다/됩니다'류 종결이 hapsyo가 아니라 haeche_handa로 전량 분류된다. 조합용 자모를 추가하고 호환 자모는 방어적으로 유지. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
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.
문제
scripts/fingerprint.py의HAPSYO_END_RE에 있는ㅂ니다|ㅂ니까가 **호환 자모ㅂ(U+3142)**로 적혀 있습니다. 그런데 Kiwi가 내놓는 EF 형태소는 **조합용 자몹(U+11B8)**입니다. 두 글자는 겉보기엔 같지만 다른 코드포인트라 매칭이 한 건도 되지 않습니다.그 결과
합니다/됩니다/드립니다류 종결이hapsyo가 아니라haeche_handa로 전량 분류됩니다. 같은 파일의 음슴체 처리(ᆷ/EF주석)는 조합용을 바르게 쓰고 있어서, 이 줄만의 표기 실수로 보입니다.재현
수정
조합용
ᆸ니다|ᆸ니까를 추가했습니다. 호환 자모 표기는 다른 토크나이저 출력에 대비해 방어적으로 남겨 뒀습니다.영향
제 코퍼스(슬랙 메시지 31,660건)로 실측하니 전체 EF의 약 15%(격식 대화가 많은 채널은 21%)가 재분류됐습니다.
hapsyo비율이 0.08→0.17로 바뀌는 수준이라, register 분포를 쓰는 팩 수치·게이트 임계값에 영향이 큽니다.좋은 도구 공개해 주셔서 감사합니다. 자기 코퍼스로 재사용해도 된다는 라이선스 조항 덕에 잘 쓰고 있습니다.
🤖 Generated with Claude Code