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.

feita há 2 anos549 visualizações
1 Resposta
0
Resposta aceita

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
ESPECIALISTA
Chris_G
respondido há 2 anos

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.

Diretrizes para responder a perguntas