Skip to main content

Python Wrapper for ParallelDots API

Project description

A wrapper for the ParallelDots API.

https://badge.fury.io/py/paralleldots.png https://travis-ci.org/ParallelDots/ParallelDots-Python-API.svg?branch=master

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

Examples

>>> from paralleldots import similarity, ner, taxonomy, sentiment

>>> 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"]}

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-0.4.9.zip (7.9 kB view details)

Uploaded Source

File details

Details for the file ParallelDots-0.4.9.zip.

File metadata

  • Download URL: ParallelDots-0.4.9.zip
  • Upload date:
  • Size: 7.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for ParallelDots-0.4.9.zip
Algorithm Hash digest
SHA256 f4bf7ce5ac3d5206910e54fa455477f9bfe2bfb3fe3a1901c99d8fca50fa8ccc
MD5 d5bd62fa381f80c2e143244f43450f8c
BLAKE2b-256 f6d63f17e3960f348bc70c4a6b669db6c95cf95d13828bb1749da94361e05fd1

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