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.

質問済み 2年前550ビュー
1回答
0
承認された回答

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
エキスパート
Chris_G
回答済み 2年前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ