Hi Everyone,
I just want to know how to check the confidence of the document extracted if it is less than 80% how to move it to the action center for manual approval.
Any help would be highly appreciated.
Hi Everyone,
I just want to know how to check the confidence of the document extracted if it is less than 80% how to move it to the action center for manual approval.
Any help would be highly appreciated.
from the response .confidence will give th confidence…then use it in if condition and on side use validation station
cheers
Hello @Gayathri_Mk
Extract document
documentText = ReadPDFText(“path/to/document.pdf”)
confidence = GetDocumentConfidence(documentText)
Check confidence threshold
if (confidence < 80)
Move to Action Center
AddQueueItem("ActionCenterQueue",
DocumentDetails: documentText,
NeedManualApproval: true)
Thanks & Cheers!!!
are you AI seems like you are giving chatgpt results by modifying.
I know the logic seeking help how to do it what activities we have to use to move the file to action center and all.
I need the confidence of whole extracted document. Not fields
Hi @Gayathri_Mk ,
double_Confidance = DU_ExtractionResults.ResultsDocument.Fields.Where(Function(field) field.FieldName.Equals(“Field Name”)).Select(Function(actual_field) actual_field.Values.Select(Function(val) val.Confidence))(0)(0)*100
in the same way we should take all the fields confidence score and then check confidence score for all the fields in condition
if ( double_Confidance > 85 & …)
{
Matched
}
Can you explain me bit clearly pls and after checking confidence I need to move the file to action center how to do that also which activities we need to use for that.
How to move the file to action center??
Hi @Gayathri_Mk ,
if I’m understand correctly, you want to create a task in Action center, right?
if yes
Create a task in Action center.
Get URL of Action center.
Wait for action on Task.
Hope this will helps you.
this will give document confidence
extracteddata.DocumentMetadata.SplitConfidence as a single value type
then use create validate task and wait activity
cheers
@Siva_krishna_Thumma
getting this error can you help me with this
will try thanks @Anil_G
I have one question this will give me field names confidence.
Is there any possibility to get the confidence of all the fields in one assign activity.
Split confidence on metadata is the document level confidence…and not the field level…if you see the formula there is no field level that I am checking
Cheers
Hi,
I believe this is issue with conversion.
double_Confidance = DU_ExtractionResults.ResultsDocument.Fields.Where(Function(field) field.FieldName.Equals(“Field Name”)).Select(Function(actual_field) actual_field.Values.Select(Function(val) val.Confidence))(0)(0)*100
double_Confidance variable type should be double
@Siva_krishna_Thumma Thank you it worked
this expression is to check one field confidence can you help me how can I add multiple field names in one single activity only is that possible?
Hi @Gayathri_Mk,
In the same way, you can add the all the fields into the variables and check the confidence in the if condition.
This way you come to know which fields has the low confidence so that you can retrain the field if you want.
okay thank you @Siva_krishna_Thumma
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.