由于我是Python编程的新手,我不确定如何在代码中正确使用Datumbox。我需要它来执行一些情绪分析,然而,我不能实现它通过conda/pip安装DatumBox,因为我通常会这样做!
以下内容可以在github上找到。DatumBox似乎提供了许多不同的编程语言,但到目前为止还没有大型社区:
https://github.com/Lily418/Datumbox-Python-Wrapper
如何使用链接中的材料才能将DatumBox用作Python中的模块?我已经有了一个应用程序接口密钥,现在我想在我的代码导入DatumBox等中实现它。
首先要感谢大家!
发布于 2017-03-30 19:44:33
您必须使用这个包装器:https://github.com/irish315/Datumbox-Python-Wrapper
$ git clone git@github.com:irish315/Datumbox-Python-Wrapper.git
$ cd Datumbox-Python-Wrapper
$ python
>>> from DatumBox import DatumBox
>>> datum_box = DatumBox(API_KEY)
>>> datum_box.twitter_sentiment_analysis("I love my cat")
u'positive'https://stackoverflow.com/questions/37168264
复制相似问题