- Learning Microsoft Cognitive Services
- Leif Larsen
- 315字
- 2021-08-13 15:40:21
Types of content moderation APIs
We will quickly go through the key features of the moderation APIs in this section.
Note
A reference to the documentation for all APIs can be found at https://docs.microsoft.com/nb-no/azure/cognitive-services/content-moderator/api-reference.
Image moderation
The image moderation API allows you to moderate images for adult and inappropriate content. It can also extract textual content and detect faces in images.
When using the API to evaluate inappropriate content, the API will take an image as input. Based on the image, it will return a Boolean value, indicating whether the image is appropriate or not. It will also contain a corresponding confidence score between 0 and 1. The Boolean value is set based on a set of default thresholds.
If the image contains any text, the API will use OCR to extract the text. It will then look for the same adult or racy content as text moderation, which we will get to shortly.
Some content-based applications may not want to display any personally identifiable information, in which case it can be wise to detect faces in images. Based on the information retrieved in the face-detection evaluation, you can ensure that no user content contains images of people.
Text moderation
Using the text moderation API, you can screen text against custom and shared lists of text. It is able to detect personally identifiable information and profanity in text. In this case, personally identifiable information is the presence of information such as email addresses, phone numbers, and mailing addresses.
When you submit a text to be moderated, the API can detect the language used, if it is not stated. Screening text will automatically correct any misspelled words (to catch deliberately misspelled words). The results will contain the location of profanities and personal identifiable information in the text, as well as the original text, autocorrected text, and the language. Using these results, you can moderate content appropriately.
- 用“芯”探核:龍芯派開(kāi)發(fā)實(shí)戰(zhàn)
- 深入淺出SSD:固態(tài)存儲(chǔ)核心技術(shù)、原理與實(shí)戰(zhàn)
- 深入淺出SSD:固態(tài)存儲(chǔ)核心技術(shù)、原理與實(shí)戰(zhàn)(第2版)
- OUYA Game Development by Example
- 嵌入式系統(tǒng)中的模擬電路設(shè)計(jì)
- 計(jì)算機(jī)組裝與維護(hù)(第3版)
- Source SDK Game Development Essentials
- Blender Game Engine:Beginner's Guide
- 筆記本電腦芯片級(jí)維修從入門(mén)到精通(圖解版)
- Mastering Quantum Computing with IBM QX
- Arduino項(xiàng)目案例:游戲開(kāi)發(fā)
- FPGA實(shí)戰(zhàn)訓(xùn)練精粹
- Raspberry Pi Home Automation with Arduino
- Learning Less.js
- 筆記本電腦的結(jié)構(gòu)、原理與維修