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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
42336fea6f115e7a7695ee5c9ebc995430a7fe33f8a6524526ca8330599b5f29
|
|
| MD5 |
8d41ad75d40bc6c0882b316cf15a1191
|
|
| BLAKE2b-256 |
44d3d935a8051507a150c0a89bc564e33e3bddd8d48f8ac0aa845a74144f4d9c
|
File details
Details for the file donut_ai_evaluate-0.1.0-py3-none-any.whl.
File metadata
- Download URL: donut_ai_evaluate-0.1.0-py3-none-any.whl
- Upload date:
- Size: 19.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f15112aa28ff97ce4de9d9c58562d18a7be9fb61ca66c1ee523fc85ed9037d87
|
|
| MD5 |
f8699475d8bb84754dd8946e8b88af94
|
|
| BLAKE2b-256 |
176b93ca637da844e6042d79e2829fe56d12d90dc10dae6ffb8a4d954774280f
|