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 config
# Setting your API key
>>> config.set_api_key("YOUR API KEY")
# Viewing your API key
>>> config.get_api_key()
Supported APIs:
Semantic Proximity
Sentiment Analysis
Taxonomy
Entity Extraction
Keywords
Examples
>>> from paralleldots import similarity, ner, taxonomy, sentiment, keywords
>>> similarity( "Sachin is the greatest batsman", "Tendulkar is the finest cricketer" )
{"actual": 0.79401779353226476, "similarity": 4.8781727384640341}
>>> sentiment( "Come on, lets play together" )
{"sentiment": 0.7375614089809589}
>>> taxonomy( "Narendra Modi is the prime minister of India" )
{"credits": "ParallelDots", "tags": [["finance", 1], ["business", 0], ["government", 0]]}
>>> ner( "Narendra Modi is the prime minister of India" )
{"entities": ["narendra modi", "india"]}
>>> 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]]}
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
ParallelDots-0.6.0.tar.gz
(3.9 kB
view hashes)
Built Distribution
Close
Hashes for ParallelDots-0.6.0-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9ef7d0317b2e95cae12974e3cf21046feec998ffb2d4c644a2753f506d13ee1c |
|
MD5 | 595bf4a13576b0df0e91b3b28e1930e6 |
|
BLAKE2b-256 | ee4559b13536f52d082d62f12b485d3dcb5f0d92815c98a4641ba29e01a98015 |