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

Unicodedata 를 이용한 normalizer, decomposer 수정 #97

Open
lovit opened this issue Mar 2, 2020 · 0 comments
Open

Unicodedata 를 이용한 normalizer, decomposer 수정 #97

lovit opened this issue Mar 2, 2020 · 0 comments

Comments

@lovit
Copy link
Owner

lovit commented Mar 2, 2020

(1) 속도 테스트와 (2) 종성에 받침이 없는 경우 decomposer return type 통일할 방법을 고려해야 함

import unicodedata

s = '예시단어'

# decompose
d = unicodedata.normalize('NFD',s)
print(len(d))
# 9

# compose
print(len(unicodedata.normalize('NFC', d)))
# 4
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

No branches or pull requests

1 participant