Text Profanity Detection
The Text Profanity Detection model will help you detect and replace the profane words in a given conversation or text.
API Request
Returns the predicted emotion for a given sentence
POST
https://api.marsview.ai/text/profanity/get_profanity
Query Parameters
Name | Type | Description |
---|---|---|
jwtToken* | String | Marsview api access token. You can generate it here: https://docs.marsview.ai/speech-analytics-api/authentication |
text* | String | The sentence you want to detect emotion |
userId* | String | Your Marsview user ID |
replaceChar* | String | The string character you want to replace detected profane words with |
Example Curl Request
Shown below is a code snippet to send a sample request for profanity detection
Example Response
Shown below is a sample JSON response from the above request.
Response Object
Field | Description |
---|---|
| The sentence / phrase for after censoring the profane words |
| List of custom profane words detected |
predefinedProfaneWords | List of predefined profane words |
Last updated