透過 Python binding C++ libcld 的函式庫
以前要手動下載編譯,現在可透過 pip 自動執行這步驟
# pip install chromium_compact_language_detector
手動方式:
安裝 libcld
$ cd compact-language-detector-0.1
$ ./configure
$ make
# make install
安裝 python binding library
$ cd chromium_compact_language_detector-0.1.1
# python setup.py install
Reference :
chromium-compact-language-detector - C++ library and Python bindings for detecting language from UTF8 text, extracted from the Chromium browser - Google Project Hosting
沒有留言:
張貼留言