728x90
mecab-ko-msvc 설치
아래 링크에서 다운로드합니다.
요즘 대부분 운영체제가 x64 입니다.
C:\mecab 폴더에 압축을 해제하는 것을 권장하고 있습니다.
mecab-ko-dic-msvc 설치
아래 링크에서 다운로드합니다.
사전도 C:\mecab에 압축을 풀어줍니다.
테스트
(base) PS C:\mecab> .\mecab.exe -o output.txt input.txt
사용자 사전 추가(Mecab-Ko-MSVC)
c:\mecab\user-dic 에 사용자 사전을 추가해보았습니다.
(base) PS C:\mecab> .\tools\add-userdic-win.ps1
(base) PS C:\mecab> .\tools\add-userdic-win.ps1
generating userdic...
C:\mecab\mecab-ko-dic\model.def is not a binary model. reopen it as text mode...
reading C:\mecab\user-dic\nnp.csv ...
done!
reading mecab-ko-dic\unk.def ... 13
emitting double-array: 100% |###########################################|
reading mecab-ko-dic\CoinedWord.csv ... 148
reading mecab-ko-dic\EC.csv ... 2547
reading mecab-ko-dic\EF.csv ... 1820
reading mecab-ko-dic\EP.csv ... 51
reading mecab-ko-dic\ETM.csv ... 133
reading mecab-ko-dic\ETN.csv ... 14
reading mecab-ko-dic\Foreign.csv ... 11690
reading mecab-ko-dic\Group.csv ... 3176
reading mecab-ko-dic\Hanja.csv ... 125750
reading mecab-ko-dic\IC.csv ... 1305
reading mecab-ko-dic\Inflect.csv ... 44820
reading mecab-ko-dic\J.csv ... 416
reading mecab-ko-dic\MAG.csv ... 14242
reading mecab-ko-dic\MAJ.csv ... 240
reading mecab-ko-dic\MM.csv ... 453
reading mecab-ko-dic\NNB.csv ... 140
reading mecab-ko-dic\NNBC.csv ... 677
reading mecab-ko-dic\NNG.csv ... 208524
reading mecab-ko-dic\NNP.csv ... 2371
reading mecab-ko-dic\NorthKorea.csv ... 3
reading mecab-ko-dic\NP.csv ... 342
reading mecab-ko-dic\NR.csv ... 482
reading mecab-ko-dic\Person-actor.csv ... 99230
reading mecab-ko-dic\Person.csv ... 196459
reading mecab-ko-dic\Place-address.csv ... 19301
reading mecab-ko-dic\Place-station.csv ... 1145
reading mecab-ko-dic\Place.csv ... 30303
reading mecab-ko-dic\Preanalysis.csv ... 5
reading mecab-ko-dic\Symbol.csv ... 16
reading mecab-ko-dic\user-nnp.csv ... 2
reading mecab-ko-dic\VA.csv ... 2360
reading mecab-ko-dic\VCN.csv ... 7
reading mecab-ko-dic\VCP.csv ... 9
reading mecab-ko-dic\VV.csv ... 7331
reading mecab-ko-dic\VX.csv ... 125
reading mecab-ko-dic\Wikipedia.csv ... 36762
reading mecab-ko-dic\XPN.csv ... 83
reading mecab-ko-dic\XR.csv ... 3637
reading mecab-ko-dic\XSA.csv ... 19
reading mecab-ko-dic\XSN.csv ... 124
reading mecab-ko-dic\XSV.csv ... 23
emitting double-array: 100% |###########################################|
reading mecab-ko-dic\matrix.def ... 3822x2693
emitting matrix : 100% |###########################################|
(base) PS C:\mecab> .\mecab.exe -o output2.txt input.txt
품사 태그
아래 링크에서 가시면 표로 확인할 수 있습니다.