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.25.tar.gz (81.1 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.25-py3-none-any.whl (107.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: sciencebeam_judge-0.0.25.tar.gz
  • Upload date:
  • Size: 81.1 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.25.tar.gz
Algorithm Hash digest
SHA256 f98a9e056a58d275d1bcfc3978b0b495979fa2dc0faed0b6ad94f839e40574e5
MD5 c6886cd0de642fcad4c8a38bc4ebb1d1
BLAKE2b-256 85edcd58351a63fa923a8200bf98194562bdbc3360ccf0a20b6f16746e87f96f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for sciencebeam_judge-0.0.25-py3-none-any.whl
Algorithm Hash digest
SHA256 fd90bc3237b42ae7df719c1401cdfb16ec8bd3258af66908fb9d0bb3fdce7532
MD5 a9b9c7f531d678626197bbd6357f2126
BLAKE2b-256 1cf4ae230d1e41f7c5494dd40a6e4cba3a4b78cc37821f4da806e6fb0d12926f

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