你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

TextModeration 类

定义

TextModeration 操作。

public class TextModeration : Microsoft.Azure.CognitiveServices.ContentModerator.ITextModeration, Microsoft.Rest.IServiceOperations<Microsoft.Azure.CognitiveServices.ContentModerator.ContentModeratorClient>
type TextModeration = class
    interface IServiceOperations<ContentModeratorClient>
    interface ITextModeration
Public Class TextModeration
Implements IServiceOperations(Of ContentModeratorClient), ITextModeration
继承
TextModeration
实现

构造函数

TextModeration(ContentModeratorClient)

初始化 TextModeration 类的新实例。

属性

Client

获取对 ContentModeratorClient 的引用

方法

DetectLanguageWithHttpMessagesAsync(String, Stream, Dictionary<String,List<String>>, CancellationToken)

此操作检测给定输入内容的语言。 返回 <href=“http://www-01.sil.org/iso639-3/codes.asp">包含所提交文本的主要语言的 ISO 639-3 代码</a> 。 支持 110 多种语言。

ScreenTextWithHttpMessagesAsync(String, Stream, String, Nullable<Boolean>, Nullable<Boolean>, String, Nullable<Boolean>, Dictionary<String, List<String>>, CancellationToken)

检测亵渎内容,并匹配自定义和共享的黑名单

扩展方法

DetectLanguage(ITextModeration, String, Stream)

此操作检测给定输入内容的语言。 返回 <href=“http://www-01.sil.org/iso639-3/codes.asp">包含所提交文本的主要语言的 ISO 639-3 代码</a> 。 支持 110 多种语言。

DetectLanguageAsync(ITextModeration, String, Stream, CancellationToken)

此操作检测给定输入内容的语言。 返回 <href=“http://www-01.sil.org/iso639-3/codes.asp">包含所提交文本的主要语言的 ISO 639-3 代码</a> 。 支持 110 多种语言。

ScreenText(ITextModeration, String, Stream, String, Nullable<Boolean>, Nullable<Boolean>, String, Nullable<Boolean>)

检测亵渎内容,并匹配自定义和共享的黑名单

ScreenTextAsync(ITextModeration, String, Stream, String, Nullable<Boolean>, Nullable<Boolean>, String, Nullable<Boolean>, CancellationToken)

检测亵渎内容,并匹配自定义和共享的黑名单

适用于