Homepage: www.pusnow.com/about/
pusnow / mecab-ko-dic-msvc Goto Github PK
View Code? Open in Web Editor NEW이전됨 - https://github.com/Pusnow/mecab-ko-msvc
License: Apache License 2.0
이전됨 - https://github.com/Pusnow/mecab-ko-msvc
License: Apache License 2.0
Homepage: www.pusnow.com/about/
윈도우 10에서 사용자 정의 사전을 컴파일 하기 위해
C:\mecab>.\tools\add-userdic-win.ps1
위의 명령어를 실행시켰습니다.
그런데 다른 분들은 잘 되는 컴파일이 제 컴퓨터 환경에서는 되지 않고
이것을 메모장으로 띄워 소스코드로 보여줍니다.
어느 블로그에도 이러한 현상을 고치는 법을 가르쳐 주지 않아
여기에 남깁니다.
어떠한 환경을 만들어야 사용자 정의 사전을 컴파일 할 수 있을까요?
PS C:\mecab\tools> .\add-userdic-win.ps1
generating userdic...
Remove-Item : 'C:\mecab\tools\mecab-ko-dic' 경로는 존재하지 않으므로 찾을 수 없습니다.
위치 C:\mecab\tools\add-userdic-win.ps1:27 문자:16
Remove-Item <<<< .\mecab-ko-dic\user-*.csv
CategoryInfo : ObjectNotFound: (C:\mecab\tools\mecab-ko-dic:String) [Remove-Item], ItemNotFoundException
FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.RemoveItemCommand
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!
C:\mecab\mecab-ko-dic\model.def is not a binary model. reopen it as text mode...
reading C:\mecab\user-dic\person.csv ...
done!
C:\mecab\mecab-ko-dic\model.def is not a binary model. reopen it as text mode...
reading C:\mecab\user-dic\place.csv ...
done!
Remove-Item : 'C:\mecab\tools\mecab-ko-dic' 경로는 존재하지 않으므로 찾을 수 없습니다.
위치 C:\mecab\tools\add-userdic-win.ps1:19 문자:16
Remove-Item <<<< .\mecab-ko-dic*.bin
CategoryInfo : ObjectNotFound: (C:\mecab\tools\mecab-ko-dic:String) [Remove-Item], ItemNotFoundException
FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.RemoveItemCommand
Remove-Item : 'C:\mecab\tools\mecab-ko-dic' 경로는 존재하지 않으므로 찾을 수 없습니다.
위치 C:\mecab\tools\add-userdic-win.ps1:20 문자:16
Remove-Item <<<< .\mecab-ko-dic*.txt
CategoryInfo : ObjectNotFound: (C:\mecab\tools\mecab-ko-dic:String) [Remove-Item], ItemNotFoundException
FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.RemoveItemCommand
dictionary_compiler.cpp(82) [param.load(DCONF(DICRC))] no such file or directory: mecab-ko-dic\dicrc
add-userdic.sh 스크립트가 리눅스 전용이므로 윈도우용도 필요
리눅스에서는 make install
을 통하여 사용자 사전의 코스트를 변경할 수 있지만 Windows에서는 이에 대응되는 방법이 없음.
Powershell
을 이용하여 변경하는 방법 추가 필요.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.