Table of Contents

Class RedactionResult

Namespace
JD.AI.Core.Governance
Assembly
JD.AI.Core.dll

Result of running RedactWithClassifications(string) on a piece of content.

public sealed class RedactionResult
Inheritance
RedactionResult
Inherited Members

Constructors

RedactionResult(string, IReadOnlyList<ClassificationMatch>)

Result of running RedactWithClassifications(string) on a piece of content.

public RedactionResult(string content, IReadOnlyList<ClassificationMatch> matches)

Parameters

content string
matches IReadOnlyList<ClassificationMatch>

Properties

Content

Content after redaction (may equal input if action is AuditOnly).

public string Content { get; }

Property Value

string

HasMatches

True if any match occurred.

public bool HasMatches { get; }

Property Value

bool

Matches

All classification matches found during processing.

public IReadOnlyList<ClassificationMatch> Matches { get; }

Property Value

IReadOnlyList<ClassificationMatch>

ShouldDeny

True if any classification with DenyAndAudit fired.

public bool ShouldDeny { get; }

Property Value

bool