μμ°μ΄ μ²λ¦¬/Today I learned :
μ½λ©μμ mecab μ€μΉνκΈ°
μ£Όμ π±
2022. 12. 11. 12:04
728x90
λ°μν
λ€μκ³Ό κ°μ μ½λ μ€ν
!pip install konlpy
from konlpy.tag import Mecab
!git clone https://github.com/SOMJANG/Mecab-ko-for-Google-Colab.git
%cd Mecab-ko-for-Google-Colab/
!bash install_mecab-ko_on_colab190912.sh
μ€ν ν λ§μ§λ§ μ€μ 보면 λ°νμμ μ¬μ€ννλΌκ³ νλ€. μ¬μ€νν μμ μ½λλ₯Ό λ€μ μ€ννμ§ μκ³ mecabμ λΆλ¬μ€λ©΄ λλ€.
Successfully Installed Now you can use Mecab from konlpy.tag import Mecab mecab = Mecab() μ¬μ©μ μ¬μ μΆκ° λ°©λ² : https://bit.ly/3k0ZH53 NameError: name 'Tagger' is not defined μ€λ₯ λ°μ μ λ°νμμ μ¬μ€ν ν΄μ£ΌμΈμ λΈλ‘κ·Έμ ν΄κ²° λ°©λ²μ λ¨κ²¨μ£Όμ tanaλ κ°μ¬ν©λλ€.
from konlpy.tag import Mecab
mecab = Mecab()
1λ²μ½λ μ€ν -> λ°νμ μ¬μμ -> 2λ²μ½λ μ€ν
λ°μν