你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
TextModerationExtensions.ScreenText 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
检测不雅内容,并匹配自定义和共享的黑名单
public static Microsoft.Azure.CognitiveServices.ContentModerator.Models.Screen ScreenText (this Microsoft.Azure.CognitiveServices.ContentModerator.ITextModeration operations, string textContentType, System.IO.Stream textContent, string language = default, bool? autocorrect = False, bool? pII = False, string listId = default, bool? classify = False);
static member ScreenText : Microsoft.Azure.CognitiveServices.ContentModerator.ITextModeration * string * System.IO.Stream * string * Nullable<bool> * Nullable<bool> * string * Nullable<bool> -> Microsoft.Azure.CognitiveServices.ContentModerator.Models.Screen
<Extension()>
Public Function ScreenText (operations As ITextModeration, textContentType As String, textContent As Stream, Optional language As String = Nothing, Optional autocorrect As Nullable(Of Boolean) = False, Optional pII As Nullable(Of Boolean) = False, Optional listId As String = Nothing, Optional classify As Nullable(Of Boolean) = False) As Screen
参数
- operations
- ITextModeration
此扩展方法的操作组。
- textContentType
- String
内容类型。 可能的值包括:“text/plain”、“text/html”、“text/xml”、“text/markdown”
- textContent
- Stream
内容到屏幕。
- language
- String
文本语言。
- listId
- String
列表 ID。
返回
注解
检测超过 100 种语言的亵渎内容,并匹配自定义和共享的黑名单。