본문 바로가기

IT상식

은전한닢 프로젝트 mecab 설치

반응형

1. mecab-ko Windows 빌드에 대한 정보를 Google Groups에서 얻음.

https://groups.google.com/forum/#!topic/eunjeon/Dzohqj4n3QI

 

2. 설명대로 mecab-ko-msvc 설치

https://github.com/Pusnow/mecab-ko-msvc

 

3. mecab-ko-dic-msvc 설치

https://github.com/Pusnow/mecab-ko-dic-msvc

*경로는 C:\mecab

 

4. 사전(mecab-ko-dic) 컴파일시, windows powershell 이용함.

* 관리자 권한 필요(cmd.exe)

C:\WINDOWS\system32>powershell

Windows PowerShell

Copyright (C) Microsoft Corporation. All rights reserved.

 

PS C:\WINDOWS\system32> ExecutionPolicy

Restricted

PS C:\WINDOWS\system32> set-ExecutionPolicy Unrestricted

PS C:\WINDOWS\system32> ExecutionPolicy

Unrestricted

PS C:\WINDOWS\system32> cd C:\mecab\

PS C:\mecab> .\tools\add-userdic-win.ps1

generating userdic...

...

done!

 

 

5. mecab 실행!

c:\mecab>mecab -o output.txt input.txt

 

반응형