NAV Navbar
shell ruby python java php csharp
  • Introduction
  • Authentication
  • /SENTIMENT
  • /SIMILARITY
  • /NER
  • /KEYWORDS
  • /TAXONOMY
  • /EMOTION
  • /INTENT
  • /MULTILANG
  • /ABUSE
  • /SENTIMENT_SOCIAL
  • /TEXT_PARSER
  • /CUSTOM_CLASSIFIER
  • /POPULARITY
  • Introduction

    AI Powered Text Analysis Apis

    Version: 2.0.0

    Authentication

    To authorize, use this code:

    require 'paralleldots'
    
    set_api_key("ABCdef123MNO456PQR789xyz")
    
    from paralleldots import set_api_key
    
    set_api_key("ABCdef123MNO456PQR789xyz")
    
    
    
    from paralleldots import set_api_key, get_api_key
    
    set_api_key("ABCdef123MNO456PQR789xyz")
    
    require(__DIR__ . '/vendor/paralleldots/apis/autoload.php');
    # Setting your API key
    set_api_key("ABCdef123MNO456PQR789xyz"); 
    
    
    # Import wrapper namespace
    using wrapper
    
    # Initialize instance of api class
    wrapper.api pd = new wrapper.api("ABCdef123MNO456PQR789xyz");
    
    

    Make sure to replace ABCdef123MNO456PQR789xyz with your API key.

    ParallelDots AI APIs uses API keys to allow access to the API. You can register a new API key at our developer portal.

    /SENTIMENT

    POST

    Summary: Sentiment

    Description: Understand the sentiment of the news.

    require 'paralleldots'
    
    sentiment( "Come on, lets play together" )
    
    from paralleldots import sentiment
    
    sentiment( "Come on, lets play together" )
    
    curl -X POST --header 'Content-Type: multipart/form-data' --header 'Accept: application/json' {"type":"formData"} 'https://apis.paralleldots.com/v2/sentiment?text=Come%20on%2C%20lets%20play%20together.&api_key=ABCdef123MNO456PQR789xyz'
    
    import paralleldots.ParallelDots;
    
    ParallelDots pd = new ParallelDots();
    String sentiment = pd.sentiment("Come on, lets play together");
    System.out.println(sentiment);
    
    
    require(__DIR__ . '/vendor/paralleldots/apis/autoload.php');
    sentiment("Come on, lets play together");
    
    
    var sentiment = pd.sentiment("Come on, lets play together");
    Console.WriteLine(sentiment);
    
    

    The above command returns JSON structured like this:

    {
      "probabilities": {
        "positive": 0.557268,
        "neutral": 0.417357,
        "negative": 0.025374
      },
      "usage": "By accessing ParallelDots API or using information generated by ParallelDots API, you are agreeing to be bound by the ParallelDots API Terms of Use: http://www.paralleldots.com/terms-and-conditions",
      "sentiment": "positive"
    }
    

    HTTP Request

    ***POST*** /sentiment

    Parameters

    Name Located in Description Required Type
    text query Pass a long statement Yes string
    api_key query Apikey Yes string

    Responses

    Code Description
    200 Successful response
    304 Not Modified
    500 Internal Server Error

    /SIMILARITY

    POST

    Summary: Similarity

    Description: Semantic Analysis API helps users cluster similar articles by understanding the relatedness between different content and streamlines research by eliminating redundant text contents.

    require 'paralleldots'
    
    similarity( "Sachin is the greatest batsman", "Tendulkar is the finest cricketer" )
    
    from paralleldots import similarity
    
    similarity( "Sachin is the greatest batsman", "Tendulkar is the finest cricketer" )
    
    curl -X POST --header 'Content-Type: multipart/form-data' --header 'Accept: application/json' {"type":"formData"} 'https://apis.paralleldots.com/v2/similarity?text_1=Sachin%20is%20the%20greatest%20batsman&text_2=Tendulkar%20is%20the%20finest%20cricketer&api_key=ABCdef123MNO456PQR789xyz'
    
    import paralleldots.ParallelDots;
    
    ParallelDots pd = new ParallelDots();
    String similarity = pd.similarity("Sachin is the greatest batsman", "Tendulkar is the finest cricketer");
    System.out.println(similarity);
    
    
    require(__DIR__ . '/vendor/paralleldots/apis/autoload.php');
    similarity("Sachin is the greatest batsman", "Tendulkar is the finest cricketer");
    
    
    var similarity = pd.similarity("Sachin is the greatest batsman", "Tendulkar is the finest cricketer");
    Console.WriteLine(similarity);
    
    

    The above command returns JSON structured like this:

    {
      "usage": "By accessing ParallelDots API or using information generated by ParallelDots API, you are agreeing to be bound by the ParallelDots API Terms of Use: http://www.paralleldots.com/terms-and-conditions",
      "actual_score": 0.842932,
      "normalized_score": 4.931469
    }
    

    HTTP Request

    ***POST*** /similarity

    Parameters

    Name Located in Description Required Type
    text_1 query Pass a long statement Yes string
    text_2 query Pass a long statement Yes string
    api_key query Apikey Yes string

    Responses

    Code Description
    200 Successful response
    304 Not Modified
    500 Internal Server Error

    /NER

    POST

    Summary: Entitiy Extraction

    Description: Named-entity recognition(NER) can identify individuals, companies, places, organization, cities and other various type of entities. API can extract this information from any type of text, web page or social media network.

    require 'paralleldots'
    
    ner( "Narendra Modi is the prime minister of India" )
    
    from paralleldots import ner
    
    ner( "Narendra Modi is the prime minister of India" )
    
    curl -X POST --header 'Content-Type: application/json' --header 'Accept: application/json' 'https://apis.paralleldots.com/v2/ner?text=Narendra%20Modi%20is%20the%20prime%20minister%20of%20India&api_key=ABCdef123MNO456PQR789xyz'
    
    import paralleldots.ParallelDots;
    
    ParallelDots pd = new ParallelDots();
    String ner = pd.ner("Narendra Modi is the prime minister of India");
    System.out.println(ner);
    
    
    require(__DIR__ . '/vendor/paralleldots/apis/autoload.php');
    ner( "Narendra Modi is the prime minister of India" );
    
    
    var ner = pd.ner( "Narendra Modi is the prime minister of India" );
    Console.WriteLine(ner);
    
    

    The above command returns JSON structured like this:

    {
      "usage": "By accessing ParallelDots API or using information generated by ParallelDots API, you are agreeing to be bound by the ParallelDots API Terms of Use: http://www.paralleldots.com/terms-and-conditions",
      "entities": [
        {
          "category": "place",
          "name": "India",
          "confidence_score": 0.9263
        },
        {
          "category": "name",
          "name": "Narendra Modi",
          "confidence_score": 0.951439
        }
      ]
    }
    
    

    HTTP Request

    ***POST*** /ner

    Parameters

    Name Located in Description Required Type
    text query Pass a long statement Yes string
    api_key query Apikey Yes string

    Responses

    Code Description
    200 Successful response
    304 Not Modified
    500 Internal Server Error

    /KEYWORDS

    POST

    Summary: Keywords

    Description: Keyword Generator are powerful tools in text analysis that can be used to index data, generate tag clouds and accelerate the searching time. It generates an extensive list of relevant keywords and phrases to make research more context focussed.

    require 'paralleldots'
    
    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.")
    
    from paralleldots import keywords
    
    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.")
    
    curl -X POST --header 'Content-Type: multipart/form-data' --header 'Accept: application/json' {"type":"formData"} 'https://apis.paralleldots.com/v2/keywords?text=%22Prime%20Minister%20Narendra%20Modi%20tweeted%20a%20link%20to%20the%20speech%20Human%20Resource%20Development%20Minister%20Smriti%20Irani%20made%20in%20the%20Lok%20Sabha%20during%20the%20debate%20on%20the%20ongoing%20JNU%20row%20and%20the%20suicide%20of%20Dalit%20scholar%20Rohith%20Vemula%20at%20the%20Hyderabad%20Central%20University.&api_key=ABCdef123MNO456PQR789xyz'
    
    import paralleldots.ParallelDots;
    
    ParallelDots pd = new ParallelDots();
    String keywords = pd.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.");
    System.out.println(keywords);
    
    
    require(__DIR__ . '/vendor/paralleldots/apis/autoload.php');
    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.");
    
    
    var keywords = pd.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.");
    Console.WriteLine(keywords);
    
    

    The above command returns JSON structured like this:

    {
      "keywords": [
        {
          "keyword": "Prime Minister Narendra Modi",
          "confidence_score": 0.857594
        },
        {
          "keyword": "link",
          "confidence_score": 0.913924
        },
        {
          "keyword": "speech Human Resource",
          "confidence_score": 0.70655
        },
        {
          "keyword": "Smriti",
          "confidence_score": 0.860351
        },
        {
          "keyword": "Lok",
          "confidence_score": 0.945534
        }
      ],
      "usage": "By accessing ParallelDots API or using information generated by ParallelDots API, you are agreeing to be bound by the ParallelDots API Terms of Use: http://www.paralleldots.com/terms-and-conditions"
    }
    
    

    HTTP Request

    ***POST*** /keywords

    Parameters

    Name Located in Description Required Type
    text query Pass a long statement Yes string
    api_key query Apikey Yes string

    Responses

    Code Description
    200 Successful response
    304 Not modified
    500 Internal Server Error

    /TAXONOMY

    POST

    Summary: taxonomy

    Description: Text Classification can be useful in understanding customer behaviour by categorizing conversations on social networks, feedback and other web sources.

    require 'paralleldots'
    
    taxonomy("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.")
    
    from paralleldots import taxonomy
    
    taxonomy("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.")
    
    curl -X POST --header 'Content-Type: multipart/form-data' --header 'Accept: application/json' {"type":"formData"} 'https://apis.paralleldots.com/v2/taxonomy?text=%22Prime%20Minister%20Narendra%20Modi%20tweeted%20a%20link%20to%20the%20speech%20Human%20Resource%20Development%20Minister%20Smriti%20Irani%20made%20in%20the%20Lok%20Sabha%20during%20the%20debate%20on%20the%20ongoing%20JNU%20row%20and%20the%20suicide%20of%20Dalit%20scholar%20Rohith%20Vemula%20at%20the%20Hyderabad%20Central%20University.&api_key=ABCdef123MNO456PQR789xyz'
    
    import paralleldots.ParallelDots;
    
    ParallelDots pd = new ParallelDots();
    String taxonomy = pd.taxonomy("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.");
    System.out.println(taxonomy);
    
    
    require(__DIR__ . '/vendor/paralleldots/apis/autoload.php');
    taxonomy("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.");
    
    
    var taxonomy = pd.taxonomy("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.");
    Console.WriteLine(taxonomy);
    
    

    The above command returns JSON structured like this:

    {
      "usage": "By accessing ParallelDots API or using information generated by ParallelDots API, you are agreeing to be bound by the ParallelDots API Terms of Use: http://www.paralleldots.com/terms-and-conditions",
      "taxonomy": [
        {
          "tag": "politics",
          "confidence_score": 0.801695
        },
        {
          "tag": "law",
          "confidence_score": 0.715046
        },
        {
          "tag": "terrorism",
          "confidence_score": 0.631782
        },
        {
          "tag": "geography",
          "confidence_score": 0.61001
        },
        {
          "tag": "world politics",
          "confidence_score": 0.475048
        },
        {
          "tag": "crime",
          "confidence_score": 0.464361
        },
        {
          "tag": "religion",
          "confidence_score": 0.434293
        },
        {
          "tag": "education",
          "confidence_score": 0.39257
        },
        {
          "tag": "business",
          "confidence_score": 0.308695
        },
        {
          "tag": "mining",
          "confidence_score": 0.307659
        },
        {
          "tag": "defense",
          "confidence_score": 0.298858
        },
        {
          "tag": "health",
          "confidence_score": 0.222498
        }
      ]
    }
    
    

    HTTP Request

    ***POST*** /taxonomy

    Parameters

    Name Located in Description Required Type
    text query Pass a long statement Yes string
    api_key query Apikey Yes string

    Responses

    Code Description
    200 Successful response
    304 Not Modified
    500 Internal Server Error

    /EMOTION

    POST

    Summary: emotion

    Description: Sometimes the three classes of sentiment (positive, negative and neutral) are not sufficient to understand the nuances regarding the underlying tone of a sentence. Our Emotion Analysis classifier is trained on our proprietary dataset and tells whether the underlying emotion behind a message is: Happy, Sad, Angry, Fearful, Excited, Funny or Indifferent.

    require 'paralleldots'
    
    emotion("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.")
    
    from paralleldots import emotion
    
    emotion("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.")
    
    curl -X POST --header 'Content-Type: multipart/form-data' --header 'Accept: application/json' {"type":"formData"} 'https://apis.paralleldots.com/v2/emotion?text=%22Prime%20Minister%20Narendra%20Modi%20tweeted%20a%20link%20to%20the%20speech%20Human%20Resource%20Development%20Minister%20Smriti%20Irani%20made%20in%20the%20Lok%20Sabha%20during%20the%20debate%20on%20the%20ongoing%20JNU%20row%20and%20the%20suicide%20of%20Dalit%20scholar%20Rohith%20Vemula%20at%20the%20Hyderabad%20Central%20University.&api_key=ABCdef123MNO456PQR789xyz'
    
    import paralleldots.ParallelDots;
    
    ParallelDots pd = new ParallelDots();
    String emotion = pd.emotion("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.");
    System.out.println(emotion);
    
    
    require(__DIR__ . '/vendor/paralleldots/apis/autoload.php');
    emotion("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.");
    
    
    var emotion = pd.emotion("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.");
    Console.WriteLine(emotion);
    
    

    The above command returns JSON structured like this:

    {
      "emotion": "happy",
      "probabilities": {
        "angry": 0.060821,
        "indifferent": 0.177633,
        "sad": 0.06691,
        "excited": 0.279476,
        "happy": 0.41516
      },
      "usage": "By accessing ParallelDots API or using information generated by ParallelDots API, you are agreeing to be bound by the ParallelDots API Terms of Use: http://www.paralleldots.com/terms-and-conditions"
    }
    
    

    HTTP Request

    ***POST*** /emotion

    Parameters

    Name Located in Description Required Type
    text formData Pass a statement Yes string
    api_key formData Apikey Yes string

    Responses

    Code Description
    200 Successful response
    304 Not Modified
    500 Internal Server Error

    /INTENT

    POST

    Summary: Intent

    Description: This classifier tells whether the underlying intention behind a sentence is opinion, news, marketing, complaint, suggestion, apprectiation, query. This is trained on our proprietary dataset.

    require 'paralleldots'
    
    intent("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.")
    
    from paralleldots import intent
    
    intent("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.")
    
    curl -X POST --header 'Content-Type: multipart/form-data' --header 'Accept: application/json' {"type":"formData"} 'https://apis.paralleldots.com/v2/intent?text=%22Prime%20Minister%20Narendra%20Modi%20tweeted%20a%20link%20to%20the%20speech%20Human%20Resource%20Development%20Minister%20Smriti%20Irani%20made%20in%20the%20Lok%20Sabha%20during%20the%20debate%20on%20the%20ongoing%20JNU%20row%20and%20the%20suicide%20of%20Dalit%20scholar%20Rohith%20Vemula%20at%20the%20Hyderabad%20Central%20University.&api_key=ABCdef123MNO456PQR789xyz'
    
    import paralleldots.ParallelDots;
    
    ParallelDots pd = new ParallelDots();
    String intent = pd.intent("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.");
    System.out.println(intent);
    
    
    require(__DIR__ . '/vendor/paralleldots/apis/autoload.php');
    intent("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.");
    
    
    var intent = pd.intent("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.");
    Console.WriteLine(intent);
    
    

    The above command returns JSON structured like this:

    {
      "probabilities": {
        "news": 0.917396,
        "other": 0.001998,
        "query": 0.000132,
        "feedback/opinion": 0.069,
        "spam": 0.011474
      },
      "usage": "By accessing ParallelDots API or using information generated by ParallelDots API, you are agreeing to be bound by the ParallelDots API Terms of Use: http://www.paralleldots.com/terms-and-conditions",
      "intent": "news"
    }
    
    

    HTTP Request

    ***POST*** /intent

    Parameters

    Name Located in Description Required Type
    text formData Pass a statement Yes string
    api_key formData Apikey Yes string

    Responses

    Code Description
    200 Successful response
    304 Not Modified
    500 Internal Server Error

    /MULTILANG

    POST

    Summary: Multilang

    Description: Understand the underlying tone of the message for sentences in French, Portuguese and Spanish. We will add more languages over time, watch this space.

    require 'paralleldots'
    
    multilang("Me encanta jugar al baloncesto", "es")
    
    from paralleldots import multilang
    
    multilang("Me encanta jugar al baloncesto", "es")
    
    curl -X POST --header 'Content-Type: application/x-www-form-urlencoded' --header 'Accept: application/json' -d 'text=Me%20encanta%20jugar%20al%20baloncesto.&api_key=ABCdef123MNO456PQR789xyz&lang_code=en' 'https://apis.paralleldots.com/v2/multilang'
    
    import paralleldots.ParallelDots;
    
    ParallelDots pd = new ParallelDots();
    String multilang = pd.multilang("Me encanta jugar al baloncesto", "es");
    System.out.println(multilang);
    
    
    require(__DIR__ . '/vendor/paralleldots/apis/autoload.php');
    multilang("Me encanta jugar al baloncesto", "es");
    
    
    var multilang = pd.multilang("Me encanta jugar al baloncesto", "es");
    Console.WriteLine(multilang);
    
    

    The above command returns JSON structured like this:

    {
    "sentiment": "positive", 
    "confidence_score": 1.0
    }
    
    

    HTTP Request

    ***POST*** /multilang

    Parameters

    Name Located in Description Required Type
    text formData Pass a statement and encode it to a specific language whether it is portuguese,spanish and chinese. Here is the link URL encoder Yes string
    api_key formData Apikey Yes string
    lang_code formData for spanish type='es',for portuguese type='pt'and for chinese type= 'cn' Yes string

    Responses

    Code Description
    200 Successful response
    304 Not Modified
    500 Internal Server Error

    /ABUSE

    POST

    Summary: Abuse

    Description: Abusive content specifier specifies whether the content is abusive or not.

    require 'paralleldots'
    
    abuse("you f**king a$$hole")
    
    from paralleldots import abuse
    
    abuse("you f**king a$$hole")
    
    curl -X POST --header 'Content-Type: application/x-www-form-urlencoded' --header 'Accept: application/json' -d 'text=you%20f**king%20a%24%24hole&api_key=ABCdef123MNO456PQR789xyz' 'https://apis.paralleldots.com/v2/abuse'
    
    import paralleldots.ParallelDots;
    
    ParallelDots pd = new ParallelDots();
    String abuse = pd.abuse("you f**king a$$hole");
    System.out.println(abuse);
    
    
    require(__DIR__ . '/vendor/paralleldots/apis/autoload.php');
    abuse("you f**king a$$hole");
    
    
    var abuse = pd.abuse("you f**king a$$hole");
    Console.WriteLine(abuse);
    
    

    The above command returns JSON structured like this:

    {
      "usage": "By accessing ParallelDots API or using information generated by ParallelDots API, you are agreeing to be bound by the ParallelDots API Terms of Use: http://www.paralleldots.com/terms-and-conditions",
      "sentence_type": "Abusive",
      "confidence_score": 0.953125
    }
    
    

    HTTP Request

    ***POST*** /abuse

    Parameters

    Name Located in Description Required Type
    text formData Pass a statement Yes string
    api_key formData Apikey Yes string

    Responses

    Code Description
    200 Successful response
    304 Not Modified
    500 Internal Server Error

    /SENTIMENT_SOCIAL

    POST

    Summary: Sentiment Social

    Description: Understand the social sentiment of your brand, product or service while monitoring online conversations through twitter, facebook etc..

    require 'paralleldots'
    
    sentiment_social("I left my camera at home")
    
    from paralleldots import sentiment_social
    
    sentiment_social("I left my camera at home")
    
    curl -X POST --header 'Content-Type: multipart/form-data' --header 'Accept: application/json' {"type":"formData"} 'https://apis.paralleldots.com/v2/sentiment_social?text=I%20left%20my%20camera%20at%20home.&api_key=ABCdef123MNO456PQR789xyz'
    
    import paralleldots.ParallelDots;
    
    ParallelDots pd = new ParallelDots();
    String sentiment_social = pd.sentiment_social("I left my camera at home");
    System.out.println(sentiment_social);
    
    
    require(__DIR__ . '/vendor/paralleldots/apis/autoload.php');
    sentiment_social("I left my camera at home");
    
    
    var sentiment_social = pd.sentiment_social("I left my camera at home");
    Console.WriteLine(sentiment_social);
    
    

    The above command returns JSON structured like this:

    {
      "probabilities": {
        "positive": 0.557268,
        "neutral": 0.417357,
        "negative": 0.025374
      },
      "usage": "By accessing ParallelDots API or using information generated by ParallelDots API, you are agreeing to be bound by the ParallelDots API Terms of Use: http://www.paralleldots.com/terms-and-conditions",
      "sentiment": "positive"
    }
    

    HTTP Request

    ***POST*** /sentiment_social

    Parameters

    Name Located in Description Required Type
    text query Pass a statement Yes string
    api_key query Apikey Yes string

    Responses

    Code Description
    200 Successful response
    304 Not Modified
    500 Internal Server Error

    /TEXT_PARSER

    POST

    Summary: Text Parser

    Description: Understand the text entered by using our API

    require 'paralleldots'
    
    text_parser("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.")
    
    from paralleldots import text_parser
    
    text_parser("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.")
    
    curl -X POST --header 'Content-Type: multipart/form-data' --header 'Accept: application/json' {"type":"formData"} 'https://apis.paralleldots.com/v2/text_parser?text=Prime%20Minister%20Narendra%20Modi%20tweeted%20a%20link%20to%20the%20speech%20Human%20Resource%20Development%20Minister%20Smriti%20Irani%20made%20in%20the%20Lok%20Sabha%20during%20the%20debate%20on%20the%20ongoing%20JNU%20row%20and%20the%20suicide%20of%20Dalit%20scholar%20Rohith%20Vemula%20at%20the%20Hyderabad%20Central%20University.&api_key=ABCdef123MNO456PQR789xyz'
    
    import paralleldots.ParallelDots;
    
    ParallelDots pd = new ParallelDots();
    String text_parser = pd.text_parser("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.");
    System.out.println(text_parser);
    
    
    require(__DIR__ . '/vendor/paralleldots/apis/autoload.php');
    text_parser("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.");
    
    
    var text_parser = pd.text_parser("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.");
    Console.WriteLine(text_parser);
    
    

    The above command returns JSON structured like this:

    {
      "usage": "By accessing ParallelDots API or using information generated by ParallelDots API, you are agreeing to be bound by the ParallelDots API Terms of Use: http://www.paralleldots.com/terms-and-conditions",
      "output": [
        {
          "Dependency": "compound",
          "text": "Prime",
          "Tags": "noun"
        },
        {
          "Dependency": "compound",
          "text": "Minister",
          "Tags": "noun"
        },
        {
          "Dependency": "compound",
          "text": "Narendra",
          "Tags": "noun"
        },
        {
          "Dependency": "nominal subject",
          "text": "Modi",
          "Tags": "noun"
        },
        {
          "Dependency": "root",
          "text": "tweeted",
          "Tags": "verb"
        },
        {
          "Dependency": "determiner",
          "text": "a",
          "Tags": "determiner"
        },
        {
          "Dependency": "direct object",
          "text": "link",
          "Tags": "noun"
        },
        {
          "Dependency": "prepositional modifier",
          "text": "to",
          "Tags": "preposition or conjunction"
        },
        {
          "Dependency": "determiner",
          "text": "the",
          "Tags": "determiner"
        },
        {
          "Dependency": "compound",
          "text": "speech",
          "Tags": "noun"
        },
        {
          "Dependency": "compound",
          "text": "Human",
          "Tags": "noun"
        },
        {
          "Dependency": "compound",
          "text": "Resource",
          "Tags": "noun"
        },
        {
          "Dependency": "compound",
          "text": "Development",
          "Tags": "noun"
        },
        {
          "Dependency": "compound",
          "text": "Minister",
          "Tags": "noun"
        },
        {
          "Dependency": "compound",
          "text": "Smriti",
          "Tags": "noun"
        },
        {
          "Dependency": "object of a preposition",
          "text": "Irani",
          "Tags": "noun"
        },
        {
          "Dependency": "prepositional modifier",
          "text": "in",
          "Tags": "preposition or conjunction"
        },
        {
          "Dependency": "determiner",
          "text": "the",
          "Tags": "determiner"
        },
        {
          "Dependency": "compound",
          "text": "Lok",
          "Tags": "noun"
        },
        {
          "Dependency": "object of a preposition",
          "text": "Sabha",
          "Tags": "noun"
        },
        {
          "Dependency": "prepositional modifier",
          "text": "during",
          "Tags": "preposition or conjunction"
        },
        {
          "Dependency": "determiner",
          "text": "the",
          "Tags": "determiner"
        },
        {
          "Dependency": "object of a preposition",
          "text": "debate",
          "Tags": "noun"
        },
        {
          "Dependency": "prepositional modifier",
          "text": "on",
          "Tags": "preposition or conjunction"
        },
        {
          "Dependency": "determiner",
          "text": "the",
          "Tags": "determiner"
        },
        {
          "Dependency": "adjectival modifier",
          "text": "ongoing",
          "Tags": "adjective"
        },
        {
          "Dependency": "compound",
          "text": "JNU",
          "Tags": "noun"
        },
        {
          "Dependency": "object of a preposition",
          "text": "row",
          "Tags": "noun"
        },
        {
          "Dependency": "coordinating conjunction",
          "text": "and",
          "Tags": "conjuction"
        },
        {
          "Dependency": "determiner",
          "text": "the",
          "Tags": "determiner"
        },
        {
          "Dependency": "conjunct",
          "text": "suicide",
          "Tags": "noun"
        },
        {
          "Dependency": "prepositional modifier",
          "text": "of",
          "Tags": "preposition or conjunction"
        },
        {
          "Dependency": "compound",
          "text": "Dalit",
          "Tags": "noun"
        },
        {
          "Dependency": "compound",
          "text": "scholar",
          "Tags": "noun"
        },
        {
          "Dependency": "compound",
          "text": "Rohith",
          "Tags": "noun"
        },
        {
          "Dependency": "object of a preposition",
          "text": "Vemula",
          "Tags": "noun"
        },
        {
          "Dependency": "prepositional modifier",
          "text": "at",
          "Tags": "preposition or conjunction"
        },
        {
          "Dependency": "determiner",
          "text": "the",
          "Tags": "determiner"
        },
        {
          "Dependency": "compound",
          "text": "Hyderabad",
          "Tags": "noun"
        },
        {
          "Dependency": "compound",
          "text": "Central",
          "Tags": "noun"
        },
        {
          "Dependency": "object of a preposition",
          "text": "University",
          "Tags": "noun"
        }
      ]
    }
    
    

    HTTP Request

    ***POST*** /text_parser

    Parameters

    Name Located in Description Required Type
    text query Pass a statement Yes string
    api_key query Apikey Yes string

    Responses

    Code Description
    200 Successful response
    304 Not Modified
    500 Internal Server Error

    /CUSTOM_CLASSIFIER

    POST

    Summary: Custom Classifier

    Description: Get Sentence classified on your own fields without the hassel of training a model.

    require 'paralleldots'
    
    custom_classifier("The brownie is worst in the world.","qufhjenfUHWNGU454kknNN")
    
    from paralleldots import custom_classifier
    
    custom_classifier("The brownie is worst in the world.","qufhjenfUHWNGU454kknNN")
    
    curl -X POST --header 'Content-Type: multipart/form-data' --header 'Accept: application/json' {"type":"formData"} 'https://apis.paralleldots.com/v2/custom_classifier?text=The%20brownie%20is%20worst%20in%20the%20world.&api_key=ABCdef123MNO456PQR789xyz&id=qufhjenfUHWNGU454kknNN'
    
    import paralleldots.ParallelDots;
    
    ParallelDots pd = new ParallelDots();
    String custom_classifier = pd.custom_classifier("The brownie is worst in the world.","qufhjenfUHWNGU454kknNN");
    System.out.println(custom_classifier);
    
    
    require(__DIR__ . '/vendor/paralleldots/apis/autoload.php');
    custom_classifier("The brownie is worst in the world.","qufhjenfUHWNGU454kknNN");
    
    
    var custom_classifier = pd.custom_classifier("The brownie is worst in the world.","qufhjenfUHWNGU454kknNN");
    Console.WriteLine(custom_classifier);
    
    

    Make sure to replace qufhjenfUHWNGU454kknNN with your Published ID for your cusstom categories..

    The above command returns JSON structured like this:

    {
      "usage": "By accessing ParallelDots API or using information generated by ParallelDots API, you are agreeing to be bound by the ParallelDots API Terms of Use: http://www.paralleldots.com/terms-and-conditions",
      "taxonomy": [
        {
          "tag": "news",
          "confidence_score": 0.821275
        },
        {
          "tag": "home",
          "confidence_score": 0.743163
        },
        {
          "tag": "places",
          "confidence_score": 0.648853
        }
      ]
    }
    
    

    HTTP Request

    ***POST*** /custom_classifier

    Get your own Publishing Key at our developer portal.

    Parameters

    Name Located in Description Required Type
    text query Pass a statement Yes string
    api_key query Apikey Yes string
    id query Application id Yes string

    Responses

    Code Description
    200 Successful response
    304 Not Modified
    500 Internal Server Error

    /POPULARITY

    POST

    Summary: Popularity

    Description: Get the virality score of your picture on socail media.

    require 'uri'
    require 'net/http'
    
    url = URI("http://apis.paralleldots.com/v2/popularity")
    
    http = Net::HTTP.new(url.host, url.port)
    
    request = Net::HTTP::Post.new(url)
    request["content-type"] = 'multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW'
    request["Cache-Control"] = 'no-cache'
    request.body = "------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"api_key\"\r\n\r\nABCdef123MNO456PQR789xyz(Your API key)\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"file\"; filename=\"path/to/your/image.jpg\"\r\nContent-Type: image/jpeg\r\n\r\n\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW--"
    
    response = http.request(request)
    puts response.read_body
    
    import requests
    
    url = "http://apis.paralleldots.com/v2/popularity"
    
    payload = "------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"api_key\"\r\n\r\nABCdef123MNO456PQR789xyz(Your API key)\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"file\"; filename=\"path/to/your/image.jpg\"\r\nContent-Type: image/jpeg\r\n\r\n\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW--"
    headers = {
        'content-type': "multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW",
        'Cache-Control': "no-cache",
        }
    
    response = requests.request("POST", url, data=payload, headers=headers)
    
    print(response.text)
    
    curl -X POST \
      http://apis.paralleldots.com/v2/popularity \
      -H 'Cache-Control: no-cache' \
      -H 'Postman-Token: 147fe5a8-73fe-fad4-716e-bb2ede5addc7' \
      -H 'content-type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW' \
      -F api_key=ABCdef123MNO456PQR789xyz(Your API key)\
      -F file=@/path/to/your/image.jpg
    
    OkHttpClient client = new OkHttpClient();
    
    MediaType mediaType = MediaType.parse("multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW");
    RequestBody body = RequestBody.create(mediaType, "------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"api_key\"\r\n\r\nABCdef123MNO456PQR789xyz(Your API key)\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"file\"; filename=\"/path/to/your/image.jpg\"\r\nContent-Type: image/jpeg\r\n\r\n\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW--");
    Request request = new Request.Builder()
      .url("http://apis.paralleldots.com/v2/popularity")
      .post(body)
      .addHeader("content-type", "multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW")
      .addHeader("Cache-Control", "no-cache")
      .build();
    
    Response response = client.newCall(request).execute();
    
    
    <?php
    
    $request = new HttpRequest();
    $request->setUrl('http://apis.paralleldots.com/v2/popularity');
    $request->setMethod(HTTP_METH_POST);
    
    $request->setHeaders(array(
      'Cache-Control' => 'no-cache',
      'content-type' => 'multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW'
    ));
    
    $request->setBody('------WebKitFormBoundary7MA4YWxkTrZu0gW
    Content-Disposition: form-data; name="api_key"
    
    ABCdef123MNO456PQR789xyz(Your API key)
    ------WebKitFormBoundary7MA4YWxkTrZu0gW
    Content-Disposition: form-data; name="file"; filename="/path/to/your/image.jpg"
    Content-Type: image/jpeg
    
    
    ------WebKitFormBoundary7MA4YWxkTrZu0gW--');
    
    try {
      $response = $request->send();
    
      echo $response->getBody();
    } catch (HttpException $ex) {
      echo $ex;
    }
    
    
    var client = new RestClient("http://apis.paralleldots.com/v2/popularity");
    var request = new RestRequest(Method.POST);
    request.AddHeader("Cache-Control", "no-cache");
    request.AddHeader("content-type", "multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW");
    request.AddParameter("multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW", "------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"api_key\"\r\n\r\nABCdef123MNO456PQR789xyz(Your API key)\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"file\"; filename=\"/path/to/your/image.jpg\"\r\nContent-Type: image/jpeg\r\n\r\n\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW--", ParameterType.RequestBody);
    IRestResponse response = client.Execute(request);
    
    

    Make sure to replace ABCdef123MNO456PQR789xyz with your own API Key..

    The above command returns JSON structured like this:

    {
        "Popular": "59.8144471645",
        "usage": "By accessing ParallelDots API or using information generated by ParallelDots API, you are agreeing to be bound by the ParallelDots API Terms of Use: http://www.paralleldots.com/terms-and-conditions",
        "Not Popular": "40.1855528355"
    }
    
    

    HTTP Request

    ***POST*** /popularity

    Parameters

    Name Located in Description Required Type
    file query Pass a image Yes file
    api_key query Apikey Yes string

    Responses

    Code Description
    200 Successful response
    304 Not Modified
    500 Internal Server Error