Skip to main content

Donut packages for evaluating the output of data entry and redact.

Project description

Donut AI Evaluate

Data Entry Evaluation

The user can either compare a single field or multiple fields with one another.

The following code snipped shows an example of how single field comparison works:

from donut_ai_evaluate.data_entry import compare_single_field

data = {
    "Name" : 
    {
        "predicted" : "John",
        "ground-truth" : "Jon"
    }
}

comparison_data = compare_single_field(data)

print(comparison_data)

The following code snipped shows an example of how multi field comparison works:

from donut_ai_evaluate.data_entry import compare_batch_fields

data = [
    {
        "Name" : 
        {
            "predicted" : "John",
            "ground-truth" : "Jon"
        }
    },
    {
        "State" : 
        {
            "predicted" : "Florida",
            "ground-truth" : "Fl"
        }
    },
    {
        "Phone Number" : 
        {
            "predicted" : "922000511",
            "ground-truth" : "92-2000-511"
        }
    }
]

comparison_data = compare_batch_fields(data)

print(comparison_data)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

donut_ai_evaluate-0.1.0.tar.gz (16.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

donut_ai_evaluate-0.1.0-py3-none-any.whl (19.6 kB view details)

Uploaded Python 3

File details

Details for the file donut_ai_evaluate-0.1.0.tar.gz.

File metadata

  • Download URL: donut_ai_evaluate-0.1.0.tar.gz
  • Upload date:
  • Size: 16.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.10

File hashes

Hashes for donut_ai_evaluate-0.1.0.tar.gz
Algorithm Hash digest
SHA256 42336fea6f115e7a7695ee5c9ebc995430a7fe33f8a6524526ca8330599b5f29
MD5 8d41ad75d40bc6c0882b316cf15a1191
BLAKE2b-256 44d3d935a8051507a150c0a89bc564e33e3bddd8d48f8ac0aa845a74144f4d9c

See more details on using hashes here.

File details

Details for the file donut_ai_evaluate-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for donut_ai_evaluate-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f15112aa28ff97ce4de9d9c58562d18a7be9fb61ca66c1ee523fc85ed9037d87
MD5 f8699475d8bb84754dd8946e8b88af94
BLAKE2b-256 176b93ca637da844e6042d79e2829fe56d12d90dc10dae6ffb8a4d954774280f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page