Skip to main content

SMART: Sentences as Basic Units for Summary Evaluation

This directory contains tools for using SMART to evaluate texts produced by systems, given the source document and the reference summaries.

Link to paper: https://arxiv.org/pdf/2208.01030.pdf

Run SMART Evaluation

SMART can be run programmatically. For example:

matcher = matching_functions.chrf_matcher
smart_scorer = scorer.SmartScorer(matching_fn=matcher)
score = smart_scorer.smart_score(reference, candidate)

Here, score is a dictionary containing SMART (1/2/L) scores.

Replicate SummEval results in the paper

You first need to download the necessary datasets:

  1. BARTScore data (you need to unpickle and save it again as a json file)
  2. SummEval data

You also need to download the precomputed scores for model-based matching functions (e.g., BLEURT, BERTScore, and T5-ANLI). In the terminal, follow the instructions and install gsutil. Then run:

gsutil cp -r gs://gresearch/SMART ./

Then, finally, run the following:

python summeval_experiments.py --bartscore_file=${BARTSCORE_PATH} --summeval_file=${SUMMEVAL_PATH} -- output_file=${OUTPUT_PATH}

Metadata

Release files for smart-eval 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for smart-eval 0.1.0
File Size Uploaded
smart_eval-0.1.0.tar.gz 2.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for smart-eval 0.1.0
File Interpreter ABI Platform
smart_eval-0.1.0-py3.10.egg Legacy Egg format - - Details

Total release size: 4.3 kB

Release files / smart_eval-0.1.0.tar.gz

Download URL smart_eval-0.1.0.tar.gz
Size 2.4 kB
Tags Source
SHA-256 checksum
How to use checksums
c6c93ec806d0369952a5b350e3848cd06b318502abfd6ff8c3ee4b90003b2d94
BLAKE2b-256 checksum
How to use checksums
ac1d3eb12d0d2a54a2160e5be58d3b83200dd4d088dffd80cca6f0accbb8f691
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.9

Release files / smart_eval-0.1.0-py3.10.egg

Download URL smart_eval-0.1.0-py3.10.egg
Size 1.9 kB
Tags Egg
SHA-256 checksum
How to use checksums
7f4326e6a4c0f23b186afc6e89c9fcb8169d43b16e5b88fa8af859eebcb5069f
BLAKE2b-256 checksum
How to use checksums
8e5e96515b81a5dca1951745204703c9daf58dcba1bc1e2a69c1eaaacb8924a4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.9

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page