question

AmySand-8143 avatar image
0 Votes"
AmySand-8143 asked romungi-MSFT answered

Content Moderator not returning Flagged Terms / suppression list?

When I submit text to Content Moderator, sometimes it over-corrects and flags words that are not inappropriate like "dude." When this happens, it does not return the terms object. Example:

 {
   "OriginalText": "dude",
   "NormalizedText": "dude",
   "AutoCorrectedText": null,
   "Misrepresentation": null,
   "Classification": {
     "Category1": {
       "Score": 0.6848050355911255
     },
     "Category2": {
       "Score": 0.2296631783246994
     },
     "Category3": {
       "Score": 0.16778776049613953
     },
     "ReviewRecommended": true
   },
   "Status": {
     "Code": 3000,
     "Description": "OK",
     "Exception": null
   },
   "PII": null,
   "Language": "eng",
   "Terms": null,
 }

I would expect something more like this:

 {
   "OriginalText": "shit",
   "NormalizedText": "shit",
   "AutoCorrectedText": null,
   "Misrepresentation": null,
   "Classification": {
     "Category1": {
       "Score": 0.5763477087020874
     },
     "Category2": {
       "Score": 0.2296631783246994
     },
     "Category3": {
       "Score": 0.8333353996276855
     },
     "ReviewRecommended": true
   },
   "Status": {
     "Code": 3000,
     "Description": "OK",
     "Exception": null
   },
   "PII": null,
   "Language": "eng",
   "Terms": [
     {
       "Index": 0,
       "OriginalIndex": 0,
       "ListId": 0,
       "Term": "shit"
     }
   ],
 }


Is there a way to force it to return the Terms object? Or add a suppression list to ignore words we don't want flagged? Or even get a list of Microsoft's words so we can create a custom list off of that?

Thanks!

azure-content-moderator
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

cheong00 avatar image
0 Votes"
cheong00 answered

You can get the list of terms with Terms API here.


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

romungi-MSFT avatar image
0 Votes"
romungi-MSFT answered

@AmySand-8143 Yes, you can create a custom term list and check the text against a custom term list.


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.