Overview


Content Inspector uses advanced deep learning and natural language processing to inspect content for sarcasm and abuse. It analyzes content and gives probability of content being sarcastic and non-sarcastic. It can also analyze if a given content is a hate speech, offensive speech or neutral.


Beginner's Guide


Sarcasm is often revered as high form of humour. But Sarcasm often relies on putting the another person down and make them feel small. Sarcasm depends on Contect and tone of the person. Abusing over texts can be found in social media which can be categorized as Emotional Abuse which has greater effects than physical abuse. The understanding of these abusive languages is necessary on any media to take possible preventive measures.


Quickstart


Following : 2 services/APIs are provided by Conversation as part of Release 2.0.0.

  • Sarcasm Analysis : This API gives sarcasm analysis on text

  • Abusive Analysis : This API gives abusive analysis on text


APIs


All URIs below are relative to https://studio.spotflock.com

Sarcasm Analysis POST   /api/v1/content-interpretor-service/content-interpretor/sarcasm/
Abusive Analysis POST  /api/v1/content-interpretor-service/content-interpretor/abuse-analysis/

Sarcasm Analysis

Description

This API gives sarcasm analysis on text.

URI

POST  /api/v1/content-interpretor-service/content-interpretor/sarcasm/

Headers

api-key Your App's API Key

Attributes

text Text Sentence (String)

Request Example

{
	"text":"A warehouse is no place for them!"
}

Response

{
    "sarcastic": "40.53",
    "non-sarcastic": "59.47"
}

Abusive Analysis

Description

This API classifies text into either offensive or hate speech or neutral

URI

POST  /api/v1/content-interpretor-service/content-interpretor/abuse-analysis/

Headers

api-key Your App's API Key

Attributes

text Text Sentence (String)

Request Example

{
	"text":"A warehouse is no place for them!"
}

Response

{
    "result": "neutral"
}

Data Usage FAQ


Apart from the pricing plans for Content Inspector where you consume by API calls, you can also use SCUs to consume Content Inspector APIs. Below are the SCUs consumed for each service.

APIs SCUs Consumed
Sarcasm Analysis 5
Abuse Analysis/td> 5

Release Notes


Folowing are the release notes as part of Release 2.0.0

  • Abusive analysis classifies a text into Hate, Offensive or Neutral.

  • Sarcasm classifies a text into Sarcastic or Non-Sarcastic.

Helpdesk