Datasets:
The dataset viewer is not available for this dataset.
Error code: JWTInvalidSignature
Exception: InvalidSignatureError
Message: Signature verification failed
Traceback: Traceback (most recent call last):
File "/src/libs/libapi/src/libapi/jwt_token.py", line 286, in validate_jwt
decoded = jwt.decode(
jwt=token,
...<2 lines>...
options=options,
)
File "/usr/local/lib/python3.14/site-packages/jwt/api_jwt.py", line 368, in decode
decoded = self.decode_complete(
jwt,
...<8 lines>...
leeway=leeway,
)
File "/usr/local/lib/python3.14/site-packages/jwt/api_jwt.py", line 265, in decode_complete
decoded = self._jws.decode_complete(
jwt,
...<3 lines>...
detached_payload=detached_payload,
)
File "/usr/local/lib/python3.14/site-packages/jwt/api_jws.py", line 270, in decode_complete
self._verify_signature(
~~~~~~~~~~~~~~~~~~~~~~^
signing_input,
^^^^^^^^^^^^^^
...<4 lines>...
options=merged_options,
^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/usr/local/lib/python3.14/site-packages/jwt/api_jws.py", line 417, in _verify_signature
raise InvalidSignatureError("Signature verification failed")
jwt.exceptions.InvalidSignatureError: Signature verification failedNeed help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.
Pedagogical Machine Translation (Dialect) dataset: the filtered Canadian Hansard Dataset.
The Canadian [Hansard](https://www.ourcommons.ca/documentviewer/en/35-2/house/hansard-index) is an archive of parliamentary sessions in the two official languages in Canada - English and Franch.
π Table of Contents
- π§© Hansard Dataset
- π Table of Contents
- π Usage
- Downloading the dataset
- Dataset structure
- Loading the dataset
π Usage
Downloading the dataset
The hansard dataset can be downloaded from here or with a bash script:
bash download_hansard.shDataset structure
The dataset is provided as csv (and parquet) files, one for each partition:
train.[csv|parquet]andtest.csv. We also provide ahansard.[csv|parquet]file that contains all examples across all splits. The splits are sized as follows:Loading the dataset
The three partitions can be loaded the same way as any other csv file. For example, using Python:
dataset = { "train": csv.load(open("./Hansard/train.csv", "r"))["dataset"], "test": csv.load(open("./Hansard/test.csv", "r"))["dataset"], }However, it is likely easiest to work with the dataset using the HuggingFace Datasets library:
# pip install datasets from datasets import load_dataset # The dataset can be used like any other HuggingFace dataset dataset = load_dataset("raeidsaqur/hansard")βοΈ Contributing
We welcome contributions to this repository (noticed a typo? a bug?). To propose a change:
git clone https://github.com/raeidsaqur/hansard cd hansard git checkout -b my-branch pip install -r requirements.txt pip install -e .Once your changes are made, make sure to lint and format the code (addressing any warnings or errors):
isort . black . flake8 .Then, submit your change as a pull request.
π Citing
If you use the Canadian Hansarddataset in your work, please consider citing our paper:
@article{raeidsaqur2024Hansard, title = {The Canadian Hansard Dataset for Analyzing Dialect Efficiencies in Language Models}, author = {Raeid Saqur}, year = 2024, journal = {ArXiv}, url = }π Acknowledgements
The entire CSC401/2511 teaching team at the Dept. of Computer Science at the University of Toronto.
- Downloads last month
- 70