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.26.tar.gz (82.0 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.26-py3-none-any.whl (108.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: sciencebeam_judge-0.0.26.tar.gz
  • Upload date:
  • Size: 82.0 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.26.tar.gz
Algorithm Hash digest
SHA256 1e175b532c7d6cdf280f165c29dc93956dca36c6bdccd310bcabc4d37d78e4d9
MD5 93b0e1e9814a7a349cf35d6880e4d8c9
BLAKE2b-256 52a74043720c79d73d9b92ab51c32925e18c6d6f11475def7a3a236b132cab97

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for sciencebeam_judge-0.0.26-py3-none-any.whl
Algorithm Hash digest
SHA256 58157ac88a1e7c09791c7ddd0fec204f6dc9c964feed4920330e9890514072dd
MD5 61ea47d493995a19ffdd9398ff5dd015
BLAKE2b-256 0412b0fab8cbc33b240e46cfdb126716e0ceadb4fe5095830e144071bfb69d36

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