# Racó Forums Corpus: Catalan forum conversations from Racó Català The Racó Forums Corpus has about 19 million sentences of Catalan user-generated text from the forums of Racó Català, a popular online forum covering many topics. The Text Mining Unit (TeMU) of the Barcelona Supercomputing Center built it from a database dump that Racó Català provided, because the Catalan corpora then available lacked conversational data. Each forum thread was turned into several documents, one for each path from the root comment to a final reply, originally in fairseq language- modelling format (a blank line between documents). User names and emails were replaced with random Catalan names, and mentions of the forum were removed. The corpus was released in 2022 under Projecte AINA (Generalitat de Catalunya), mainly for pretraining language models. This copy is the Hugging Face Parquet version: a train split and a validation split, each row one document in a single text column. It has no post, thread, user or date fields. E-mail addresses, phone numbers and IP addresses that remained in the texts are masked. ## At a glance - **Platform:** Unaffiliated - **Tables:** x_train_documents (3,948,858 rows), x_validation_documents (4,999 rows) - **Version:** 1.0.0 - **Licence:** CC BY-NC 4.0; SPDX `CC-BY-NC-4.0` ## Contents | Path | What it is | |---|---| | `data/x_train_documents.parquet` | The x_train_documents table (canonical, Parquet) | | `csv/x_train_documents.csv.gz` | The same table as gzip CSV | | `jsonl/x_train_documents.jsonl.gz` | The same table as gzip JSON Lines | | `data/x_validation_documents.parquet` | The x_validation_documents table (canonical, Parquet) | | `csv/x_validation_documents.csv.gz` | The same table as gzip CSV | | `jsonl/x_validation_documents.jsonl.gz` | The same table as gzip JSON Lines | | `docs/upstream/` | The upstream documentation, verbatim | | `original/` | The 24 upstream file(s), byte for byte | | `datapackage.json`, `croissant.json` | Machine-readable descriptions of this package | | `CITATION.cff`, `CITATION.bib` | How to cite | | `LICENSE.md` | Licence and terms | | `manifest-sha256.txt` | SHA-256 checksum of every file | ## Tables and columns ### x_train_documents (3,948,858 rows) | Column | Type | Meaning | |---|---|---| | `text` | string | One document of the train split, holding the comments along one path of a forum thread, from the root comment to a final reply, joined as plain text. The creators replaced user names and e-mail addresses with random Catalan names; addresses, phone numbers and IP addresses that remained in the text are masked (tokens such as [EMAIL_...], [PHONE_...], [IP_...]). | ### x_validation_documents (4,999 rows) | Column | Type | Meaning | |---|---|---| | `text` | string | One document of the validation split, in the same form as the train documents. | ## Quick start Python (pandas): ```python import pandas as pd df = pd.read_parquet("https://echo.directory/download/raco-catala-forums-catalan-corpus/v1.0.0/data/x_train_documents.parquet") ``` DuckDB (reads over HTTP without downloading the file first): ```sql SELECT * FROM 'https://echo.directory/download/raco-catala-forums-catalan-corpus/v1.0.0/data/x_train_documents.parquet' LIMIT 10; ``` R (arrow): ```r df <- arrow::read_parquet("https://echo.directory/download/raco-catala-forums-catalan-corpus/v1.0.0/data/x_train_documents.parquet") ``` ## How this package was made ECHO converted the upstream file(s) listed under `original/` into the tables above, following the [ECHO Data Package 1.0.0](https://echo.directory/docs/edp/1.0/) standard. Every value was checked against the source during conversion: no row was dropped and no value was changed except as described here. - The sources do not state when the data were collected. No source gives the period the forum posts cover; 2022 is the release year (Zenodo, 24 October 2022), not the period. - Rows have no identifiers: no post, thread, user or timestamp fields. That is why the documents are in x_ tables, not posts or threads. Text only, as published. - Each thread was split into one document per path from the root comment to a final reply, so comments near the top of a thread repeat across many documents. The text is therefore not one row per forum post. - The creators replaced user names and e-mail addresses with random Catalan names and removed mentions of the forum. The dataset card says the data may contain biases, hate speech and toxic content, and that nothing was done to mitigate them. The replacement missed addresses, numbers and IP addresses written inside the posts; ECHO masks those (see the last note). - The train and validation splits are kept as two tables, as published. Row counts, checked 2026-11-18 on the Parquet files and against the Hugging Face dataset viewer: train 3,948,858 and validation 4,999, together 3,953,857. The catalog record's 3,958,857 is 5,000 too many (a typing slip in the record); the files and the viewer agree on 3,953,857. No row was dropped or added. - The creators' names follow the Zenodo record (10.5281/zenodo.7254179, checked 2026-11-18), which spells the fifth creator Rodríguez-Pénagos, Carlos, with the accent on the e of Pénagos. An earlier draft of this recipe wrote Penagos. - download/OLD/raco_forums.py is the old Hugging Face loading script. It read text files from the Zenodo archive (data/train.txt, data/valid.txt), with a blank line between documents. It ships as an original only; it holds no personal identifier. - The data card's two organisation contact addresses (the project's and the curators') are masked in the shipped README like every other address; the unmasked README and Parquet files are not shipped. - Phone numbers: ECHO's rule masks digit groups of the form 3-3-4 (what the privacy scan counts). In this corpus those matches are almost all not telephone numbers: statistics, election and census figures, years and sports scores, such as '898.491 2004' or '400-600-1000', so the masking changes those figures. Real telephone numbers in the texts are mostly Spanish numbers written 6XX XXX XXX or 9XX XX XX XX. Spanish formats were added for this dataset on 2026-11-23 (Reza's decision, a per-dataset phone format of ECHO's masking policy v1.2, not a default): mobile 6XX/7XX XXX XXX and landline 9XX XX XX XX, optional +34, groups separated by a space, dot or hyphen; the 900, 902 and 905 service lines are left unmasked. The Spanish format masks some digit groups that are not telephone numbers (a fixed format cannot tell them apart), as the 3-3-4 rule does. - Personal identifiers are pseudonymised under ECHO's masking policy v1.2 (2026-11-23, with the Spanish phone formats for this dataset): 2,433 e-mail addresses (387 distinct) became [EMAIL_...]; 5,530 phone numbers (855 distinct) became [PHONE_...]; 3,291 IP addresses (451 distinct) became [IP_...]. Each value has a token that is the same everywhere in this dataset (tables and shipped originals), so records stay linkable, but tokens differ between ECHO datasets and cannot be turned back into the value (keyed HMAC-SHA256). Nothing else was changed; masked files ship under derived/ in place of the originals. derived/masking.provenance.json gives the rules and counts. Since v1.2 (2026-11-19) the masking also reads e-mail addresses with non-ASCII letters (such as direcció@vic.el9nou.com) and phone numbers written in dotted groups (such as 93.330.94.96), which the earlier masking of this dataset (v1.1, 2026-11-18: 2,299 e-mail addresses, 1,900 phone numbers, 3,308 IP addresses) had left; the dataset was masked again from its original files. A dotted number with a group above 255 and nine or ten digits is read as a phone number, so a written-out invalid IP address such as 67.55.677.21 is masked as a phone number too. ## Credit - **Blanca Calvo Figueras**, creator: Barcelona Supercomputing Center (creator listed on the Zenodo record) - **Paul Andrei Petrea**, creator: Barcelona Supercomputing Center - **Carme Armentano-Oller**, creator: Barcelona Supercomputing Center - **Asier Gutierrez-Fandiño**, creator: Barcelona Supercomputing Center - **Carlos Rodríguez-Pénagos**, creator: Barcelona Supercomputing Center - **Aitor Gonzalez-Agirre**, creator: Barcelona Supercomputing Center - **Marta Villegas**, creator: Barcelona Supercomputing Center - **Text Mining Unit (TeMU), Barcelona Supercomputing Center**, creator: curated, structured and anonymised the corpus (dataset card) - **Racó Català**, publisher: the forum; it provided the database dump the corpus was built from - **Projecte AINA, Generalitat de Catalunya**, distributor (https://huggingface.co/datasets/projecte-aina/raco_forums): funded the work and distributes the Hugging Face copy - **Zenodo record 7254179**, distributor (https://zenodo.org/records/7254179) - **ECHO, Syracuse University**, packager (https://echo.directory) The upstream documentation is preserved verbatim in `docs/upstream/`. ## Licence and terms CC BY-NC 4.0; SPDX `CC-BY-NC-4.0`, https://creativecommons.org/licenses/by-nc/4.0/. See `LICENSE.md` for the upstream terms. The Hugging Face dataset card and the Zenodo record both give CC BY-NC 4.0. Commercial use is not allowed. The old loading script (OLD/raco_forums.py) has an Apache-2.0 header; that licence covers the script, not the data. ## Citation ```bibtex @misc{echo2026, title = {ECHO: Exploratory Compendium of Humanity Online}, author = {Switzer, Braden and Zafarani, Reza}, year = {2026}, url = {https://echo.directory}, note = {Syracuse University} } @dataset{calvo_figueras_2022_raco_forums, title = {Racó Forums Corpus}, author = {Calvo Figueras, Blanca and Petrea, Paul Andrei and Armentano-Oller, Carme and Gutierrez-Fandiño, Asier and Rodríguez-Penagos, Carlos and Gonzalez-Agirre, Aitor and Villegas, Marta}, publisher = {Zenodo}, year = {2022}, version = {1}, doi = {10.5281/zenodo.7254179}, url = {https://doi.org/10.5281/zenodo.7254179} } ``` ## Versions This is version 1.0.0. Every version is kept unchanged at its own address (`https://echo.directory/download/raco-catala-forums-catalan-corpus/v1.0.0/`); `CHANGELOG.md` lists what changed between versions.