ClassificationResult Class
ClassificationResult is a public class that represents a classification result for a part of a document.
Definition
- Namespace:
UiPath.DocumentProcessing.Contracts.Results - Assembly:
UiPath.DocumentProcessing.Contracts
Description
A public class that represents a classification result for a part of a document.
Members
Constructors
ClassificationResult(stringdocumentTypeId,stringdocumentId,UiPath.DocumentProcessing.Contracts.Results.ResultsDocumentBoundsdocumentBounds) - Initializes a new instance of theClassificationResultclass, setting theDocumentTypeId,DocumentId, andDocumentBoundsproperties as provided.ClassificationResult(stringdocumentTypeId,stringdocumentId,floatconfidence,floatocrConfidence,UiPath.DocumentProcessing.Contracts.Results.ResultsContentReferencereference,UiPath.DocumentProcessing.Contracts.Results.ResultsDocumentBoundsdocumentBounds) - Initializes a new instance of theClassificationResultclass, setting theDocumentTypeId,DocumentId,Confidence,OcrConfidence,Reference, andDocumentBoundsproperties as provided.ClassificationResult(stringdocumentTypeId,stringdocumentId,floatconfidence,floatocrConfidence,UiPath.DocumentProcessing.Contracts.Results.ResultsContentReferencereference,UiPath.DocumentProcessing.Contracts.Results.ResultsDocumentBoundsdocumentBounds, stringclassifierName) - Initializes a new instance of theClassificationResultclass, setting theDocumentTypeId,DocumentId,Confidence,OcrConfidence,Reference,DocumentBounds, andClassifierNameproperties as provided.
Methods
AsExtractionResult(UiPath.DocumentProcessing.Contracts.Taxonomy.DocumentTaxonomytaxonomy) - Returns aUiPath.DocumentProcessing.Contracts.Results.ExtractionResultobject generated using the available classification information, reporting all fields asMissing.Serialize()- Serializes theUiPath.DocumentProcessing.Contracts.Results.ClassificationResultobject to a JSON string.Deserialize(string)- De-serializes a JSON string to aUiPath.DocumentProcessing.Contracts.Results.ClassificationResultobject.
Properties
DocumentIdstring- The name of the document that is being classified.DocumentTypeIdstring- The ID of the document type reported by the classifier.Confidencefloat- A value between 0 and 1 representing the classifier's confidence related to the reportedDocumentTypeId.OcrConfidencefloat- A value between 0 and 1 representing the OCR confidence related to the evidence provided for the given classification result.ClassifierNamestring- The name of the classifier which provides the result.DocumentBounds- The document boundaries for which the classification is being reported.- (Preview) From the
DocumentBoundsobject you can access the page range of a classified document.
- (Preview) From the
Reference- The evidencing reference information for the provided classification.