Skip to main content

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 field
  • summary-*.csv: The overall evaluation
  • grobid-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


Download files

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

Source Distribution

sciencebeam_judge-0.0.23.tar.gz (78.3 kB view details)

Uploaded Source

Built Distribution

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

sciencebeam_judge-0.0.23-py3-none-any.whl (104.8 kB view details)

Uploaded Python 3

File details

Details for the file sciencebeam_judge-0.0.23.tar.gz.

File metadata

  • Download URL: sciencebeam_judge-0.0.23.tar.gz
  • Upload date:
  • Size: 78.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for sciencebeam_judge-0.0.23.tar.gz
Algorithm Hash digest
SHA256 63f497b80942ccbfb339dfc1a46190328634d6ce61b1142f0a15a05f54a1dd59
MD5 c5d2f48489d96bf2d73bb28a94e4fcde
BLAKE2b-256 0a1ba31e2e13cae955570e6fa5fd81be1fb0113b0aacb91eb7a9bd34dc7d08c4

See more details on using hashes here.

File details

Details for the file sciencebeam_judge-0.0.23-py3-none-any.whl.

File metadata

File hashes

Hashes for sciencebeam_judge-0.0.23-py3-none-any.whl
Algorithm Hash digest
SHA256 5e08024e20f23df68e0bff24f7347e492ba2f877875ab56b9070315df36bf411
MD5 a2c0818a52fc1169dcc00bcaa7081e70
BLAKE2b-256 aee66c610cf24ca6d86e660a115ecaf15f374bcdcd819af07d7854697c7e3ec8

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