Can I use MeCab on IBM Data Science Experience

僤鯓⒐⒋嵵緔 提交于 2019-12-25 00:37:09

问题


I want to use Mecab on IBM Data Science Experience.

https://pypi.python.org/pypi/mecab-python3

Is it possible?


回答1:


I'm afraid not, or at least not easily. That Python package requires native mecab libraries, which are not installed in the environment where DSX notebooks are running. Neither do users have permission to install them using a package manager (yum).

If you're willing to spend effort, you can try to put the libraries from a mecab rpm into the user file system. Then extend the environment variable LD_LIBRARY_PATH to include your user directory. Make sure to change the variable using Python's os.environ. This will have to be done every time the notebook executes.



来源:https://stackoverflow.com/questions/46388310/can-i-use-mecab-on-ibm-data-science-experience

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!