Python Wrapper for ParallelDots APIs
Project description
A wrapper for the [ParallelDots API](http://www.paralleldots.com).
Installation
>From PyPI:
pip install paralleldots
>From Source:
https://github.com/ParallelDots/ParallelDots-Python-API.git python setup.py install
API Keys & Setup
Signup and get your free API key from [ParallelDots](http://www.paralleldots.com/pricing). You will receive a mail containing the API key at the registered email id.
Configuration:
>>> from paralleldots import set_api_key, get_api_key# Setting your API key >>> set_api_key(“YOUR API KEY”)
# Viewing your API key >>> get_api_key()
Usage:
>>> from paralleldots import hit_count, specific_hit_count# View the number of API hits made and hits remaining >>> hit_count()
# View the number of hits made for a specific API by using function name as a String >>> specific_hit_count( “multilang_sentiment” )
Supported APIs:
[Semantic Similarity](https://tinyurl.com/k23nqs9)
[Sentiment Analysis](https://tinyurl.com/km99mzb)
Taxonomy
[Named Entity Extraction/Recognition ( NER )](https://tinyurl.com/k9yglwc)
[Keywords](https://tinyurl.com/kujcu8o)
[Intent](https://tinyurl.com/n568bqw)
[Emotion](http://blog.paralleldots.com/technology/deep-learning/emotion-detection-using-machine-learning/)
Abuse
- Multiple Language Sentiment
Portuguese ( pt )
French ( fr )
Spanish ( sp )
Examples
>>> from paralleldots import similarity, ner, taxonomy, sentiment, keywords, intent, emotion, multilang_sentiment>>> similarity( "Sachin is the greatest batsman", "Tendulkar is the finest cricketer" ) {"actual_score": 0.8429316099720955, "normalized_score": 4.931468684177398, "similarity": 4.931468684177398}>>> sentiment( "Come on, lets play together" ) {"sentiment": 0.8513014912605286}>>> taxonomy( "Narendra Modi is the prime minister of India" ) {"tags": [[u"finance", 4.088], [u"government", 3.4284], [u"business", 1.2719]]}>>> ner( "Narendra Modi is the prime minister of India" ) {"entities": [[u"Modi", 1.0, [u"person"], u""], [u"India", 1.0, [u"org"], u""], [u"Narendra", 1.0, [u"org"], u""]]}>>> keywords( "Prime Minister Narendra Modi tweeted a link to the speech Human Resource Development Minister Smriti Irani made in the Lok Sabha during the debate on the ongoing JNU row and the suicide of Dalit scholar Rohith Vemula at the Hyderabad Central University." ) {"keywords": [[u"Human Resource Development Minister Smriti Irani", 6], [u"Prime Minister Narendra Modi", 4], [u"Hyderabad Central University", 3], [u"ongoing JNU row", 3], [u"Dalit scholar", 2], [u"Lok Sabha", 2], [u"Rohith Vemula", 2]]}>>> emotion("Did you hear the latest Porcupine Tree song ? It's rocking !") {"emotion": "happy"}>>> intent("Finance ministry calls banks to discuss new facility to drain cash") {"intent": "news"}>>> multilang_sentiment("La ville de Paris est très belle", "fr") {"sentiment": "positive", "confidence_score": 0.998047}
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
File details
Details for the file ParallelDots-0.9.0.tar.gz
.
File metadata
- Download URL: ParallelDots-0.9.0.tar.gz
- Upload date:
- Size: 4.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a67d0cc02d411cfc98bde6b7c8ba5e21176cd7777753cd64d8a6881478dc88ca |
|
MD5 | 94a1724e3d4b563ca6fc64a9f9256146 |
|
BLAKE2b-256 | fd5682b42319e87a2c3fc7e82ccd048bf6bbd65d6f56e4e0ba677f1e4ce7e98a |
File details
Details for the file ParallelDots-0.9.0-py2-none-any.whl
.
File metadata
- Download URL: ParallelDots-0.9.0-py2-none-any.whl
- Upload date:
- Size: 12.5 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5d6938f37c12adbf27ff3a0217415d2b3820ddf9fe0dc613061dbe5ed85ea0a7 |
|
MD5 | 9262b6e38e1ee74805bd1111badf4397 |
|
BLAKE2b-256 | fab55c7fb406b6546836a1e66a23236bb111b92db26eaa8cbd4419157fe7a305 |