[Document Understanding] How to spilt field into two labels?

Hi and sorry if this is wrong section in which to post my question.
I’m quite new of Document Understanding and I’ve two similar problems to solve.

First:
In my documents to be processed I’ve a field that should be labelled in to two label.

Example:
In document there is field “Invoice/Order: 1234”. My need is that 1234 will be inserted in Label “Invoice” and also in label “Order”. How can i do this?

Second:
In my documents to be processed I’ve a field that contains 2 informations that should be labelled in to two label.

Example:
In document there is field “Total Amount: 1.000EUR”. My need is that 1.00 will be inserted in Label “Total” and “EUR” in label “UOM”. How can i do this?

I want to thank you in advise how will help me!

Hi @alessandro.battaglia ,

Could you let us know what have you implemented till now ? Since the document seem to be an Invoice, Are you using the Invoices endpoint or Have you trained the Dataset in Data Labelling, Trained the Pipeline and deployed the model ?

Let us also know what type of documents are involved.

In addition let us know what is your progress, so that we can help from that point.

Actaully I’ve impelemented a data labelling to process invoices. It works for lot of documents, but I’ve these exception that I would to manage due to are lot of documents that contain this kind of pattern.
We trained the Dataset in Data Labelling, Trained the Pipeline and deployed the model.

@alessandro.battaglia ,

In that case, You would just need to use the same Field Mapping what you are using for Invoice field for the Order field as well while configuring the Data Extraction Scope activity

For this if you were using a invoices pre-labelling, the Currency should have been automatically detected as well as the Total Amount.
If you have not used the Invoices pre-labelling, then you could Check by Keeping the Total field type as Number and UOM as text.

I’ve not used pre-labelling and I’m not able to select two label for the same field

@alessandro.battaglia ,

Apologies. It doesn’t seem to work for me as well, although it would have been useful in these kind of cases.

Could you take a look at the post below, here they have updated the values after the Extraction is done using an Assign Activity. Could you check if you will be able to update in the same manner ?

For your case, I believe the Expression should be as below :

extractionResults.ResultsDocument.Fields.First(Function(i As ResultsDataPoint) i.FieldName = "Order").Values(0).Value = extractionResults.ResultsDocument.Fields.First(Function(i As ResultsDataPoint) i.FieldName = "Invoice").Values(0).Value

Let us know if this gives out error and provide the error message if possible,