[英]Using Datumbox in Python for Sentiment Analysis
因为我是Python编程的新手,所以我不确定如何在代码中正确使用Datumbox。 我需要它来执行一些情感分析,但是,我无法像通常那样通过conda / pip install DatumBox来实现它!
以下内容在github上可用。 DatumBox似乎提供了许多不同的编程语言,但到目前为止,在Python中尚无大型社区:
https://github.com/Lily418/Datumbox-Python-Wrapper
我如何使用链接中的材料将DatumBox用作Python中的模块? 我已经有一个API KEY,现在我想在我的代码导入DatumBox等中实现它。
提前谢谢了!
您必须使用此包装器: 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'
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.