ResultsValue Class
Definition
- Namespace:
UiPath.DocumentProcessing.Contracts.Results - Assembly:
UiPath.DocumentProcessing.Contracts
Description
A public class that represents a value reported for a field in an extraction result.
note
Starting with UiPath.DocumentProcessing.Contracts package v1.17, you can identify some constructors, methods and properties being marked as obsolete. These structures will be removed in the future. Support for sub-fields at value level is obsolete and table fields are now represented using a new data structure.
Members
Constructors
ResultsValue(stringvalue,stringunformattedValue,UiPath.DocumentProcessing.Contracts.Results.ResultsContentReferencereference,floatconfidence, floatocrConfidence) - Creates a simple automatically extractedUiPath.DocumentProcessing.Contracts.Results.ResultsValue.ResultsValue(stringvalue,stringunformattedValue,UiPath.DocumentProcessing.Contracts.Results.ResultsContentReferencereference,UiPath.DocumentProcessing.Contracts.Results.ResultsDerivedField[]derivedFields,floatconfidence,floatocrConfidence) - Creates a simple automatically extractedUiPath.DocumentProcessing.Contracts.Results.ResultsValuewith derived parts.ResultsValue(stringvalue,stringunformattedValue,UiPath.DocumentProcessing.Contracts.Results.ResultsDataPoint[]components,UiPath.DocumentProcessing.Contracts.Results.ResultsContentReferencereference,UiPath.DocumentProcessing.Contracts.Results.ResultsDerivedField[]derivedFields,floatconfidence,floatocrConfidence,booloperatorConfirmed) - Initializes a new instance of theResultsValueclass withvalue,unformattedValue,components(in the case of tables),reference,derived fields,confidence, as well a anOperatorConfirmedflag.warningThis method is obsolete.
ResultsValue(stringvalue,UiPath.DocumentProcessing.Contracts.Results.ResultsContentReferencereference,floatconfidence,floatocrConfidence) - Initializes a new instance of theResultsValueclass with a set value and its corresponding reference and confidence levels.ResultsValue(stringvalue,UiPath.DocumentProcessing.Contracts.Results.ResultsContentReferencereference,UiPath.DocumentProcessing.Contracts.Results.ResultsDerivedFieldderivedFields,floatconfidence,floatocrConfidence) - Initializes a new instance of theResultsValueclass with a set value, its corresponding reference and confidence levels, while also setting the formatted value in theDerivedParts.ResultsValue(stringvalue,UiPath.DocumentProcessing.Contracts.Results.ResultsDataPointcomponents,UiPath.DocumentProcessing.Contracts.Results.ResultsContentReferencereference,UiPath.DocumentProcessing.Contracts.Results.ResultsDerivedFieldderivedFields,floatconfidence,floatocrConfidence,booloperatorConfirmed) - Initializes a new instance of theResultsValueclass withvalue,components(in the case of tables),reference,derived fields,confidence, as well a anOperatorConfirmedflag.warningThis method is obsolete.
ResultsValue(UiPath.DocumentProcessing.Contracts.Results.ResultsDataPointcomponents,floatconfidence,floatocrConfidence) - Used for tables, initializes a new instance of theResultsValueclass with thecomponentsargument and corresponding confidence levels.warningThis method is obsolete.
ResultsValue(string, UiPath.DocumentProcessing.Contracts.Results.ResultsDataPoint[], UiPath.DocumentProcessing.Contracts.Results.ResultsContentReference, UiPath.DocumentProcessing.Contracts.Results.ResultsDerivedField[], float, float, bool)- Creates an instance of the class using the provided arguments.
Methods
CreateTableValue(UiPath.DocumentProcessing.Contracts.Taxonomy.FieldtableField,System.Collections.Generic.IEnumerable<UiPath.DocumentProcessing.Contracts.Results.ResultsDataPoint>headerCells,System.Collections.Generic.IEnumerable<System.Collections.Generic.IEnumerable<UiPath.DocumentProcessing.Contracts.Results.ResultsDataPoint>>bodyCells,<float>,<float>) - Generates aResultsValuecorresponding to a table field with the predefined table and body cells from the provided argument. Builds the necessaryheaderValueout of theheaderCellsand the necessarybodyValuesout of thebodyCells.warningThis method is obsolete.
CreateTableValue(UiPath.DocumentProcessing.Contracts.Taxonomy.FieldtableField,UiPath.DocumentProcessing.Contracts.Results.ResultsValueheaderValue,System.Collections.Generic.IEnumerable<UiPath.DocumentProcessing.Contracts.Results.ResultsValue>bodyValues,<float>,<float>ocrConfidence) - Generates aResultsValuecorresponding to a table field with the predefined table value and body row values.warningThis method is obsolete.
CreateWithCustomAreaReference(<string>, <int>, UiPath.DocumentProcessing.Contracts.Box, float,float, UiPath.DocumentProcessing.Contracts.Dom.Document) - Creates a value with a custom area reference.CreateWithNoReference(<string>, <float>, <float>) - Creates a value without reference.CreateWithWordsReference(, , UiPath.DocumentProcessing.Contracts.Box area, <float> confidence, <float> ocrConfidence, <UiPath.DocumentProcessing.Contracts.Dom.Document> document) - Creates a value which references the words found in the specified area. The method will look up any words overlapping the provided area and will add them to the value reference.
Properties
ComponentsUiPath.DocumentProcessing.Contracts.Results.ResultsDataPoint - The subfields and their respective values.warningThis method is obsolete.
Confidencefloat- A value between0and1that represents the confidence for the reported field value.DerivedFieldsUiPath.DocumentProcessing.Contracts.Results.ResultsDerivedField- A list of derived parts, varying according to the field type defined in the taxonomy.OcrConfidencefloat- A value between 0 and 1 that represents the OCR confidence for the reported field value.OperatorConfirmedbool- Can be used to verify that the value has been reviewed by a human.ReferenceUiPath.DocumentProcessing.Contracts.Results.ResultsContentReference- The reference for the reported value.
TextTypeUiPath.DocumentProcessing.Contracts.Dom.TextType- Provides the text origin of the extracted value.UnformattedValuestring- The reported unformatted string value.Valuestring- The reported textual value.public string ValidatorNotes {get; set}=string.Empty.public string ValidatorNotesInfo {get; set}=string.Empty.