共用方式為


TextAnalysisModelFactory.PiiActionResult Method

Definition

Initializes a new instance of PiiActionResult.

public static Azure.AI.Language.Text.PiiActionResult PiiActionResult (string id = default, System.Collections.Generic.IEnumerable<Azure.AI.Language.Text.DocumentWarning> warnings = default, Azure.AI.Language.Text.DocumentStatistics statistics = default, string redactedText = default, System.Collections.Generic.IEnumerable<Azure.AI.Language.Text.NamedEntity> entities = default, Azure.AI.Language.Text.DetectedLanguage detectedLanguage = default);
static member PiiActionResult : string * seq<Azure.AI.Language.Text.DocumentWarning> * Azure.AI.Language.Text.DocumentStatistics * string * seq<Azure.AI.Language.Text.NamedEntity> * Azure.AI.Language.Text.DetectedLanguage -> Azure.AI.Language.Text.PiiActionResult
Public Shared Function PiiActionResult (Optional id As String = Nothing, Optional warnings As IEnumerable(Of DocumentWarning) = Nothing, Optional statistics As DocumentStatistics = Nothing, Optional redactedText As String = Nothing, Optional entities As IEnumerable(Of NamedEntity) = Nothing, Optional detectedLanguage As DetectedLanguage = Nothing) As PiiActionResult

Parameters

id
String

Unique, non-empty document identifier.

warnings
IEnumerable<DocumentWarning>

Warnings encountered while processing document.

statistics
DocumentStatistics

if showStats=true was specified in the request this field will contain information about the document payload.

redactedText
String

Returns redacted text.

entities
IEnumerable<NamedEntity>

Recognized entities in the document.

detectedLanguage
DetectedLanguage

If 'language' is set to 'auto' for the document in the request this field will contain a 2 letter ISO 639-1 representation of the language detected for this document.

Returns

A new PiiActionResult instance for mocking.

Applies to