Skip to main content

A Question Answering Dataset on a Hybrid of Database Querying and Reasoning

Project description

DBQR-QA

A Question Answering Dataset on a Hybrid of Database Querying and Reasoning

Introduction

This Python package includes tools that help read the dataset and evaluate the results. The package also contains built-in functions (optional) for programs in the annotated labels.

For more information, visit:

Setup

To install the package run:

pip install dbqrqa

To build and install the package locally, run:

python -m build
pip install dist/dbqrqa-[version].tar.gz

Package Structure

Package Structure

  1. dataset.py: Read and prepare the dataset for training/prediction
  2. evaluation.py: Heuristic and GPT evaluators
  3. builtins.py: Built-in functions for program annotation

Unit Test

For the unit test, run the following command:

python -m unittest

The unit-test command does not test the GPT evaluator due to cost and security considerations. To test the GPT evaluator, obtain an OpenAI's API key, then run the following command:

python tests/gpt_evaluation.py 

Citation

Use the following BibTex or get the citation in other formats from ACL Anthology:

@inproceedings{nararatwong-etal-2024-dbqr,
    title = "{DBQR}-{QA}: A Question Answering Dataset on a Hybrid of Database Querying and Reasoning",
    author = "Nararatwong, Rungsiman  and
      Chen, Chung-Chi  and
      Kertkeidkachorn, Natthawut  and
      Takamura, Hiroya  and
      Ichise, Ryutaro",
    editor = "Ku, Lun-Wei  and
      Martins, Andre  and
      Srikumar, Vivek",
    booktitle = "Findings of the Association for Computational Linguistics ACL 2024",
    month = aug,
    year = "2024",
    address = "Bangkok, Thailand and virtual meeting",
    publisher = "Association for Computational Linguistics",
    url = "https://aclanthology.org/2024.findings-acl.900",
    pages = "15169--15182"
}

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

dbqrqa-0.1.1.tar.gz (50.5 kB view details)

Uploaded Source

Built Distribution

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

dbqrqa-0.1.1-py3-none-any.whl (40.5 kB view details)

Uploaded Python 3

File details

Details for the file dbqrqa-0.1.1.tar.gz.

File metadata

  • Download URL: dbqrqa-0.1.1.tar.gz
  • Upload date:
  • Size: 50.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.0

File hashes

Hashes for dbqrqa-0.1.1.tar.gz
Algorithm Hash digest
SHA256 17fd9e3f8a83f73348320648f90aae6171a461e7c871257ea3d952398eecd5c7
MD5 3094e75837284e1a1f2c84af3fd82eb6
BLAKE2b-256 fba58d7f250c6adebc73c567a680bab48b4ecdf885685dbe9f81d564d9c88edd

See more details on using hashes here.

File details

Details for the file dbqrqa-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: dbqrqa-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 40.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.0

File hashes

Hashes for dbqrqa-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 41f9caeafe04ca16022bd1e372a3e516700bf9591172be8c47684bf1d8ccb59e
MD5 6c7db67c80dc7f0280fbb846ec6e0489
BLAKE2b-256 d21e0cd3613da26a7d12ce508eba7fc8fd3c7b2ebe16addc7978d2df50f9cd62

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