ScienceBeam Judge
Project description
ScienceBeam Judge
ScienceBeam Judge implements a JATS/TEI conversion evaluation. It can be configured to handle other similar document types.
Installation
pip install sciencebeam-judge
CLI
Evaluation to CSV
python -m sciencebeam_judge.evaluation_pipeline \
--target-file-list=<path to target file list> \
[--target-file-column=<column name>] \
--prediction-file-list=<path to prediction file list> \
[--prediction-file-column=<column name>] \
--output-path=<output directory> \
[--limit=<max file pair count>] \
[--cloud] \
[--num_workers=<number of workers>]
The default configuration files (xml-mapping.conf,
evaluation.conf,
evaluation.yml)
are bundled with the package and used automatically.
They can be overridden with --xml-mapping, --evaluation-config, or --evaluation-yaml-config.
The output path will contain the following files:
results-*.csv: The detailed evaluation of every fieldsummary-*.csv: The overall evaluationgrobid-formatted-summary-*.txt: The summary formatted à la GROBID
Extract Fields
python -m sciencebeam_judge.extract_fields \
--xml-file=<path to xml file> \
--fields=<comma separated list of fields>
Configuration
XML Mapping
The xml-mapping.conf configures how fields should be extracted from the XML. The default configuration contains mapping for JATS and TEI.
Evaluation Configuration
The evaluation.conf allows further evaluation
details to be configured. For example the scoring type defines how a field should be evaluated
(e.g. string or list).
An additional evaluation.yml has the same function but allows for more structured configuration.
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 sciencebeam_judge-0.0.22.tar.gz.
File metadata
- Download URL: sciencebeam_judge-0.0.22.tar.gz
- Upload date:
- Size: 78.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9b6f6289774df9ddb463e29e5661d473fdc5bbad6b55ca026945f191af4e4947
|
|
| MD5 |
13b3fef83cbbd87b61afd6e76529d724
|
|
| BLAKE2b-256 |
946c8089ef3dc5a8abdd0a5fb40a7fba4ed6b09857c142837504267d5847fb8f
|
File details
Details for the file sciencebeam_judge-0.0.22-py3-none-any.whl.
File metadata
- Download URL: sciencebeam_judge-0.0.22-py3-none-any.whl
- Upload date:
- Size: 104.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
52900acc03690ec952a08e36e09b9cc4b5e3937398c4a274f968b7fd98b25443
|
|
| MD5 |
dfca60e69f65ff8f7e024bab2d9c500d
|
|
| BLAKE2b-256 |
f6b3190f4eb89ab907c21c6501cf8819fe00536bb22594994cad5d1d2e698da2
|