Skip to main content

Official implementation of SMART evaluation metric

Project description

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}

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

smart_eval-0.1.0.tar.gz (2.4 kB view details)

Uploaded Source

Built Distribution

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

smart_eval-0.1.0-py3.10.egg (1.9 kB view details)

Uploaded Egg

File details

Details for the file smart_eval-0.1.0.tar.gz.

File metadata

  • Download URL: smart_eval-0.1.0.tar.gz
  • Upload date:
  • Size: 2.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.9

File hashes

Hashes for smart_eval-0.1.0.tar.gz
Algorithm Hash digest
SHA256 c6c93ec806d0369952a5b350e3848cd06b318502abfd6ff8c3ee4b90003b2d94
MD5 34a0f7c557fed6d5605c8be5cd48973c
BLAKE2b-256 ac1d3eb12d0d2a54a2160e5be58d3b83200dd4d088dffd80cca6f0accbb8f691

See more details on using hashes here.

File details

Details for the file smart_eval-0.1.0-py3.10.egg.

File metadata

  • Download URL: smart_eval-0.1.0-py3.10.egg
  • Upload date:
  • Size: 1.9 kB
  • Tags: Egg
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.9

File hashes

Hashes for smart_eval-0.1.0-py3.10.egg
Algorithm Hash digest
SHA256 7f4326e6a4c0f23b186afc6e89c9fcb8169d43b16e5b88fa8af859eebcb5069f
MD5 2a717aa364b77ae2dd39be41ff0a85d2
BLAKE2b-256 8e5e96515b81a5dca1951745204703c9daf58dcba1bc1e2a69c1eaaacb8924a4

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