Datasets:
The full dataset viewer is not available (click to read why). Only showing a preview of the rows.
Error code: DatasetGenerationCastError
Exception: DatasetGenerationCastError
Message: An error occurred while generating the dataset
All the data files must have the same columns, but at some point there are 2 new columns ({'Name', 'CategoryID'}) and 2 missing columns ({'errors', 'data'}).
This happened while the json dataset builder was generating data using
hf://datasets/antoinelb7/alloprof/data/questions/categories.json (at revision 0faa90fee1ad1a6e3e461d7be49abf71488e6687)
Please either edit the data files to have matching columns, or separate them into different configurations (see docs at https://hf.co/docs/hub/datasets-manual-configuration#multiple-configurations)
Traceback: Traceback (most recent call last):
File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 2011, in _prepare_split_single
writer.write_table(table)
File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/arrow_writer.py", line 585, in write_table
pa_table = table_cast(pa_table, self._schema)
File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/table.py", line 2302, in table_cast
return cast_table_to_schema(table, schema)
File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/table.py", line 2256, in cast_table_to_schema
raise CastError(
datasets.table.CastError: Couldn't cast
Name: string
CategoryID: int64
to
{'errors': [{'extensions': {'code': Value(dtype='string', id=None)}, 'locations': [{'column': Value(dtype='int64', id=None), 'line': Value(dtype='int64', id=None)}], 'message': Value(dtype='string', id=None), 'path': Sequence(feature=Value(dtype='string', id=None), length=-1, id=None)}], 'data': {'file': {'breadcrumbs': {'children': [{'routerLink': Value(dtype='string', id=None), 'title': Value(dtype='string', id=None)}], 'current': {'routerLink': Value(dtype='string', id=None), 'title': Value(dtype='string', id=None)}, 'parents': [{'routerLink': Value(dtype='string', id=None), 'title': Value(dtype='string', id=None)}], 'root': {'routerLink': Value(dtype='string', id=None), 'title': Value(dtype='string', id=None)}}, 'code': Value(dtype='string', id=None), 'image': Value(dtype='null', id=None), 'imageStyles': Sequence(feature=Value(dtype='null', id=None), length=-1, id=None), 'introduction': Value(dtype='string', id=None), 'lang': Value(dtype='string', id=None), 'levels': Sequence(feature=Value(dtype='int64', id=None), length=-1, id=None), 'metatags': [{'attributes': {'content': Value(dtype='string', id=None), 'href': Value(dtype='string', id=None), 'name': Value(dtype='string', id=None), 'property': Value(dtype='string', id=None), 'rel': Value(dtype='string', id=None)}, 'tag': Value(dtype='string', id=None)}], 'navigation': [{'anchor': Value(dtype='string', id=None), 'level': Value(dtype='string', id=None), 'text': Value(dtype='string', id=None), 'type': Value(dtype='null', i
...
), 'type': Value(dtype='string', id=None), 'uuid': Value(dtype='string', id=None), 'verticalScrollbar': Value(dtype='bool', id=None), 'video': {'code': Value(dtype='string', id=None), 'description': Value(dtype='null', id=None), 'image': Value(dtype='null', id=None), 'imageStyles': Sequence(feature=Value(dtype='null', id=None), length=-1, id=None), 'tags': Sequence(feature=Value(dtype='string', id=None), length=-1, id=None), 'title': Value(dtype='string', id=None), 'uuid': Value(dtype='string', id=None), 'videoId': Value(dtype='string', id=None)}, 'vocabularies': [{'audio': Value(dtype='string', id=None), 'image': {'alt': Value(dtype='string', id=None), 'url': Value(dtype='string', id=None)}, 'imageStyles': [{'link': Value(dtype='string', id=None), 'style': Value(dtype='string', id=None)}], 'name': Value(dtype='string', id=None), 'translation': Value(dtype='string', id=None), 'type': Value(dtype='string', id=None), 'uuid': Value(dtype='string', id=None)}], 'width': Value(dtype='int64', id=None)}], 'slug': Value(dtype='string', id=None), 'title': Value(dtype='string', id=None), 'type': Value(dtype='string', id=None), 'uuid': Value(dtype='string', id=None)}], 'slug': Value(dtype='string', id=None), 'subtype': Value(dtype='string', id=None), 'tags': Sequence(feature=Value(dtype='string', id=None), length=-1, id=None), 'title': Value(dtype='string', id=None), 'topic': Value(dtype='string', id=None), 'type': Value(dtype='string', id=None), 'uuid': Value(dtype='string', id=None)}}}
because column names don't match
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 1577, in compute_config_parquet_and_info_response
parquet_operations = convert_to_parquet(builder)
File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 1191, in convert_to_parquet
builder.download_and_prepare(
File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 1027, in download_and_prepare
self._download_and_prepare(
File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 1122, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 1882, in _prepare_split
for job_id, done, content in self._prepare_split_single(
File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 2013, in _prepare_split_single
raise DatasetGenerationCastError.from_cast_error(
datasets.exceptions.DatasetGenerationCastError: An error occurred while generating the dataset
All the data files must have the same columns, but at some point there are 2 new columns ({'Name', 'CategoryID'}) and 2 missing columns ({'errors', 'data'}).
This happened while the json dataset builder was generating data using
hf://datasets/antoinelb7/alloprof/data/questions/categories.json (at revision 0faa90fee1ad1a6e3e461d7be49abf71488e6687)
Please either edit the data files to have matching columns, or separate them into different configurations (see docs at https://hf.co/docs/hub/datasets-manual-configuration#multiple-configurations)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.
data dict | errors null |
|---|---|
{
"file": {
"breadcrumbs": {
"children": null,
"current": {
"routerLink": "/fr/eleves/bv/francais/le-sens-concret-et-le-sens-abstrait-f1539",
"title": "Le sens concret et le sens abstrait"
},
"parents": null,
"root": {
"routerLink": "/en/students/vl/french",
... | null |
{
"file": {
"breadcrumbs": {
"children": null,
"current": {
"routerLink": "/fr/eleves/bv/sciences/l-usinage-ou-le-faconnage-s1456",
"title": "L'usinage (ou le façonnage)"
},
"parents": [
{
"routerLink": "/en/students/vl/sciences/manufacturing-processes-s14... | null |
{
"file": {
"breadcrumbs": {
"children": null,
"current": {
"routerLink": "/en/students/vl/mathematics/solving-problems-involving-second-degree-polynomial-functions-m1130",
"title": "Solving Problems Involving Second-Degree Polynomial Functions "
},
"parents": null,
"... | null |
{
"file": {
"breadcrumbs": {
"children": null,
"current": {
"routerLink": "/fr/eleves/bv/histoire/charles-darwin-1809-1882-d1023",
"title": "Charles Darwin"
},
"parents": null,
"root": {
"routerLink": "/en/students/vl/history",
"title": "History"
... | null |
{
"file": {
"breadcrumbs": {
"children": null,
"current": {
"routerLink": "/fr/eleves/bv/anglais/indefinite-articles-a-an-a0355",
"title": "Indefinite Articles (a/an)"
},
"parents": null,
"root": {
"routerLink": "/en/students/vl/english",
"title": "Eng... | null |
{
"file": {
"breadcrumbs": {
"children": null,
"current": {
"routerLink": "/fr/eleves/bv/francais/accident-incident-f1543",
"title": "Accident ou incident"
},
"parents": null,
"root": {
"routerLink": "/en/students/vl/french",
"title": "French"
}
... | null |
{"file":{"breadcrumbs":{"children":null,"current":{"routerLink":"/fr/eleves/bv/mathematiques/les-sys(...TRUNCATED) | null |
{"file":{"breadcrumbs":{"children":null,"current":{"routerLink":"/fr/eleves/bv/francais/les-fonction(...TRUNCATED) | null |
{"file":{"breadcrumbs":{"children":null,"current":{"routerLink":"/en/students/vl/mathematics/role-pa(...TRUNCATED) | null |
{"file":{"breadcrumbs":{"children":null,"current":{"routerLink":"/fr/eleves/bv/francais/la-vitesse-d(...TRUNCATED) | null |
Alloprof dataset
This is the dataset refered to in our paper:
Alloprof: a new French question-answer education dataset and its use in an information retrieval case study (https://arxiv.org/abs/2302.07738)
This dataset was provided by AlloProf, an organisation in Quebec, Canada offering resources and a help forum curated by a large number of teachers to students on all subjects taught from in primary and secondary school.
Raw data on questions is available in the following files:
data/questions/categories.json: subjects and their corresponding iddata/questions/comments.json: explanation (answer) datadata/questions/discussions.json: question datadata/questions/grades.json: grades and their corresponding iddata/questions/roles.json: information about the user type for each user id
Raw data on reference pages is available in the following files:
data/pages/page-content-en.json: data for the reference pages in Englishdata/pages/page-content-fr.json: data for the reference pages in French
The data can be parsed and structured using the script scripts/parse_data.py to create the file data/alloprof.csv with the following columns:
id(str) : Id of the documenturl(str) : URL of the documenttext(str) : Parsed text of the documentlanguage(str) : Either "fr" or "en", the language of the documentuser(int) : Id corresponding to the user who asked the questionimages(str) : ";" separated list of URLs of images contained in the documentrelevant(str) : ";" separated list of document ids appearing as links in the explanation to that document. For files, this will always be empty as there are no corresponding explanationis_query(bool) : If this document is a questionsubject(str) : ";" separated list of school subjects the document is related tograde(str) : ";" separated list of school grade levels the document is related topossible(str) : ";" separated list of possible documents ids this document may refer to. This list corresponds to every document of the same subject and grade. For files, this will always be empty to speed up reading and writing
The possible column depends on arguments passed to the scripts to add related subjects, and lower and higher grade levels to the possible documents (see paper).
Also note that the provided alloprof.csv file is stored with git lfs and can be pulled with git lfs install && git lfs pull.
For images, a script to download them is available as scripts/download_images.py.
If you have any questions, don't hesitate to mail us at antoine.lefebvre-brossard@mila.quebec.
Please cite our work as:
@misc{lef23,
doi = {10.48550/ARXIV.2302.07738},
url = {https://arxiv.org/abs/2302.07738},
author = {Lefebvre-Brossard, Antoine and Gazaille, Stephane and Desmarais, Michel C.},
keywords = {Computation and Language (cs.CL), Information Retrieval (cs.IR), Machine Learning (cs.LG), FOS: Computer and information sciences, FOS: Computer and information sciences},
title = {Alloprof: a new French question-answer education dataset and its use in an information retrieval case study},
publisher = {arXiv},
year = {2023},
copyright = {Creative Commons Attribution Non Commercial Share Alike 4.0 International}
}
- Downloads last month
- 41