共用方式為


TextAnalysisModelFactory.HealthcareRelation Method

Definition

Initializes a new instance of HealthcareRelation.

public static Azure.AI.Language.Text.HealthcareRelation HealthcareRelation (Azure.AI.Language.Text.RelationType relationType = default, System.Collections.Generic.IEnumerable<Azure.AI.Language.Text.HealthcareRelationEntity> entities = default, double? confidenceScore = default);
static member HealthcareRelation : Azure.AI.Language.Text.RelationType * seq<Azure.AI.Language.Text.HealthcareRelationEntity> * Nullable<double> -> Azure.AI.Language.Text.HealthcareRelation
Public Shared Function HealthcareRelation (Optional relationType As RelationType = Nothing, Optional entities As IEnumerable(Of HealthcareRelationEntity) = Nothing, Optional confidenceScore As Nullable(Of Double) = Nothing) As HealthcareRelation

Parameters

relationType
RelationType

Type of relation. Examples include: DosageOfMedication or 'FrequencyOfMedication', etc.

entities
IEnumerable<HealthcareRelationEntity>

The entities in the relation.

confidenceScore
Nullable<Double>

Confidence score between 0 and 1 of the extracted relation.

Returns

A new HealthcareRelation instance for mocking.

Applies to