本文介绍了我可以在IBM Data Science Experience上使用MeCab吗的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在IBM Data Science Experience上使用Mecab。

I want to use Mecab on IBM Data Science Experience.

有可能吗?

推荐答案

恐怕不会,或者至少不容易。该Python程序包需要本机mecab库,该库不在运行DSX笔记本的环境中安装。用户也不具有使用程序包管理器(yum)进行安装的权限。

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).

如果您愿意花费很多精力,可以尝试从mecab中放入库rpm进入用户文件系统。然后扩展环境变量LD_LIBRARY_PATH以包括您的用户目录。确保使用Python的 os.environ 更改变量。每次笔记本执行时都必须这样做。

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.

这篇关于我可以在IBM Data Science Experience上使用MeCab吗的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-13 13:37