Get Started

Introduction

Paralleldots' Deep Learning powered Text Analysis APIs are intelligent tools to extract smart insights from textual or visual data. We're here to guide you get started with Paralleldots' Text Analysis APIs.

The recommended way to install Paralleldots APIs is through our API wrappers, available for Python and Ruby. For further queries please contact support@paralleldots.com.

Python Wrapper

Suppose Your API Key is: ABCdef123MNO456PQR789xyz

Installation

>>> pip install paralleldots

Configuration

>>> from paralleldots import set_api_key, get_api_key

# Setting your API key
>>> set_api_key("ABCdef123MNO456PQR789xyz")

# Viewing your API key
>>> get_api_key()

Examples

>>> from paralleldots import sentiment, intent, emotion, multilang_sentiment

>>> sentiment( "Come on, lets play together" )
{"sentiment": 0.8513014912605286}

>>> 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}
Ruby Wrapper

Suppose Your API Key is: ABCdef123MNO456PQR789xyz

Installation

> gem install paralleldots

Configuration

> require 'paralleldots'

# Setting your API key
> set_api_key("ABCdef123MNO456PQR789xyz")

# Viewing your API key
> get_api_key()

Examples

> require 'paralleldots'

> sentiment( "Come on, lets play together" )
{"sentiment": 0.8513014912605286}

> 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}
C# Wrapper

Suppose Your API Key is: ABCdef123MNO456PQR789xyz

Installation

PM> Install-Package ParallelDots

Configuration

# Import wrapper namespace
using wrapper

# Initialize instance of api class
wrapper.api pd = new wrapper.api("ABCdef123MNO456PQR789xyz");

Examples

var sentiment = pd.sentiment("Come on, lets play together"); Console.WriteLine(sentiment);
{"sentiment": 0.851301}

var similarity = pd.similarity("Sachin is the greatest batsman", "Tendulkar is the finest cricketer");
Console.WriteLine(similarity);
{"actual_score": 0.8429316084125629, "normalized_score": 4.931468682744329, "similarity": 4.931468682744329}

var emotion = pd.emotion("Did you hear the latest Porcupine Tree song ? It's rocking !");
Console.WriteLine(emotion);
{"emotion": "happy"}

var intent = pd.intent("Finance ministry calls banks to discuss new facility to drain cash");
Console.WriteLine(intent);
{"intent": "news"}

Get Your Free API Key


Request a demo