在Python中使用Datumbox进行情感分析

2024-09-26 18:18:23 发布

您现在位置:Python中文网/ 问答频道 /正文

我不确定如何在一个新的Python编程中正确地使用datumb。我需要它来执行一些情绪分析,然而,我不能实现它通过conda/pip安装DatumBox,因为我通常会这样做!在

以下内容在github上可用。DatumBox似乎以许多不同的编程语言提供,但迄今为止在Python中还没有大型社区:

https://github.com/Lily418/Datumbox-Python-Wrapper

在Python中,如何使用链接中的材料来使用DatumBox作为模块?我已经有一个API密钥,现在我想在我的代码导入DatumBox等实现它。。。。。在

先谢谢你!在


Tags: piphttpsgithubcom链接编程wrapper编程语言
1条回答
网友
1楼 · 发布于 2024-09-26 18:18:23

你必须使用这个包装器: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'

相关问题 更多 >

    热门问题