BTEval is a Python library for measuring the robustness of natural language understanding models to speech recognition errors.
Project description
BTEval
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file bteval-0.2.0.tar.gz
.
File metadata
- Download URL: bteval-0.2.0.tar.gz
- Upload date:
- Size: 6.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.26.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2dc917a0cec90a133581bef25fba93dbc08fea2b46d2250a6fdc968d733f8ea7 |
|
MD5 | 0179b7d40af00da4525cf53515722463 |
|
BLAKE2b-256 | 7d1e2b3ca4440eb592d59a645af8b022a3fa5899f10b2a755f51975e6d7d281d |
File details
Details for the file bteval-0.2.0-py3-none-any.whl
.
File metadata
- Download URL: bteval-0.2.0-py3-none-any.whl
- Upload date:
- Size: 5.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.26.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 11312224fbf13b7187b941a83135a812c7bff0acdb2660ae5942b4847d303bab |
|
MD5 | 79190c7fc9d5150fde99387a2b1345cc |
|
BLAKE2b-256 | 31cbca9e25f7202393a4ba74b7ae1b2809139342d45261ad9f0f844b0d46c37e |