Skip to main content

Python Wrapper for ParallelDots APIs

Project description

A wrapper for the ParallelDots API.

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. 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()

Supported APIs:

Examples

>>> from paralleldots import similarity, ner, taxonomy, sentiment, keywords, intent, emotion, multilang, abuse

>>> 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("La ville de Paris est très belle", "fr")
{"sentiment": "positive", "confidence_score": 0.998047}

>>> abuse("you f**king a$$hole")
{"confidence_score": 0.998047, "sentence_type": "Abusive"}

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ParallelDots-1.0.9.tar.gz (5.1 kB view details)

Uploaded Source

Built Distributions

ParallelDots-1.0.9-py2.py3-none-any.whl (11.5 kB view details)

Uploaded Python 2 Python 3

ParallelDots-1.0.9-py2.7.egg (17.1 kB view details)

Uploaded Source

File details

Details for the file ParallelDots-1.0.9.tar.gz.

File metadata

File hashes

Hashes for ParallelDots-1.0.9.tar.gz
Algorithm Hash digest
SHA256 ce7bfebbfdf13dd8ad05e75d2baa1d91deb32c7fadf20b16608b7b911307f210
MD5 0123a7af852d3bd209ba6163fa228e8a
BLAKE2b-256 b5edd1220920f9e10766a165dab24831a77383ba86abe8276d0b4f873878a9fa

See more details on using hashes here.

File details

Details for the file ParallelDots-1.0.9-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for ParallelDots-1.0.9-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 7ed323f247a14c9d9b94a99feec0b75a023375666866b7371e91d70657195a69
MD5 f40512ee6ad32a9ce5c869f17c10a394
BLAKE2b-256 b49a402ce23b6a6aef179073e57c0b9af105575863e0e78ba80e4966f06a3eca

See more details on using hashes here.

File details

Details for the file ParallelDots-1.0.9-py2.7.egg.

File metadata

File hashes

Hashes for ParallelDots-1.0.9-py2.7.egg
Algorithm Hash digest
SHA256 911a924a638731a98a94e0e8a8d3de847ee51c509163b8afe9fbcf5552728332
MD5 8e1419a8944143b2463833d8e84d7f23
BLAKE2b-256 cff49249ad0d1428485ad13d18d1c3c38c38573835f41f25a1e7a36bdc79e4bf

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page