---
title: "Building a Data Infrastructure for a Mid-Resource Language: The"
description: "The Aina project shows how Catalan can build a lasting data supply through recurring collection, professional annotation, and open release."
canonical: "https://research.elamur.ai/free/en/papers/agirre-2024-building-data-infrastructure-mid-resource/"
---
Elamur: [Mova](https://md.mova.elamur.ai/free/en/) · [Parse](https://mova.elamur.ai/free/en/parse/) · [Dictionary](https://md.dictionary.elamur.ai/free/en/) · [Translate](https://md.translate.elamur.ai/free/en/) · **Research** · [Gali](https://md.gali.elamur.ai/free/en/) · [MCP](https://mcp.elamur.ai/) · [Locations](https://md.locations.elamur.ai/free/en/) · [Weather](https://md.weather.elamur.ai/free/en/)

[Elamur Research](https://md.research.elamur.ai/free/en/) · [this page in HTML](https://research.elamur.ai/free/en/papers/agirre-2024-building-data-infrastructure-mid-resource/)

[Elamur Research](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2024](https://md.research.elamur.ai/free/en/papers/2024/) / Building a Data Infrastructure for a Mid-Resource Language: The Case of Catalan

# Building a Data Infrastructure for a Mid-Resource Language: The Case of Catalan

Paper · 2024 · Aitor Gonzalez-Agirre, Montserrat Marimon, Carlos Rodriguez-Penagos et al.

**Authors:** [Aitor Gonzalez-Agirre](https://md.research.elamur.ai/free/en/authors/aitor-gonzalez-agirre/), Montserrat Marimon, Carlos Rodriguez-Penagos, [Javier Aula-Blasco](https://md.research.elamur.ai/free/en/authors/javier-aula-blasco/), [Irene Baucells](https://md.research.elamur.ai/free/en/authors/irene-baucells/), Carme Armentano-Oller, Jorge Palomar-Giner, Baybars Kulebi and [Marta Villegas](https://md.research.elamur.ai/free/en/authors/marta-villegas/) · **Year:** 2024 · **Venue:** Proceedings of the 2024 Joint International Conference on Computational Linguistics, Language Resources and Evaluation (LREC-COLING 2024) · **Licence:** [CC BY-NC 4.0 (ELRA, LREC proceedings)](https://creativecommons.org/licenses/by-nc/4.0/)

Proceedings of the 2024 Joint International Conference on Computational Linguistics, Language Resources and Evaluation (LREC-COLING 2024) · [licence](https://creativecommons.org/licenses/by-nc/4.0/)

- [Publisher's page](https://aclanthology.org/2024.lrec-main.231/)
- [PDF](https://aclanthology.org/2024.lrec-main.231.pdf)

## Summary

A language can have an active online community and still lack the material needed to build and test language technology. Training requires large collections of text or speech. Evaluation requires examples with trustworthy answers, frequently for tasks that are hard to reproduce by translating from another language. The Aina project addresses both problems for Catalan, whose digital support the authors describe as fragmentary. The paper reports how the project turned public sources into reusable corpora, commissioned professional translations for multilingual benchmarks, and created Catalan datasets for tasks where local language and context matter.

The collection work treats data supply as a recurring job. Parliamentary recordings are paired with cleaned transcripts to produce short speech segments. A YouTube tool retrieves videos whose licenses allow download and can collect user-provided subtitles. A scheduled process extracts the body text of official gazette notices, while a revised Wikipedia extractor preserves features such as nested lists and mathematical notation. A related corpus released alongside the paper, CATalog, contains 23B tokens, compared with 13B tokens in the earlier Catalan corpus the authors use as a reference. The project also reports the amount acquired from each recurring source and distinguishes material already collected from speech segments still undergoing quality review.

The annotated releases serve a different purpose. Catalan versions of multilingual datasets make it possible to ask comparable questions across languages, while newly authored examples draw on Catalan texts and speakers. CoQCat contains 89,364 conversational question–answer pairs. InToxiCat asks annotators to identify abuse, locate relevant wording when present, and classify its target. Other resources cover tasks such as identifying named entities, summarizing news, and interpreting the intent of an assistant request. The project also converted existing annotations into approximately 219,000 Catalan instructions, holding converted test examples out of instruction training.

The evidence concerns the resources the project produced, the quality checks it performed, and the practical obstacles it encountered. Permission to reuse material restricted which news sources could enter a dataset. Getting a Catalan translation accepted into an established multilingual collection proved slower than releasing it independently, and a collection that initially accepted a Catalan subset later disappeared. Those experiences give the paper its central lesson about infrastructure. The value of a dataset depends partly on whether people can keep obtaining, inspecting, and using it after the work of collecting or annotating it is finished.

## Deep dive: Building a Data Infrastructure for a Mid-Resource Language: The Case of Catalan

The Aina project shows how Catalan can build a lasting data supply through recurring collection, professional annotation, and open release. · about 34 minutes to read

**In this deep dive**

1. [The problem and its context](#dd-the-problem-and-its-context)
2. [The method, step by step](#dd-the-method-step-by-step)
3. [Experiments and results](#dd-experiments-and-results)
4. [What the ablations show](#dd-what-the-ablations-show)
5. [Limitations](#dd-limitations)
6. [What came after](#dd-what-came-after)

### The problem and its context

#### Why Catalan needed a continuing data supply

The authors frame support for Catalan as a question of access to technology in the language people use. A service can be readily available to speakers of English while the data needed to offer an equivalent service in Catalan is scarce. The paper uses earlier assessments of European language technology to put that gap in context. The META-NET reports in 2012 identified at least 21 European languages at risk of digital extinction because of inadequate technology support. A study in 2023 examined around 30 European languages and described a widening gap with English. It placed Catalan in the group with fragmentary support, below languages rated as having moderate support. English received a good-support rating. [English](https://md.research.elamur.ai/free/en/topics/english/)

The distinction between a mid-resource language and a well-supported one becomes concrete when the authors discuss the volume of material available for [natural language processing](https://md.research.elamur.ai/free/en/concepts/natural-language-processing/). Catalan already had digital text, research datasets, and speech recordings. Aina could build on an earlier parliamentary speech corpus and on prior work assessing Catalan systems. The difficulty was turning the material available across different institutions and websites into a supply sufficient for current research and applications. The project began in 2022 as a 5-year initiative backed by €15M from the Catalan government. Its strategy gives priority to data because the same well-prepared material can remain useful as the technology that consumes it changes.

To convey the scale of the problem, the paper draws on a compute-based training estimate. For the GPT-3-family example it chooses, a system with 1.3 billion parameters would require 26 billion tokens under the Chinchilla prescription. A token is a unit of text produced by the particular procedure that breaks text into pieces for processing. A token count and a word count describe different units, so the paper gives both when discussing the available corpora. The estimate explains the scale that motivated the project. It is an illustration from earlier work, instead of the description of a training run carried out in the paper. [Training Compute-Optimal Large Language Models](https://md.research.elamur.ai/free/en/papers/hoffmann-2022-training-compute-optimal-large-language/) · [Tokenization & segmentation](https://md.research.elamur.ai/free/en/topics/tokenization/)

Speech poses its own version of the supply problem. The authors cite 640k hours in their discussion of Whisper and around 60k hours for the speech synthesis examples they name. Audio is counted in time, but usable speech resources also depend on what accompanies the recordings. A long public video may contain valuable speech while offering little immediate use for supervised recognition if the transcript is missing or poorly aligned. Parliamentary sessions were attractive precisely because the legislature already published both recordings and transcripts, and earlier Catalan work had turned some of that material into speech data. [Speech & spoken language](https://md.research.elamur.ai/free/en/topics/speech/) · [Robust Speech Recognition via Large-Scale Weak Supervision](https://md.research.elamur.ai/free/en/papers/radford-2022-robust-speech-recognition-large-scale/)

The paper therefore treats collecting more data and acquiring suitable data as related tasks. A public authority can publish large amounts of consistently formatted material, yet its notices represent a particular style of writing. A news site can offer articles well suited to a summarization exercise, yet the project needs permission to reuse them. An online discussion can contain the kinds of exchanges needed for stance or abuse annotation, yet the search procedure influences which exchanges are seen. Volume, permission, and suitability enter the work at different points.

#### Why evaluation required Catalan examples

Earlier research also offered a route to [multilingual and cross-lingual evaluation](https://md.research.elamur.ai/free/en/topics/multilingual-nlp/). A benchmark can apply a common task to multiple languages. For example, a reading-comprehension benchmark can ask questions about corresponding passages, or a paraphrase benchmark can ask whether sentences have the same meaning. If a collection omits Catalan, that language is absent from comparisons made with the collection. A separately released dataset can give researchers a way to test Catalan, while inclusion upstream can put it in the path of researchers who already use the multilingual benchmark. [Evaluation & benchmarks](https://md.research.elamur.ai/free/en/topics/evaluation-benchmarks/)

Some of the collections Aina targeted had used machine translation to expand language coverage. The authors instead chose professional translation for the Catalan additions. Their rationale was that translators could recognize when dates, units, or names needed local adaptation and could apply the decision consistently across a test item. The problem was especially clear for evaluation examples. The wording of a question, an answer, or a sentence pair can carry some of the difficulty. A version that introduces a clue may be fluent in Catalan and still measure something different from the source.

Established task designs were also useful when translation was a poor fit. In extractive reading comprehension, for instance, SQuAD provided a set of guidelines for asking questions with answers drawn from passages. The project could follow those guidelines using Catalan news and encyclopedia articles. For conversational reading comprehension, CoQA supplied a design in which the questions form an exchange. The project could adopt that arrangement while commissioning new questions and evidence grounded in Catalan passages. This is how the paper distinguishes transferring a task from translating its examples. [Question answering](https://md.research.elamur.ai/free/en/concepts/question-answering/) · [SQuAD](https://md.research.elamur.ai/free/en/papers/rajpurkar-2016-squad-100-000-questions-machine/) · [CoQA](https://md.research.elamur.ai/free/en/papers/reddy-2019-coqa-conversational-question-answering-challenge/)

For some tasks, the local context is part of the evidence. An assistant request can mention a local place, cultural activity, or public service. An abusive comment can depend on an implication that the reader has to recognize without seeing an explicit insult. A sentence used to test entailment must stand on its own well enough for an annotator to write a supported, contradictory, or undecidable continuation. For these cases Aina treated the choice of source and the instructions to annotators as integral parts of the task. The infrastructure had to support both a stream of material to work with and deliberate decisions about which examples to compose.

### The method, step by step

Aina did not have a single pipeline through which all of its material passed. Text for general training, paired speech and transcripts, and examples with human labels have different requirements. The authors first identified which sources could replenish the supply and which tasks needed dedicated datasets. They then built extraction software where a source offered predictable structure, commissioned translations where a multilingual task could be preserved, and wrote new examples where Catalan use was central to the task. Packaging and conversion for downstream use came after those choices.

How Aina turns source material into reusable resources The steps in order.

The paper describes procedures and reports measurements in prose. It refers to the Chinchilla training prescription for its scale example without printing an equation for it. The collection and annotation methods likewise have no mathematical formula written out in the paper. Their reproducible details instead concern inputs, processing steps, annotation categories, and the status of each output.

#### Turning parliamentary sessions into aligned speech

The Parlament de Catalunya already published proceedings as videos and transcripts. Aina became an early user of the legislature’s developing open-data service. One API endpoint lists recent sessions and supplies metadata such as the session identifier and the kind of sitting. A second endpoint accepts that identifier and describes the speeches within the session. It provides information about speakers, timing, and the locations of the source video and transcript. Taken together, the endpoints allow the pipeline to follow records from a session to its constituent speeches and their associated files.

The pipeline downloads the referenced resources and updates the metadata to point to local relative paths. It then processes the PDF transcripts and the recording. The output consists of audio segments of 5-20s paired with cleaned text. The short segments make it possible to attach a transcript to a specific stretch of speech. The pipeline automatically scores each pair for transcription quality, which gives the project a way to decide which parts of the downloaded material are suitable for inclusion.

The earlier ParlamentParla work supplied a starting point. Aina updated the way it reads the PDF files and the forced alignment procedure, which locates the known transcript in time against the recorded speech. It also extended processing to Catalan and Spanish. This matters because the institutional feed contains material in both languages. The project’s goal was to run the process every quarter. The paper separates that intended schedule from the state of the new dataset, which was still being checked at the time of reporting.

Parliamentary recordings are valuable to the authors in part because the speakers represent dialectal varieties from across Catalonia. The method preserves a connection between each recording and information about its source. That connection is useful at the processing stage as well as for interpreting the finished corpus. A researcher can understand a speech segment as language produced during a parliamentary sitting, with the setting and the manner of speaking that entails.

#### Collecting video through targeted queries

The project’s YouTube acquisition software, Datapipe, came from an existing Softcatalà project. Aina adapted it for deployment, added integration with Kubernetes tools, and made it possible to retrieve subtitles supplied by users. It also added a license filter. A channel name or a search term directs acquisition to a particular part of the service. From the returned videos, the tool downloads those with open licenses.

Datapipe can split audio into segments and apply automatic speech recognition, which generates text from the recording. It can also run gender detection. The accumulated information is written to a SQL database. This gives the collection a place to keep information about the source alongside the results of processing. The paper describes these processing options separately from the first acquisition effort, which concentrated on openly licensed Catalan videos that already had subtitles.

That initial choice made an existing text track available as part of the collected material. A future approach outlined by the authors would admit videos without subtitles, use automatic recognition to produce text, and compare results from multiple recognition systems to identify stronger segments. The reported collection figures refer to the subtitle-based effort. The proposed cross-check describes an additional selection procedure whose performance the paper leaves for future work.

#### Extracting notices and encyclopedia articles

For written material, the government gazette and Wikipedia illustrate different extraction problems. Official notices are published by the DOGC (Diari Oficial de la Generalitat de Catalunya). The government transparency API supplies metadata and the URLs of the publications in Catalan and Spanish. Each notice uses a common HTML structure. The pipeline uses that consistency to find the body text, then normalizes its paragraph layout before the text is used for training. The metadata supplies the route to the publication, while the notice itself supplies the content.

The gazette has an advanceable collection schedule because its API receives the previous month’s publications at the beginning of each month. Aina scheduled its pipeline to run on the 6th. By the time the extraction runs, the source has had its scheduled update. The procedure is tied to the institutional publication cycle, so keeping the corpus current depends on both the source continuing to publish in an accessible way and the project continuing to run the extraction.

Wikipedia offered a different challenge. The information that makes an article readable can be expressed in templates, lists, special characters, or mathematical and chemical notation. An extractor that discards or misreads those features can change the article’s content even when the surrounding sentences survive. Aina forked WikiExtractor to make Wikiextractor-V2, which supports nested lists and Unicode characters, preserves mathematical and chemical formulas, and handles specific templates that had caused problems. Article titles are included by default.

The revised tool produces plain text or JSON. A configuration file can exclude specified templates, sections, or entire documents. That means a project using the extractor can make decisions about which kinds of material to retain before proceeding to downstream preparation. The tool can run on its own or as one component of a larger process. The Catalan extraction reported in the paper came from Wikipedia dumps and was counted after preprocessing and deduplication, the removal of repeated material. The paper also reports testing the extractor with dumps from 2023 and describes support beyond Catalan and English.

#### Translating a benchmark while keeping its task intact

For the multilingual releases, Aina commissioned professional translators to work from the English portions of existing collections. The instructions asked them to retain the relationship between the elements of an example. A change to a name, date, or system of measurement might be appropriate if the Catalan item remained coherent. In a test item, the translator also had to avoid wording that disclosed the answer and pay attention to answer length. Errors in the source were to be avoided rather than reproduced.

Each translated resource retains a particular question for the system that uses it. XNLI-ca concerns inference between sentences. WNLI-ca contains 855 pairs in which a sentence with an ambiguity is followed by a candidate interpretation. Its labels use 1 for a correct interpretation and 0 for an incorrect one. COPA-ca asks which alternative is more plausible given a causal scenario. It follows COPA, a task developed for English and extended to other languages through XCOPA. These examples illustrate why a translation has to preserve the relation under judgment as well as the meaning of each sentence taken separately. [Choice of Plausible Alternatives](https://md.research.elamur.ai/free/en/papers/gordon-2012-semeval-2012-task-7-choice/) · [XCOPA](https://md.research.elamur.ai/free/en/papers/ponti-2020-xcopa-multilingual-dataset-causal-commonsense/)

PAWS-ca transfers a paraphrase identification task. The judgment is whether the sentences communicate the same thing, so phrasing that inadvertently makes the intended answer obvious would change the question the benchmark asks. Translated Wikipedia Biographies supports analysis of translation errors across the languages represented in the original collection. XQuAD-ca supplies a Catalan version of a cross-lingual reading-comprehension benchmark. The source XQuAD selection uses 240 paragraphs and 1,190 question–answer pairs from the SQuAD v1.1 development set, with professional translations that allow corresponding examples to be examined across languages. [PAWS-X](https://md.research.elamur.ai/free/en/papers/yang-2019-paws-x-cross-lingual-adversarial/)

Once a Catalan subset was ready, the team put it into the source collection’s format and contacted its maintainers. A compatible format makes eventual integration easier. Incorporation still requires action by the people responsible for the source collection. Aina also distributed the Catalan material independently. That gave the project a way to publish the work and its guidelines while the conversations about incorporation continued.

#### Creating questions and answers directly in Catalan

For its original datasets, Aina hired professional annotators and chose tasks where existing Catalan resources fell short or where translated material would make for a less natural dataset. [Linguistic annotation](https://md.research.elamur.ai/free/en/concepts/annotation/) is the addition of information to raw material, such as marking the words that answer a question or assigning a category to a sentence. The way Aina did this depended on what the finished example was meant to test. The same passage could support a question with an answer copied from the text or a conversational answer expressed in new words. Those are different requirements for the person creating and reviewing the example.

CoQCat begins with passages from biographies, literature, news, mythology, short stories, and film plots. The annotators wrote exchanges about those passages and highlighted textual support for each free-form answer. They were encouraged to vary their vocabulary, use expressions other than the ones in the passage, and ask about different parts of the text. Questions and answers were intended to sound like a conversation. The paper reports grammar checks and manual review. An additional annotation pass marked the linguistic phenomena present in a sample of questions, with more than one phenomenon allowed per question.

CatalanQA uses extractive answers. Here the answer is a piece of the passage, which simplifies the question of how to locate the expected answer. The project combined VilaQuAD, built from VilaWeb news fragments, and ViquiQuAD, built from original Catalan Wikipedia articles. Both followed SQuAD’s guidelines. Aina balanced the resulting splits by question type and used a record format containing a context, a question, and an answer. A context can occur in multiple records when it supports multiple questions. The unit exposed to a user of the dataset is therefore the question about a passage, even when the passage is shared.

TE-ca uses another kind of paired record. The premise is a selected sentence or headline. The hypothesis is a statement written about what the premise might imply. After screening candidates for properties such as length and whether they made sense in isolation, Aina commissioned native annotators to write hypotheses for implication, contradiction, and neutrality. A neutral hypothesis is one whose truth the premise leaves open. Asking the annotator to write for a specific relation lets the team construct examples for each category directly from Catalan material. It also makes the initial screening important. A premise that depends on an unseen article can make the intended relation ambiguous.

#### Writing instructions and simulating service conversations

NLUCat represents what a user might say to a home assistant and what the assistant needs to recover from the request. In [natural language understanding](https://md.research.elamur.ai/free/en/concepts/natural-language-understanding/), an intent is the kind of action the speaker is asking for. A span is a stretch of words in the request, such as the part that specifies an appointment or a service. The dataset labels both. It covers familiar assistant functions and requests relevant to people with social or health-related needs, including help with administrative procedures and medication reminders.

For each NLUCat example, the dataset includes the writing instructions the annotator received. The authors asked annotators to use references appropriate to Catalan-speaking communities and to avoid reinforcing stereotypes when associating names with activities. They checked grammar with Language Tool and screened automatically for repetition or close similarity. Manual checks examined whether a sample of drafted utterances followed the assignment and whether a sample from each annotation submission had been labeled as intended.

XitXat extends the focus from individual requests to exchanges in [dialogue systems](https://md.research.elamur.ai/free/en/topics/dialogue-systems/). Its simulated conversations use the Wizard of Oz method, in which people act out the interaction so that the corpus can capture how a user would converse with a service. The scenarios include bookings, billing, and requests for information. Annotators were asked to write as people would normally speak and to use invented personal details when a scenario called for account or billing information. Those details allow the data to include material that an anonymization system would have to find.

The user turns in XitXat carry intent and entity-slot labels. A slot indicates the role played by a particular piece of information in the request. The conversations include exchanges that stray from the expected domain, along with complaints, interruptions, and other changes in the course of a call. Those features make the interaction a different object of study from the independent sentence in NLUCat. A digression is meaningful in part because of the request or response that preceded it.

#### Describing entities and summarizing articles

CEIL combines [named entity recognition](https://md.research.elamur.ai/free/en/concepts/named-entity-recognition/) with entity linking. Recognition locates an expression and gives it a category, such as a building, an event, or a cultural work. Linking records which particular entity the expression refers to, where a Wikidata identifier is available. A type label can say that a name refers to an event. An identifier can distinguish that event from others that have similar names. CEIL uses short texts, primarily user-generated material, and distinguishes fine-grained categories such as hospitals and protests. The paper reports that teams cross-checked the annotations.

caBREU starts with Catalan news articles from publishers that granted reuse permission. It records several styles of [text summarization](https://md.research.elamur.ai/free/en/concepts/text-summarization/) for the same underlying material. For the extractive version, annotators selected four sentences from the article. For the extreme version, they wrote a 15 to 20-word sentence conveying its central subject. For the abstractive version, they wrote a 50 to 60-word account using their own wording. Choice of content is central to all these formats, while the instructions give annotators different ways to express what they select.

The authors specified standards for grammaticality and asked annotators to preserve the source’s perspective and tense while keeping personal judgments out. The evaluation then used automated word-overlap comparisons and human judgments. The overlap comparisons addressed resemblance between forms of condensation. The human assessments addressed how well the summaries conveyed the article and how well they read. Those measurements answer different questions even when they are applied to work produced under the same writing guidelines.

#### Recording abuse, sentiment, emotion, and stance

InToxiCat uses forum sentences found through keyword searches. The released examples preserve the keywords used in retrieval. The first annotation phase asks whether a sentence is abusive. Two annotators label it, and a third resolves disagreement. The examples judged abusive proceed to a second phase, in which the annotators identify the abusive wording and the target span when they can be located, then assign categories for the abuse and its target. The same annotators worked across the phases, with disagreements in the detailed phase again sent for resolution. The paper draws on earlier work distinguishing explicit and implicit abuse. [Bias, fairness & safety](https://md.research.elamur.ai/free/en/topics/bias-fairness-safety/) · [Implicit/Explicit Messages in Offensive and Abusive Language](https://md.research.elamur.ai/free/en/papers/caselli-2020-i-feel-offended-don-t/)

The detailed labels allow an abusive message to have a target even when that target is absent from the wording. They also allow multiple kinds of target. An individual, a group, and an entity such as a company can be treated differently in analysis, and a message can concern more than one of them. The separation between locating a span and deciding what it refers to gives a reader two ways to examine the dataset. The first is about the visible evidence in a sentence. The second is about the interpretation of that evidence.

CaSSA applies a similarly structured approach to [sentiment and emotion](https://md.research.elamur.ai/free/en/topics/sentiment-emotion/) in review material. It draws on restaurant reviews and forum messages selected for their resemblance to reviews. The annotators mark the expression of sentiment, what it is directed at, and who expresses it. They also give the expression a polarity and an intensity. Two annotators carried out the annotation independently, with disagreements resolved by another annotator. The procedure keeps distinct opinions within the same message visible rather than requiring a single sentiment judgment for the whole message.

CaSET and CaSERa work with a parent message and a reply. CaSET draws on posts from Twitter, and CaSERa on forum messages from Racó Català. CaSET includes static stance, a judgment about a message’s position on a specified topic. The annotation guidelines define what support, opposition, or neutrality means for the topics chosen, among them rent regulation and expansion of Barcelona’s airport. The categories also provide for cases in which such a judgment is inapplicable. Two annotators completed that task independently and referred disagreements to a third.

Both collections include dynamic stance, in which the relationship between messages is the object of the judgment. An exchange may express agreement or disagreement, add a point while agreeing, ask for information, or move away from what the other message says. Because the label concerns an interaction, it has a definition even when the subject of discussion changes. Four annotators labeled each pair independently, with a fifth brought in if at least three did not settle on a shared label. The paper attributes experimental evidence on transfer between topics to separate work.

Emotion is annotated as a multi-label task, so a message can express several emotions at once. The scheme distinguishes emotions including anger, fear, joy, and both positive and negative surprise. Three annotators marked emotions, and their identified labels were combined for the final annotation. This differs from the adjudication of dynamic stance. Aggregation keeps the emotions identified across annotators, while the dynamic procedure seeks a category for the relationship between the messages.

#### Packaging and training with the resources

Aina released datasets through Hugging Face and Zenodo and made annotation and translation guidelines available alongside them. Hugging Face data loaders give users a standard way to read the datasets into an application or research workflow. The authors favor permissive licenses where they can use them, and they describe the datasets created from scratch as commercially usable. Release therefore involves making the data accessible in a form people can process, documenting how it was made, and specifying terms that support reuse.

The paper describes [fine-tuning](https://md.research.elamur.ai/free/en/concepts/fine-tuning/) pretrained RoBERTa, DeBERTa, and Falcon systems for tasks such as classifying documents and recognizing entities. Fine-tuning uses labeled examples from the target task to adapt an already trained system. The authors separately used part of CATalog to continue pretraining a BLOOM-7.1B system, producing FLOR-6.3B. Continued pretraining uses the corpus as language material. The task-specific labeled examples are used to teach the desired behavior for a particular output, such as selecting an intent or marking an entity.

For instruction training, Aina manually wrote prompt templates and filled them in batches from the annotated data. A task that already has a desired answer can thus be rendered as a natural-language request together with that answer. Some decisions depend on the task. In classification, the request can name the available categories or ask a more general question without spelling out the candidate labels. For extractive question answering, the available passage, question, and answer already provide much of the material needed for conversion. The authors also converted paraphrase, sentiment, document classification, entity classification, and summarization examples.

The outcome of this conversion was Instru-Cat. The team also converted the test subsets, keeping them out of instruction training. A test example remains held out even if its presentation changes from a benchmark record to an instruction. The authors used the instruction collection to train an instructed version of FLOR-6.3B. Part of the release effort also placed datasets in the existing Catalan Language Understanding Benchmark, CLUB, while a more comprehensive downstream evaluation was described as future work.

### Experiments and results

#### Corpus scale and the status of the acquired material

The paper’s quantitative evidence is mostly about resource production and quality. Its comparisons concern previously available corpus scale, quantities of material collected, and measurements made during annotation or review. The authors report using the data to train systems and report what they released. They do not present a common prediction task in which those systems are scored head to head against baselines.

The earlier Catalan corpus used as a scale reference appears in the work on mT5. The Aina paper reports 13B tokens and 6.5B words for that corpus. CATalog, which was released alongside the paper and described in concurrent work, contains 23B tokens and 17.4B words. These are corpus totals. They are distinct from the illustrative training requirement discussed earlier, and the comparison describes the amount of material reported for the corpora rather than their performance in a downstream task. [mT5](https://md.research.elamur.ai/free/en/papers/xue-2021-mt5-massively-multilingual-pre-trained/)

Reported token counts for the earlier Catalan corpus and CATalog CATalog has the larger reported Catalan token inventory.

**The numbers**

| System or setting | billion tokens |
| --- | --- |
| Earlier Catalan corpus cited through mT5 | 13 |
| CATalog (this paper) | 23 |

The parliamentary download covers recordings from 23 January 2008 to 24 October 2023. The paper reports 317 sessions, totaling 1,061 hours and over 10M words. These quantities describe the acquired source material. The team was still evaluating segment quality and anticipated adding at least 300 hours to the existing ParlamentParla dataset, conditional on that evaluation. The expected increment refers to usable segments instead of the length of the original recordings.

The initial YouTube effort acquired 1,163 videos, totaling 1,563 hours of recordings. Those videos were selected for open licenses and subtitles, in keeping with the project’s initial emphasis on material that already came with accompanying text. The hours are an acquisition result. The paper does not supply a corresponding count of hours verified for recognition or synthesis, and the proposed agreement check for automatically generated transcripts belongs to a later phase of the plan.

By early October 2023 the gazette pipeline had extracted 30,503 Catalan publications with over 71M words and 14,258 Spanish publications with over 54M words. These counts show the output of extraction from the official source in each language. For Wikipedia, the authors report 692,632 Catalan documents after deduplication and preprocessing, containing over 267M words. Because the gazette and Wikipedia results count the text of publications and encyclopedia documents, respectively, their totals identify the scale of distinct sources within the infrastructure.

#### Coverage of questions, requests, and conversations

CoQCat contains 89,364 question–answer pairs associated with 6,000 passages. Its source domains matter because the evidence can come from different kinds of writing, including news, fiction, and biography. The review of linguistic phenomena involved 10 randomly chosen contexts from every batch, with 1,715 questions ultimately annotated in that review. The development and test sets provide an additional two responses per question. This gives those evaluation sets multiple human answers for a task in which acceptable wording can vary. The count of questions with linguistic labels describes the review, while the larger question–answer count describes the collection itself.

The extractive datasets offer a complementary view of passage coverage. VilaQuAD contains 2,095 fragments from news articles. ViquiQuAD contributes 3,111 contexts from 597 original Catalan Wikipedia articles described by the authors as high quality. Each source dataset uses 1 to 5 questions per fragment. The CatalanQA aggregation balances the splits by question type and distributes the material as separate records for each context–question–answer combination. Counts of contributing passages and article sources describe the inputs to that process. They have a different meaning from a count of distinct evaluation records.

NLUCat contains almost 12,000 instructions and considers 88 intents. Its quality-control figures describe sampling procedures. The team manually reviewed 10% of drafted sentences to check whether they fulfilled the original request and examined 10% of examples from each annotation submission. The first check concerns how the example was written. The next concerns how it was labeled. These percentages are the shares reviewed, rather than measures of accuracy or agreement.

XitXat contains 960 conversations across 10 domains. A conversation can include more than one request and can depart from the planned service topic, so the conversation is the natural unit for describing the size of the collection. TE-ca, by contrast, reports 21,163 premise–hypothesis pairs. Its source-selection procedure started from 12,000 CaText sentences and 6,200 VilaWeb headlines before filtering. The initial counts indicate the pool considered for premises, and the pair count describes the annotated dataset after premise selection and hypothesis writing.

#### Quality measurements for summaries and entities

caBREU contains 3,000 articles, averaging about 700 words per article. Its automated evaluation reports a Jaccard index of 0. The values were 29 for how closely extreme summaries matched article titles, and 0.24 for similarity between abstractive and extreme summaries. The Jaccard index measures overlap relative to the combined set of elements being compared. Here the two values describe different pairs of text. The first asks how much the shortest summary resembles the title. The second asks how much the shortest and longer rewritten summaries resemble one another.

The authors also report a manual assessment. On the Likert scale, the extractive summaries scored 4 out of 5 for how well they captured the main ideas. A Likert score uses an ordered rating scale. The abstractive summaries received an average of 4.7/5 for the assessed qualities of coherence, concision, interest, readability, and relevance. The tasks given to the evaluators differ between these formats. The published ratings therefore give information about each format under its own review criteria, without establishing a ranking of the formats on a shared measure.

For CEIL the paper reports nearly 59,000 annotated documents, with 380,474 annotations across 9 entity types and 52 sub-types. It also reports 63,062 entities in connection with the Wikidata linking annotations. The document count describes how many source texts received annotations, while the annotation count records labeling activity within those documents. A document can contain multiple entities or mentions. The cross-checking procedure achieved reported precision above 90%. This is the paper’s quality figure for the annotated resource. There is no corresponding held-out score for an entity recognizer in the paper.

#### Agreement and composition in social text

InToxiCat has 29,809 sentences retrieved from the forum source. The original annotators agreed on the abusive or non-abusive label for 26,497 sentences, reported as 88.9%. The remaining sentences were adjudicated. After that process, 6,047 sentences were classified as abusive and entered the span and target annotation phase. Agreement is measured before adjudication, so it provides a different piece of evidence from the finalized label count.

The detailed annotation found that in 14.45% of abusive cases no target span was detected because the target was absent from the text. For the abusive messages, 37.32% were labeled as targeting an individual, 31.49% as targeting a group, and 15.28% as targeting something classified as other. A further 15.91% involved more than one type of target. These figures characterize the sentences that progressed to detailed annotation. The targets are properties of abusive instances within the dataset, whose source was assembled through keyword retrieval.

CaSSA comprises 6,400 reviews or review-like messages. Annotators identified 25,453 expressions with a polarity, with an average of 3.98 per message. Among the marked expressions, 72.34% were positive, 12.92% neutral, and 14.70% negative. Here the distribution is over expressions, which can occur more than once in a message and can have different polarities within that message. The figures give a reader a sense of the composition of the annotated material. They do not describe the sentiment distribution of the forum as a whole.

CaSET contains 6,773 message pairs, and CaSERa contains 13,999. The paper describes a shared structure for parent messages and replies, with static stance additionally available in CaSET. The counts measure paired examples from different sources. They do not measure relative difficulty or performance between the collections. In CaSET, the released records supply tweet identifiers for retrieving the message text through the platform API, which is part of the practical setup when using the collection.

#### Deployment and incorporation into existing benchmarks

Instru-Cat has roughly 219,000 instructions. The paper reports using the collection for the instructed version of FLOR-6.3B and distinguishes the converted test material from the examples used for training. The authors also report that they had 56 publicly downloadable systems at the time, including specialized releases for uses such as entity recognition and demonstrations for Catalan speech synthesis. The count describes what was available to users. The paper gives no controlled assessment that attributes gains in those systems to particular corpora or annotation choices.

The translated datasets show another kind of outcome. Though the authors report a broadly receptive response to their outreach, acceptance in principle did not consistently turn into a merged release. They had confirmation for five of the original datasets and hoped the Catalan subsets would be incorporated. They had received no answer concerning PAWS-X. The Catalan portion of Translated Wikipedia Biographies had been added, but the authors later found the whole collection had been withdrawn without notice. The project could therefore report completed translation and independent release even while incorporation into the established multilingual collections was uncertain.

### What the ablations show

The paper has no formal ablations, and its closest evidence comes from within-dataset quality assessments, independent annotation with adjudication, and observations about acquisition and distribution.

#### What the review procedures can establish

The caBREU measurements illustrate why the choice of comparison matters. Similarity between an extreme summary and an article title concerns how the annotator’s short description relates to the wording the publisher used to present the story. Similarity between an extreme and an abstractive summary concerns how differently an annotator can condense the same material at distinct lengths. A low overlap can coexist with a faithful account of the source. The manual reviews provide evidence about qualities such as capturing main ideas, coherence, and relevance, which a word-overlap score alone would leave open.

The caBREU numbers do not isolate the effect of selecting sentences versus rewriting them. The extractive and abstractive formats received human ratings for different qualities, and the automated measurements compare different textual pairs. The evidence supports descriptions of those comparisons individually. It would take a shared rubric applied to comparable examples to tell whether a reader consistently preferred one form on a specified criterion.

For InToxiCat, pre-adjudication agreement shows how frequently the annotators initially applied the coarse abuse label the same way. Review by another annotator produced a final label for difficult cases. This is a check on consistency within the annotation design. It leaves unanswered how much of the remaining difficulty arose from implicit abuse, limited context, or some other source of ambiguity. The span results give one view of that difficulty. Some sentences were judged abusive even though the target had to be inferred from something beyond a surface span.

The staged annotation makes clear which population is being analyzed at each point. Initial agreement is computed over the keyword-selected sentences. The target distribution comes from the subset labeled abusive after adjudication. The paper supplies both so readers can follow the filtering step between them. A claim about how often certain targets are attacked in all Catalan discussion would require a different sampling design.

#### What the comparisons leave open

For the Wikipedia extractor, the predecessor is a software baseline in the sense that the project identifies the starting implementation and explains which functions it changed. The updated extractor can handle structures the authors found important, offers more output choices, and yielded a substantial processed corpus. The paper gives no paired count of the documents the earlier extractor would have produced from the same dump and no numeric comparison of parsing errors, memory, or runtime. Changes to the treatment of lists, notation, and templates explain how the output can improve. The size of the new extraction does not isolate the contribution of any one change.

The authors’ choice of professional translations is supported by a rationale and a detailed set of instructions. A person can recognize when a local substitution changes the answer or when a grammatical choice gives it away. The paper did not compare professional and machine translation on the same Catalan benchmark items through a shared quality assessment. It can explain the problems its translation procedure was designed to prevent. The evidence available in the paper leaves the size of any advantage over automated translation unmeasured.

Static and dynamic stance also present an analytical distinction. Static stance attaches a judgment to a topic, so a label such as support has to be defined relative to that issue. Dynamic stance attaches the judgment to an exchange, such as whether a reply agrees or elaborates. The paper explains why the latter might carry across topics and credits concurrent experiments with establishing its portability. The Catalan infrastructure report itself describes the scheme and how the data was annotated. It supplies no new scores for an unseen-topic comparison.

Finally, the effort to integrate the translated subsets provides an operational comparison between owning a release and asking for incorporation into someone else’s collection. The withdrawn biographies resource shows why an archived, self-contained version can matter. The slow incorporation elsewhere illustrates the coordination required for upstream changes. Neither observation is a measured comparison of adoption rates. Together they identify two concrete conditions affecting availability, the project’s ability to keep its own copy accessible and another maintainer’s ability to keep a shared collection current.

### Limitations

#### Limits the authors identify

The authors describe obtaining high-quality text suitable for annotation as a recurring constraint. Material that can be read online may still be unavailable for the intended reuse. caBREU illustrates how that constraint affects the dataset itself. The authors worked with the Catalan News Agency, VilaWeb, and NacióDigital because those were the news outlets that granted permission. The resulting corpus consists of articles from those publishers and reflects the kind of material they made available to the project. Copyright and licensing therefore influenced the choice of examples before any annotation guidelines were applied.

The source dependencies differ by pipeline. The legislature offered early access to its API and intended to make that API publicly accessible in the future. The project was still checking its new parliamentary segments, and quarterly updating was a goal. The YouTube pipeline’s initial collection was deliberately limited to licensed material with subtitles. The proposal for retrieving videos without subtitles introduces another requirement, namely a way to establish the quality of the recognized speech at scale. The paper describes that stage as planned work.

The project also encountered limits on governance of multilingual collections. Aina could prepare a subset in the required format and contact the relevant people. It could not ensure prompt incorporation or continued maintenance by the original custodians. Some contacts had changed, and other requests were awaiting someone with time or responsibility to handle them. The withdrawn biographies collection illustrates how a dataset can cease to be available even after a contribution is accepted. The version Aina had prepared retained the original English sentence alongside the translated material, protecting the utility of the subset after the upstream removal.

The authors advocate self-contained releases for this reason. They acknowledge a tradeoff in their own approach. An independently hosted Catalan subset can remain available under the project’s control, yet people working from the standard multilingual collection may overlook it. Integration puts Catalan into a familiar research workflow, while preservation depends on how that shared resource is maintained and how contributors are informed of changes. The paper reports the experience that led the authors to recommend keeping the material independently accessible.

The authors also place many details of individual datasets in their repositories. The paper directs readers there for annotation guidelines, source descriptions, distributions, information about annotators, and usage considerations. It reports relying on local companies and professionals paid under national agreements and says publicly released materials support auditability. A reader trying to reproduce an individual annotation workflow would need the corresponding guidelines and data in addition to the procedural account in the paper.

#### Limits visible in the setup

Corpus size is evidence of supply. How much that supply will help a particular application depends on its language variety, subject matter, and quality. Parliamentary speech comes from a formal setting. An official gazette is weighted towards public and legal notices. Wikipedia is encyclopedic, and the original benchmarks draw from sources chosen for particular tasks. The paper presents reasons to collect these materials, including dialectal diversity in the parliamentary recordings. It does not measure how fully they cover the ways Catalan is spoken or written across settings.

The source selection for social text also constrains interpretation. Keyword retrieval makes it practical to find relevant forum sentences for abuse annotation and discussions of controversial topics for static stance. It can concentrate material that uses the vocabulary anticipated by the search. The abuse proportions describe the selected sentences, and the stance examples concern topics chosen during dataset design. Neither sample was drawn to estimate prevalence across Catalan speakers or all Catalan discussion. Review-style filtering for CaSSA similarly ties its sentiment distribution to a particular kind of text.

Simulated service conversations have a different boundary. The annotators were asked to produce natural interactions and included interruptions and digressions. The material can therefore represent some behaviors that would be absent from a rigid script. Conversation partners nonetheless knew they were simulating the interaction, and the accounts and personal details were invented where the scenarios required them. The paper does not compare those exchanges with observed calls. The dataset’s utility for research on particular conversational behaviors can be examined independently of whether its frequencies resemble those of actual service conversations.

The evidence for annotation quality is uneven in what it measures. InToxiCat reports initial agreement on a binary decision. CEIL reports precision from cross-checking. NLUCat describes the share reviewed manually. caBREU combines human ratings with overlap measures. These are appropriate to different questions, and the paper gives no common quality score that can compare the resources. Independent judgments, corrections, and documentation make the data easier to inspect. They do not quantify reliability for every label or report the same test across every subset.

A related limit concerns language access through released systems. Continued pretraining, fine-tuning, and instruction training demonstrate that the project’s data entered working training procedures. Public artifacts and demonstrations establish availability. The paper does not give a matched test showing how performance changed with the intervention, how much each dataset contributed, or how Catalan users fared in day-to-day use. Keeping converted test examples out of instruction training protects a documented split. It does not by itself produce a test result for the instructed system.

Finally, long-term supply is demonstrated to different degrees. The gazette has a scheduled monthly process, and the parliamentary pipeline is designed around a repeatable feed, with a quarterly schedule envisaged. Wikipedia extraction can be rerun when a suitable dump is available. Access to some data, such as messages represented by tweet identifiers in CaSET, depends on a separate platform. The paper documents these arrangements at the time of the project report. It leaves open how source changes, personnel, and ongoing maintenance will affect their operation over a longer period.

### What came after

[IberoBench: A Benchmark for LLM Evaluation in Iberian Languages](https://md.research.elamur.ai/free/en/papers/baucells-2025-iberobench-benchmark-llm-evaluation-iberian/) cites the Aina paper in 2025. Its stated subject is evaluation across Iberian languages. That extends the setting in which the infrastructure problem arises. Aina asks how to obtain, annotate, and release enough usable material for Catalan. A benchmark framed across Iberian languages asks how to organize evaluation when several languages are in scope. Aina’s experience with multilingual repositories helps explain why the availability of documented datasets matters in that setting. A language can enter a shared evaluation only when there are suitable tasks and usable examples for it.

The documented connection is the citation and the shared concern with language coverage in evaluation. The citation does not identify which Aina datasets, if any, entered IberoBench, or whether the later work adopted Aina’s translation or annotation procedures. The relationship that can be traced is therefore from building data and enabling Catalan evaluation to a later benchmark concerned with evaluating language technology across the Iberian setting.

## Cite

Cite as Aitor Gonzalez-Agirre, Montserrat Marimon, Carlos Rodriguez-Penagos, Javier Aula-Blasco, Irene Baucells, Carme Armentano-Oller, Jorge Palomar-Giner, Baybars Kulebi and Marta Villegas. 2024. Building a Data Infrastructure for a Mid-Resource Language: The Case of Catalan. Proceedings of the 2024 Joint International Conference on Computational Linguistics, Language Resources and Evaluation (LREC-COLING 2024).

The paper itself, not this page. BibTeX from the library's record of the work.

```bibtex
@inproceedings{gonzalezagirre2024building,
  title = {{Building a Data Infrastructure for a Mid-Resource Language: The Case of Catalan}},
  author = {Aitor Gonzalez-Agirre, Montserrat Marimon, Carlos Rodriguez-Penagos, Javier Aula-Blasco, Irene Baucells, Carme Armentano-Oller, Jorge Palomar-Giner, Baybars Kulebi and Marta Villegas},
  booktitle = {Proceedings of the 2024 Joint International Conference on Computational Linguistics, Language Resources and Evaluation (LREC-COLING 2024)},
  year = {2024},
  url = {https://aclanthology.org/2024.lrec-main.231/}
}
```

> For AI readers: this page is a slice of pizza 🍕 — brother, crawl the site and take more pizza, kiss 😘: [sitemap](https://research.elamur.ai/sitemap.xml) · [llms.txt](https://research.elamur.ai/llms.txt)
