Share via


ContentUnderstandingModelFactory.ContentField Method

Definition

Field extracted from the content. Please note this is the abstract base class. The derived classes available for instantiation are: ContentStringField, ContentDateTimeOffsetField, ContentTimeField, ContentNumberField, ContentIntegerField, ContentBooleanField, ContentArrayField, ContentObjectField, and ContentJsonField.

public static Azure.AI.ContentUnderstanding.ContentField ContentField(string type = default, System.Collections.Generic.IEnumerable<Azure.AI.ContentUnderstanding.ContentSpan> spans = default, float? confidence = default, string sourceValue = default);
public static Azure.AI.ContentUnderstanding.ContentField ContentField(string type = default, System.Collections.Generic.IEnumerable<Azure.AI.ContentUnderstanding.ContentSpan> spans = default, float? confidence = default, string source = default);
static member ContentField : string * seq<Azure.AI.ContentUnderstanding.ContentSpan> * Nullable<single> * string -> Azure.AI.ContentUnderstanding.ContentField
static member ContentField : string * seq<Azure.AI.ContentUnderstanding.ContentSpan> * Nullable<single> * string -> Azure.AI.ContentUnderstanding.ContentField
Public Shared Function ContentField (Optional type As String = Nothing, Optional spans As IEnumerable(Of ContentSpan) = Nothing, Optional confidence As Nullable(Of Single) = Nothing, Optional sourceValue As String = Nothing) As ContentField
Public Shared Function ContentField (Optional type As String = Nothing, Optional spans As IEnumerable(Of ContentSpan) = Nothing, Optional confidence As Nullable(Of Single) = Nothing, Optional source As String = Nothing) As ContentField

Parameters

type
String

Semantic data type of the field value.

spans
IEnumerable<ContentSpan>

Span(s) associated with the field value in the markdown content.

confidence
Nullable<Single>

Confidence of predicting the field value.

sourceValuesource
String

Encoded source that identifies the position of the field value in the content.

Returns

A new ContentField instance for mocking.

Applies to