GEMA-Score: structured evaluation of candidate vs reference radiology reports.
Project description
gemascore
Evaluate a candidate radiology report against a reference report using a Hugging Face hosted (or locally cached) GEMA-Score distilled model.
Install
pip install gemascore
Python usage
from gemascore import evaluate_report
candidate = "no pneumothorax. mediastinal contours normal. patchy right nodular mid lung zone opacity."
reference = "no pneumothorax. mediastinum upper limits of normal in size. patchy bilateral ground-glass opacities, consolidation, or edema."
text = evaluate_report(
candidate_report=candidate,
reference_report=reference,
cache_dir="/data/hf_cache", # or model_path="/data/models/GEMA-Score-distilled-CT-Qwen"
)
print(text)
CLI usage
gemascore \
--candidate "no pneumothorax..." \
--reference "no pneumothorax..." \
--cache-dir /data/hf_cache
Notes
First run may download several GB of model weights. If you already have a local checkpoint folder containing model.safetensors, pass --model-path instead.
Project details
Release history Release notifications | RSS feed
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 gemascore-0.1.0.tar.gz.
File metadata
- Download URL: gemascore-0.1.0.tar.gz
- Upload date:
- Size: 7.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.21
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
77aaa37a7000aa0d84c6ca7beb3f2fdc56fe713f9a27767d80b1e85110a36a0b
|
|
| MD5 |
dc860222e87976ca18185261b697dead
|
|
| BLAKE2b-256 |
df61ade20e4b47f1dcd0a67adb6f9454da4ac2db3d529091e60d754f031d6dbf
|
File details
Details for the file gemascore-0.1.0-py3-none-any.whl.
File metadata
- Download URL: gemascore-0.1.0-py3-none-any.whl
- Upload date:
- Size: 9.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.21
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
aee290c05bc741654e0f37f762363a7ada479513c376ffdc6b5cc21441894253
|
|
| MD5 |
2407130524797e2204f3c2b37ec943b3
|
|
| BLAKE2b-256 |
02f42d9ac84f7a008cccb687452662a6d4606e0c3b4880463a6c46c5a40e86f6
|