Access SenticNet data using Python
Project description
SenticNet API
Simple API to use SenticNet (http://sentic.net/).
Install
Using pip:
$ pip install senticnet
Using the repository code:
$ python setup.py install
How to use
from senticnet.senticnet import SenticNet
sn = SenticNet()
concept_info = sn.concept('love')
polarity_label = sn.polarity_label('love')
polarity_value = sn.polarity_value('love')
moodtags = sn.moodtags('love')
semantics = sn.semantics('love')
sentics = sn.sentics('love')
Also, you can use other languages:
from senticnet.babelsenticnet import BabelSenticNet
bsn = BabelSenticNet('pt')
concept_info = sn.concept('amor')
polarity_label = sn.polarity_label('amor')
polarity_value = sn.polarity_value('amor')
moodtags = sn.moodtags('amor')
semantics = sn.semantics('amor')
sentics = sn.sentics('amor')
You can find all supported languages here: http://sentic.net/api/
About SenticNet
SenticNet is an initiative conceived at the MIT Media Laboratory in 2010 within an industrial Cooperative Awards in Science and Engineering (CASE) research project, funded by the UK Engineering and Physical Sciences Research Council (EPSRC) and born from the collaboration between the University of Stirling, the Media Lab, and Sitekit Labs.
Currently, both the SenticNet knowledge base and the SenticNet framework are being maintained and further developed by the Sentic Team, a multidisciplinary research group based at the School of Computer Engineering of Nanyang Technological University in Singapore, but also by many other sentic enthusiasts around the world.
Please acknowledge the authors by citing SenticNet 6 in any research work or presentation containing results obtained in whole or in part through the use of the API:
E Cambria, Y Li, F Xing, S Poria, K Kwok. SenticNet 6: Ensemble application of symbolic and subsymbolic AI for sentiment analysis. In: CIKM, 105-114 (2020)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file senticnet-1.6.tar.gz.
File metadata
- Download URL: senticnet-1.6.tar.gz
- Upload date:
- Size: 50.2 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.7.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2a3464b0d4e0cf7d19e4b114f721a7656c71980337b0d63a1182759ec93ac70f
|
|
| MD5 |
d21e59751127193dc96e0dc09ab0a703
|
|
| BLAKE2b-256 |
52d10aa1923b16df6ff32c52f25c90a721f606efd03961f61a74bf29c4df620b
|
File details
Details for the file senticnet-1.6-py3-none-any.whl.
File metadata
- Download URL: senticnet-1.6-py3-none-any.whl
- Upload date:
- Size: 51.9 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.7.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
aa0ce9970fc4a8ca1f9dc0f703ed8fb3e9e337705e80f7968a8e7fc96071ce1a
|
|
| MD5 |
2859bec6123ca6b96366d519efae1c7b
|
|
| BLAKE2b-256 |
f38ec72d2c5186f762f13d3d8cf63aedeb973b95d45d62b59a63006060073e3a
|