Hi All,
I was able to calculate field level confidence score by using below code . but its giving wrong confidence. even if we don't have any value on the field its returning 100%. is there any accurate way to calculate Field confidence?
public static int CalculateConfidence(IField field)
{
if (field != null && field.Symbols != null)
{
int symbolCount = field.Symbols.Count;
int confidentSymbols = 0;
if (symbolCount > 0)
{
for (int i = 0; i < symbolCount; i++)
{
if (!field.Symbols[i].IsSuspicious)
{
confidentSymbols += 1;
}
}
return Convert.ToInt32(confidentSymbols / (double)symbolCount * 100);
}
else
{
return 0;
}
}
return 0;
}
Comments
3 comments
anyone have any idea about how to calculate confidence of field in a document? please help us.
Dear Chinna,
I see that, unfortunately, you still haven't received a response to your inquiry on our forum.
Therefore, I am initiating a ticket on your behalf so that our support team can assist you.
Thank you for your response Viacheslav Prodan. it will be helpful.
Please sign in to leave a comment.