-
Notifications
You must be signed in to change notification settings - Fork 4.5k
/
HealthcareEntityRelation.cs
39 lines (34 loc) · 1.28 KB
/
HealthcareEntityRelation.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
using System.Collections.Generic;
namespace Azure.AI.TextAnalytics
{
/// <summary>
/// Determines the relation between the entities.
/// </summary>
public partial class HealthcareEntityRelation
{
internal HealthcareEntityRelation(
HealthcareEntityRelationType relationType,
IReadOnlyCollection<HealthcareEntityRelationRole> roles,
double? confidenceScore)
{
RelationType = relationType;
Roles = roles;
ConfidenceScore = confidenceScore;
}
/// <summary>
/// The type of relation between the entities.
/// </summary>
public HealthcareEntityRelationType RelationType { get; }
/// <summary>
/// The role of a given entity in the relation.
/// </summary>
public IReadOnlyCollection<HealthcareEntityRelationRole> Roles { get; }
/// <summary>
/// The confidence score of the identified relation as a decimal number between 0.0 and 1.0, where a value of 1.0 indicates a 100% certainty that the
/// identified relation is accurate.
/// </summary>
public double? ConfidenceScore { get; }
}
}