Dataset Viewer
The dataset viewer is not available for this dataset.
The JWT signature verification failed. Check the signing key and the algorithm.
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 failed

Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.

RH 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.sh
        

        Dataset structure

        The dataset is provided as csv (and parquet) files, one for each partition: train.[csv|parquet] and test.csv. We also provide a hansard.[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