Detect if the content contains toxic content from a paragraph of text

0

I am having a HTML textarea where a user enters a descriptive text. I want to know which service to use (consume) to detect if the user-inputted text is toxic or not. rekognition/content-moderation and comprehend seem to be detecting data from media sources like images, videos or PDFs.

posta 2 anni fa550 visualizzazioni
1 Risposta
0
Risposta accettata

Comprehend is the best tool for this job.

You will want to create a Custom Classification where you can define words or phrases as "toxic". Unfortunately it's very hard to determine what constitutes "toxic" language out of the box as everyones definition is slightly different, so this will be the best path.

With Custom Classification, you can define words or phrases and define a label for them to train Comprehend and then run the specific comments through the Comprehend API to identify if the text contains any of your custom labels.

profile pictureAWS
ESPERTO
Chris_G
con risposta 2 anni fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande