library for question evaluation including KDA, Knowledge Dependent Answerability introduced in EMNLP 2022 work.
Project description
question-score
Repository for KDA(Knowledge-dependent Answerability), EMNLP 2022 work
How to use
pip install --upgrade pip
pip install question-score
from question_score import KDA
kda = KDA()
print(
kda.kda_small(
"passage",
"question",
["option1", "option2", "option3", "option4"],
1
)
)
What does the score mean?
You can check the explanation of KDA on https://arxiv.org/abs/2211.11902 now. The official link from EMNLP 2022 will soon be released.
You can use $KDA_{small}$ or $KDA_{large}$ instead of heavy metric using all model. Below is the performance of the submetrics, which mentioned on the appendix of the paper.
Sub Metric | Model Count ( Total Size ) | KDA (Valid) | Likert (Test) |
---|---|---|---|
KDA_small | 4 (3.5GB) | 0.740 | 0.377 |
KDA_large | 10 (19.2GB) | 0.784 | 0.421 |
Citation
@inproceedings{moon2022eval,
title={Evaluating the Knowledge Dependency of Questions,
author={Moon, H., Yang, Y., Shin, J., Yu, H., Lee, S., Jeong, M., Park, J., Kim, M., & Choi, S.},
booktitle={Proceedings of the 2022 Conference on Empirical Methods in Natural Language Processing},
year={2022}
}
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
question_score-0.0.5.tar.gz
(12.5 kB
view details)
Built Distribution
File details
Details for the file question_score-0.0.5.tar.gz
.
File metadata
- Download URL: question_score-0.0.5.tar.gz
- Upload date:
- Size: 12.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 578b750f2090a82068c0ed1ed1603da16ced5b7d6ef62021eeb54552a3f9dcab |
|
MD5 | edd37c43c51e41c5122584e7af660760 |
|
BLAKE2b-256 | 1a0de60f483e3f668aa80e614b108dd46319ef0950ae8d526467afb1987ead01 |
File details
Details for the file question_score-0.0.5-py3-none-any.whl
.
File metadata
- Download URL: question_score-0.0.5-py3-none-any.whl
- Upload date:
- Size: 12.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7a72d59c1c2d695bd5b9851539479ab32484bee8fa701c800288cfa55680d456 |
|
MD5 | 2c91f19c49e452e1121fa14dfa25e11b |
|
BLAKE2b-256 | 41d5cdc20925aa8c3f0a0babe1c8c355e576955ddad9e1b06e22b23c531d4102 |