The Statcan Dialogue Dataset
Project description
Statcan Dialogue Dataset
💻Code | 📄Paper | 🌐Homepage |
---|
The StatCan Dialogue Dataset: Retrieving Data Tables through Conversations with Genuine Intents
Xing Han Lu, Siva Reddy, Harm de Vries
EACL 2023
This repository contains the code for our project. For detailed information, instructions on requesting access, API user guide and documentation, please visit the website. You can find useful links above. A quickstart is provided below.
Quickstart
First, you need to request access (please go to the main webpage for more information).
Then, you can install our Python library to load the dataset:
pip install statcan-dialogue-dataset
Now, inside Python, you can use various functions to work with the data:
import statcan_dialogue_dataset as sdd
# Download the dataset (from dataverse)
sdd.download_dataverse("your_api_token")
# Alternatively, Download from huggingface
sdd.download_huggingface("your_api_token")
# Extract ZIP into ~/.statcan_dialogue_dataset/
sdd.extract_task_data_zip(remove_zip=True)
# Load task specific split for a specific language
train_ret = sdd.load_task_data(task="retrieval", split="train", lang="en")
# Load all task conversations
task_conversations = sdd.load_task_conversations()
# Load table metadata
table = sdd.metadata.Table.from_code(10100002)
# Get subjects or surveys
subjects = table.get_subjects()
surveys = table.get_surveys()
For more information, head to the Core API Reference page.
Reproduce paper results
The full eacl_code
directory contains the code used to produce the results in the paper. To reproduce the results, start by reading the README.md
file in the eacl_code
directory.
StatCan resources
You may find the following external resources useful:
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 statcan-dialogue-dataset-0.2.0.tar.gz
.
File metadata
- Download URL: statcan-dialogue-dataset-0.2.0.tar.gz
- Upload date:
- Size: 23.3 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 02c1a9fd0d80965d0640c518b1ba2649be7f4466bf582e80e8312228844bd122 |
|
MD5 | 043cd6a7fac30ee016fa75c2935aa2f4 |
|
BLAKE2b-256 | a1f171f3a7b000f2d885118a6a07dba5c0d4f08e2546c340ba3261204e08005c |
File details
Details for the file statcan_dialogue_dataset-0.2.0-py3-none-any.whl
.
File metadata
- Download URL: statcan_dialogue_dataset-0.2.0-py3-none-any.whl
- Upload date:
- Size: 23.4 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | be757062b534239a28031b40c65e46c7d9ceac645cbef58defdae272f8d438b4 |
|
MD5 | 44c8c3a52a2dc75b44af28fc45ff066c |
|
BLAKE2b-256 | 09d759550d04bdd9dec035e0cb842b4193d9a5d32618384f2ceaa7d0bcba37c6 |