共用方式為


TextAnalysisModelFactory.CustomHealthcareEntity Method

Definition

Initializes a new instance of CustomHealthcareEntity.

public static Azure.AI.Language.Text.CustomHealthcareEntity CustomHealthcareEntity (string text = default, Azure.AI.Language.Text.HealthcareEntityCategory category = default, string subcategory = default, int offset = 0, int length = 0, double confidenceScore = 0, Azure.AI.Language.Text.HealthcareAssertion assertion = default, string name = default, System.Collections.Generic.IEnumerable<Azure.AI.Language.Text.HealthcareEntityLink> links = default, System.Collections.Generic.IEnumerable<Azure.AI.Language.Text.EntityComponentInformation> entityComponentInformation = default);
static member CustomHealthcareEntity : string * Azure.AI.Language.Text.HealthcareEntityCategory * string * int * int * double * Azure.AI.Language.Text.HealthcareAssertion * string * seq<Azure.AI.Language.Text.HealthcareEntityLink> * seq<Azure.AI.Language.Text.EntityComponentInformation> -> Azure.AI.Language.Text.CustomHealthcareEntity
Public Shared Function CustomHealthcareEntity (Optional text As String = Nothing, Optional category As HealthcareEntityCategory = Nothing, Optional subcategory As String = Nothing, Optional offset As Integer = 0, Optional length As Integer = 0, Optional confidenceScore As Double = 0, Optional assertion As HealthcareAssertion = Nothing, Optional name As String = Nothing, Optional links As IEnumerable(Of HealthcareEntityLink) = Nothing, Optional entityComponentInformation As IEnumerable(Of EntityComponentInformation) = Nothing) As CustomHealthcareEntity

Parameters

text
String

Entity text as appears in the request.

category
HealthcareEntityCategory

Healthcare Entity Category.

subcategory
String

(Optional) Entity sub type.

offset
Int32

Start position for the entity text. Use of different 'stringIndexType' values can affect the offset returned.

length
Int32

Length for the entity text. Use of different 'stringIndexType' values can affect the length returned.

confidenceScore
Double

Confidence score between 0 and 1 of the extracted entity.

assertion
HealthcareAssertion

Assertion of the entity.

name
String

Preferred name for the entity. Example: 'histologically' would have a 'name' of 'histologic'.

links
IEnumerable<HealthcareEntityLink>

Entity references in known data sources.

entityComponentInformation
IEnumerable<EntityComponentInformation>

(Optional) Entity component information listing fired components of the extracted entity. This object only applies for custom healthcare. Please note EntityComponentInformation is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. The available derived classes include LearnedComponent, ListComponent and PrebuiltComponent.

Returns

A new CustomHealthcareEntity instance for mocking.

Applies to