Python Wrapper for ParallelDots API
Project description
ParallelDots-Python-API
===============
A wrapper for the [ParallelDots API](http://www.paralleldots.com).
.. image:: https://badge.fury.io/py/paralleldots.svg
:target: http://badge.fury.io/py/paralleldots
Installation
------------
From PyPI:
.. code-block:: python
pip install paralleldots
From source:
```bash
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/developers/signup).
You will receive a mail containing the API key at the registered email id.
Configuration:
```python
>>> 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
--------
```python
>>> 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"]}
```
===============
A wrapper for the [ParallelDots API](http://www.paralleldots.com).
.. image:: https://badge.fury.io/py/paralleldots.svg
:target: http://badge.fury.io/py/paralleldots
Installation
------------
From PyPI:
.. code-block:: python
pip install paralleldots
From source:
```bash
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/developers/signup).
You will receive a mail containing the API key at the registered email id.
Configuration:
```python
>>> 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
--------
```python
>>> 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
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.4.5.zip
(6.4 kB
view details)
File details
Details for the file ParallelDots-0.4.5.zip
.
File metadata
- Download URL: ParallelDots-0.4.5.zip
- Upload date:
- Size: 6.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0b51c7afce94742df5ae40b5aeef795d9d04bf67796292571c274d81f83fdd4a |
|
MD5 | ebe7d6328c518c9102f9bca9ed19521d |
|
BLAKE2b-256 | 8340098c634747518ada5a28171764b0cc3501075b5226c166ec7cc57cb3fe2b |