How to assign taxonomy to document?

Hi all,

I have the following workflow:

If there are no classification results for a document, how to assign a classification value to it so the document still gets extracted?

Please help

Refer to the below link

https://docs.uipath.com/activities/docs/taxonomy-manager

sorry I do not see the answer Pravin

where do you see it?

The document understanding is kind off big concept… Below link will help you to understand it…

Hi @yourubl

You can try the following method to use your own ClassificationResult.


Create a new variable varResultBounds of type UiPath.DocumentProcessing.Contracts.Results.ResultsDocumentBounds.

Assign the value of varResultBounds as follows:

varResultBounds = new ResultsDocumentBounds (varDocumentObjectModel.Pages, varDocumentObjectModel.Length)

where,

  • varDocumentObjectModel is the output of Digitize Document Activity.

Create a new varClassificationResult variable of type : UiPath.DocumentProcessing.Contracts.Results.ClassificationResult.

Assign the value of varClassificationResult as follows:

varClassificationResult = new ClassificationResult (DocumentTypeID, DocumentName, varResultBounds)

where,

  • DocumentTypeID = "GroupName.CategoryName.DocumentTypeName" (Mention the GroupName, CategoryName and DcoumentTypeName of the taxonomy that you want the document to be classified with. Eg: “Forms.Tax.18A”)

  • DocumentName = "InputFileNameWithExtension" (Eg: “Form1.pdf”)

  • varResultBounds is the previously created variable.


You can then map this varClassificationResult variable in the ClassificationResult property of Data Extraction Scope activity.

Hi @yourubl

If you found there is no classifications results for your document. You can set the Document ID of your preference by getting the Taxonomy ID from the Taxonomy Manager.

That Id can be set on the DocumentTypeId property of the Data Extraction Scope.

NOTE: Take in count you can only set the Classification Result or the Document Type Id.

Bests,
Andres

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.