Share via


DocumentIntelligenceModelFactory.DocumentFormula Method

Definition

Initializes a new instance of DocumentFormula.

public static Azure.AI.DocumentIntelligence.DocumentFormula DocumentFormula (Azure.AI.DocumentIntelligence.DocumentFormulaKind kind = default, string value = default, System.Collections.Generic.IEnumerable<float> polygon = default, Azure.AI.DocumentIntelligence.DocumentSpan span = default, float confidence = 0);
static member DocumentFormula : Azure.AI.DocumentIntelligence.DocumentFormulaKind * string * seq<single> * Azure.AI.DocumentIntelligence.DocumentSpan * single -> Azure.AI.DocumentIntelligence.DocumentFormula
Public Shared Function DocumentFormula (Optional kind As DocumentFormulaKind = Nothing, Optional value As String = Nothing, Optional polygon As IEnumerable(Of Single) = Nothing, Optional span As DocumentSpan = Nothing, Optional confidence As Single = 0) As DocumentFormula

Parameters

kind
DocumentFormulaKind

Formula kind.

value
String

LaTex expression describing the formula.

polygon
IEnumerable<Single>

Bounding polygon of the formula, with coordinates specified relative to the top-left of the page. The numbers represent the x, y values of the polygon vertices, clockwise from the left (-180 degrees inclusive) relative to the element orientation.

span
DocumentSpan

Location of the formula in the reading order concatenated content.

confidence
Single

Confidence of correctly extracting the formula.

Returns

A new DocumentFormula instance for mocking.

Applies to