コミュニティ

How to Calculate Confidence of Field

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;
}

この記事は役に立ちましたか?

0人中0人がこの記事が役に立ったと言っています

コメント

3件のコメント

  • Avatar
    Chinna Rao

    anyone have any idea about how to calculate confidence of field in a document? please help us.

    0
  • Avatar
    Viacheslav Prodan

    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. 

    0
  • Avatar
    Chinna Rao

    Thank you for your response Viacheslav Prodan. it will be helpful.

    0

サインインしてコメントを残してください。