Skip to main content

BTEval is a Python library for measuring the robustness of natural language understanding models to speech recognition errors.

Project description

BTEval

PyPI - Version PyPI - Python Version


BTEval is a Python library for measuring the robustness of natural language understanding models to speech recognition errors. It implements the family of R* robustness measures defined in Back Transcription as a Method for Evaluating Robustness of Natural Language Understanding Models to Speech Recognition Errors (Kubis et al., EMNLP 2023).

Installation

pip install bteval

Usage

from bteval import r1_score

y_true = ["Inform", "Request", "Inform"]
y_before = ["Inform", "Request", "Request"]
y_after = ["Inform", "Confirm", "Confirm"]

r1_score(y_true, y_before, y_after)

Citing

If you use bteval for your research, please cite the following paper:

Marek Kubis, Paweł Skórzewski, Marcin Sowański, and Tomasz Zietkiewicz. 2023. Back Transcription as a Method for Evaluating Robustness of Natural Language Understanding Models to Speech Recognition Errors. In Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing, pages 11824–11835, Singapore. Association for Computational Linguistics.

@InProceedings{kubis-etal-2023-back,
  title        = "{Back Transcription as a Method for Evaluating Robustness of Natural Language Understanding Models to Speech Recognition Errors}",
  author       = "Kubis, Marek and Skórzewski, Paweł and Sowański, Marcin and Ziętkiewicz, Tomasz",
  booktitle    = "Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing",
  month        = dec,
  year         = "2023",
  address      = "Singapore",
  publisher    = "Association for Computational Linguistics",
  URL          = "https://aclanthology.org/2023.emnlp-main.724",
  doi          = "10.18653/v1/2023.emnlp-main.724",
  pages        = "11824--11835",
}

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

bteval-0.2.0.tar.gz (6.5 kB view hashes)

Uploaded Source

Built Distribution

bteval-0.2.0-py3-none-any.whl (5.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page