์ž์—ฐ์–ด ์ฒ˜๋ฆฌ/Today I learned :

[์ž์—ฐ์–ด ์ฒ˜๋ฆฌ] ๋งž์ถค๋ฒ• ์ „์ฒ˜๋ฆฌ ๊ต์ • Py-Hanspell ์˜ˆ์ œ

์ฃผ์˜ ๐Ÿฑ 2023. 1. 3. 18:24
728x90
๋ฐ˜์‘ํ˜•
!pip install git+https://github.com/ssut/py-hanspell.git
from hanspell import spell_checker

sent = "์–ด์ œ๋Š” ์•Š์žค์–ด. ๊ฐ๊ธฐ ๋นจ๋ฆฌ ๋‚ณ์•„! "
spelled_sent = spell_checker.check(sent)

hanspell_sent = spelled_sent.checked
print(hanspell_sent)

์–ด์ œ๋Š” ์•ˆ ์žค์–ด. ๊ฐ๊ธฐ ๋นจ๋ฆฌ ๋‚˜์•„!

๋ฐ˜์‘ํ˜•