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.24.tar.gz (78.5 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.24-py3-none-any.whl (105.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: sciencebeam_judge-0.0.24.tar.gz
  • Upload date:
  • Size: 78.5 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.24.tar.gz
Algorithm Hash digest
SHA256 e5dad4e157389a38530257af852b495dea490d6d5de824ff81a9b50dffb2d664
MD5 f6959e0808ecaf6c9ed5ffd8a57aa06c
BLAKE2b-256 032bdad2ce52d3e8ed3fec73bbb5115f09cb22dca40e300c160c6ecef7128dd2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for sciencebeam_judge-0.0.24-py3-none-any.whl
Algorithm Hash digest
SHA256 e2a2b66f1339297bb1f16fa162d6e4062fe4170ff3e48ff17ce4dabb1945eb0f
MD5 9d10b4567295808f3c781e4fe260f52b
BLAKE2b-256 2326d53ba38caef2f5829927bd19cb84a4996084d136dfff1775f2c00f8a4b0b

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