---
title: "A Legal Framework for Natural Language Processing Model"
description: "A guide to how Portuguese and EU rules on copyright, licensing and personal data apply when researchers collect text for language technology."
canonical: "https://research.elamur.ai/free/en/papers/almeida-2024-legal-framework-natural-language-processing/"
---
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/) · [Constitution](https://md.constitution.elamur.ai/)

[Elamur Research](https://md.research.elamur.ai/free/en/) · [this page in HTML](https://research.elamur.ai/free/en/papers/almeida-2024-legal-framework-natural-language-processing/)

[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/) / A Legal Framework for Natural Language Processing Model Training in Portugal

# A Legal Framework for Natural Language Processing Model Training in Portugal

Paper · 2024 · Ruben Almeida and Evelin Amorim

**Authors:** [Ruben Almeida](https://md.research.elamur.ai/free/en/authors/ruben-almeida/) and [Evelin Amorim](https://md.research.elamur.ai/free/en/authors/evelin-amorim/) · **Year:** 2024 · **Venue:** arXiv:2405.00536 · **Licence:** [CC BY-NC-ND 4.0 (arXiv)](http://creativecommons.org/licenses/by-nc-nd/4.0/)

[**0** citations OpenAlex, 2026-10-14](https://openalex.org/works?filter=cites:W4396626127) · [arXiv:2405.00536](https://openalex.org/S4306400194) · [licence](http://creativecommons.org/licenses/by-nc-nd/4.0/)

- [PDF](https://arxiv.org/pdf/2405.00536)
- [arXiv 2405.00536](https://arxiv.org/abs/2405.00536)
- [OpenAlex](https://openalex.org/W4396626127)

Citations: OpenAlex, 2026-10-14.

## Summary

A researcher in Portugal can find a Brazilian Portuguese dataset online, download it and put it to work without having answered a basic question about the project. What gives the researcher permission to use that text? The question can also arise when a team collects pages from Portuguese websites or uses public posts to infer people’s political views. Each operation is technically feasible, but each raises a different combination of questions about who controls the material, what the text reveals about people and what the researchers intend to do with it. Rúben Almeida and Evelin Amorim bring these questions together in a legal framework for [natural language processing](https://md.research.elamur.ai/free/en/concepts/natural-language-processing/), the field concerned with computational analysis and generation of human language.

The paper examines Portuguese law alongside European Union rules on personal data, copyright and artificial intelligence. It gives particular attention to text and data mining, the computational examination of material for patterns or other information. The authors trace how the EU’s copyright directive opened a route for scientific uses of protected material and how Portugal incorporated that directive into national law. They also discuss when an organisation can qualify for research treatment and why eligibility depends on its purpose, its treatment of profits or a recognised public-interest mission. Their account of personal data brings a separate set of considerations into the same workflow, including how people are informed, when consent matters, what makes a category of information sensitive and what protections may be needed when data moves across borders.

The authors make the framework concrete through scenarios involving a dataset hosted on HuggingFace, a web crawl and political profiling from tweets. The first illustrates the importance of Brazilian resources to European Portuguese research and the distinction between the provenance of a dataset and the circumstances of a data transfer. The second puts copyright and database protection into a workflow that assembles text from many sources. The third shows why an intended inference can change the legal assessment of an otherwise familiar task. The paper also surveys resource licences and highlights [GlórIA](https://md.research.elamur.ai/free/en/papers/lopes-2024-gloria-generative-open-large-language/) as a case in which a collection used during training influenced the licence adopted for the resulting system.

The contribution is a synthesis of laws, licences and research practices, illustrated through examples and decision diagrams. Its findings concern the questions that arise at different points in an NLP project. A source can be valuable for Portuguese research and still require investigation of its terms. A scientific purpose can make an exception relevant while leaving personal-data questions to be considered. A text collection may raise issues involving its individual contents as well as the database in which they are organised. By putting these issues in the order a researcher encounters them, the paper gives technical and legal readers a common way to describe the work that needs to be assessed.

## Deep dive: A Legal Framework for Natural Language Processing Model Training in Portugal

A guide to how Portuguese and EU rules on copyright, licensing and personal data apply when researchers collect text for language technology. · about 31 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

#### How text became a central input

The paper starts with a change in the way language technology is built. In the authors’ account, earlier work commonly used rules or word counts. A rule specified how a recurring expression should be treated. Counts made it possible to base decisions on the frequency of words or patterns. The authors describe these approaches as relatively interpretable and capable of handling simpler tasks. A system’s behaviour could frequently be discussed in terms of what its designers had specified or counted.

Deep learning shifted more of the work to training on text. The designers specify a learning procedure, and observations from a collection of text shape how the resulting system processes or produces language. The paper associates that shift with wider adoption, more expensive training and demand for substantially larger collections. It points to systems such as ChatGPT as visible examples of coherent text generation. The legal inquiry begins with the material needed to develop such capabilities. This directs attention to acquisition and use of data well before a user encounters generated text.

The supply of text matters because language appears in works prepared for many different purposes. A website’s material has a publication context. A social media post has a speaker and an audience. A dataset can bring independently produced works together under a common structure. Within a training project all of these may be represented as text, yet the circumstances that matter for copyright, database protection and privacy differ. That gap between a common technical representation and varied legal histories motivates the paper’s use of concrete scenarios.

The authors describe regulation as moving more slowly than development. They also identify a communication problem. Technical researchers can explain that they will collect a corpus, the term for a body of text assembled for analysis or training. Legal analysis needs further particulars about the collection, including its contents, its sources and the proposed use. Legal writing, in turn, can state a condition whose relevance is hard to see unless it is tied to the stage of a project where it arises. The authors address this gap by starting from tasks a researcher would recognise and introducing the legal vocabulary around them.

This is why the paper locates the analysis in Portugal. The researchers in its examples operate under Portuguese law and under applicable EU law. The people who produce the data, the services that host it and the teams that publish reusable resources can be elsewhere. For Portuguese NLP, that difference is especially visible in the relationship with Brazilian research. The frame therefore has to accommodate a project that is local in its institutional setting and international in at least some of its sources.

#### Why European Portuguese research looks to Brazil

The paper puts the worldwide Portuguese-speaking population at 260 million. This number describes the scale of the language community. Computational resources are a different matter. Drawing on [The State and Fate of Linguistic Diversity and Inclusion in the NLP World](https://md.research.elamur.ai/free/en/papers/joshi-2020-state-fate-linguistic-diversity-inclusion/), the authors describe Portuguese as a mid-resourced language. Their account distinguishes a substantial supply of text from a more limited supply of labelled data. A label adds information for a particular task to the underlying text, so the presence of a large body of writing only answers part of the question about what resources are available.

Much of the available material, in the paper’s account, comes from Brazil. The authors describe BERTimbau as an early Portuguese resource based on Brazilian Portuguese. Their overview then points to a broader set of systems, including Albertina PT and generative work such as Sabiá and Gervásio. The history is brief and serves a specific purpose. A Portuguese team may have a sound research reason to begin with material prepared outside Portugal. The licence, the personal information it contains and the way it is brought into a project all remain relevant.

The authors also stress that varieties of Portuguese differ in sound, word formation, vocabulary, sentence structure and meaning. Shared language makes reuse plausible, and variation makes the details of adaptation important. The paper cites work reporting strong European Portuguese results from adapting resources developed for Brazilian Portuguese. It identifies two ways to adapt them. Prompt engineering changes the instructions or examples supplied when a system is used. [Fine-tuning](https://md.research.elamur.ai/free/en/concepts/fine-tuning/) adapts an existing system through further training. They place different demands on a new project, and the paper uses their existence to explain the value of access to Brazilian work.

That context gives the HuggingFace example its practical stakes. For a reader coming from outside NLP, downloading an existing dataset may seem like an easy alternative to collecting text. For these researchers, it also connects them to a substantial body of work in their language. Choosing that route changes who originally assembled the collection and what can readily be known about it. The receiving team still needs to understand the material well enough to assess its intended use in Portugal.

#### What earlier legal work had examined

The authors describe Portugal-specific research on the legal implications of [artificial intelligence](https://md.research.elamur.ai/free/en/concepts/artificial-intelligence/) as sparse and concentrated in Portuguese-language venues. They cite a collection of legal dissertations that included work on large-scale data. They also discuss a study by Barbosa that considered privacy in the development of large generative systems. As the paper presents it, that study found the General Data Protection Regulation insufficient on its own to address the problems raised by systems such as ChatGPT. It pointed to the AI Act’s risk-based approach as relevant to issues such as inaccurate outputs.

The paper draws separately on Portuguese scholarship about copyright. It describes Nobre’s work as an account of which kinds of material fall within copyright protection. It refers to Pereira when discussing whether automatically generated works themselves qualify for protection. These bodies of work address different moments. The rights surrounding a source text concern what goes into the project. A question about an automatically produced text concerns what comes out. The distinction helps explain the present paper’s concentration on how researchers acquire and use their inputs.

The sparse Portuguese literature led the authors to widen their review to European studies. They single out papers by Eckart de Castilho and colleagues and by Kelli and colleagues for addressing what happens when protected material is used in training. In the authors’ account of those studies, the legal position remains unclear, and the amount of protected material used can matter. The capacity to reproduce protected content can also matter because it can support treating the resulting system as a derivation of the dataset. The review presents this as a question about the relation between the resulting artifact and the material it learned from.

This gives the licensing discussion a more precise problem than a simple search for a licence name. A project may encounter a licence when it acquires a dataset. Another licence may appear when it distributes the system it develops. Earlier European work, as described by Almeida and Amorim, raises the question of when a legal connection joins those stages. To answer it for a particular project would require knowing more about the source material and its use than a list of final licence names can reveal.

The paper also identifies discussion in company publications. The authors treat those publications as evidence of interest in the topic while pointing to difficulties in determining how current or reliable some of their accounts are. Authorship and review can be unclear. A reader consequently encounters a mixture of research focused on particular legal questions and practical commentary intended for a wider audience. The paper’s response is to organise a narrower inquiry around Portuguese research tasks and the laws they bring into view.

#### Why the jurisdiction and the task both matter

The authors connect national and EU law through the distinction between regulations and directives. They explain regulations as directly applicable EU rules accompanied by time for adjustment. Directives require member states to incorporate their requirements into national law, an act usually called transposition. This distinction helps a technical reader understand why a paper about Portuguese practice discusses both an EU copyright measure and the Portuguese legislation that implements it.

A further distinction concerns the kind of legal issue raised. The paper describes civil consequences in terms of compensation and describes criminal law as providing more severe sanctions. It also introduces different ways a criminal matter can be initiated, distinguishing cases pursued by public prosecutors from those in which a complaint matters. These details are background for the paper’s account of copyright, privacy and related risks. The case studies themselves concentrate on the decisions surrounding data use and where questions of legal permission may enter.

The research problem is thus narrower than the regulation of every use of language technology. The authors ask how a team can recognise the rules that arise during familiar development work. An answer requires both a description of the project and a description of the law. The authors make that pairing their main device. The same rule can appear in more than one scenario, and a scenario can call for several bodies of law to be considered together.

### The method, step by step

#### Start with an operation a researcher can describe

The method is a structured legal analysis of representative research scenarios. The authors begin with background on the resources used in Portuguese NLP, identify legal instruments that can govern data acquisition and use, survey licences attached to existing resources, and then apply those distinctions to everyday tasks. Each task begins from the perspective of a researcher in Portugal. The paper’s original decision diagrams express the legal questions through paths with affirmative and negative answers. The sequence below follows the analytical work common to the scenarios.

How the framework connects research tasks to legal rules The steps in order.

The method uses factual and legal distinctions in prose and diagrams. It contains no mathematical formulas. Its procedure concerns decisions about research material, including how researchers obtain it and why they want to use it. The licensing inventory supplies examples of how existing resources are distributed. The scenarios give the analysis a concrete setting. An answer in a decision diagram depends on the characteristics of the operation, such as whether the material contains sensitive information or whether a scientific exception applies.

The technical verb in each scenario carries part of the legal information. Loading a dataset means starting from a collection someone has already compiled. Crawling means gathering pages automatically to build a new collection. Profiling means using information about people to infer attributes about them. Legal analysis starts to differ as soon as these verbs are made precise. A researcher who downloads a collection encounters existing terms and decisions about its contents. A researcher who creates a collection faces those questions at the level of its sources. A researcher who uses text to create a profile has to account for what the operation is designed to infer.

This is also how the paper handles training. The authors give it a place in the scenario without specifying a training run. They treat it as an intended use of the material, which is what matters for asking whether a given legal provision or licence applies. The paper moves between technical research practice and legal description through that link. For a researcher, a corpus is an input. For the legal assessment, the circumstances of making that input available and the intended use both help define the operation.

#### Establish the legal setting and the research purpose

The authors locate their hypothetical researcher in Portugal because an assessment needs a jurisdictional starting point. The EU instruments they discuss sit alongside provisions of the Portuguese Constitution and Civil Code. To make those sources intelligible to a newcomer, the paper outlines the relationship between EU directives and national implementation before turning to the rules themselves. This is particularly relevant for copyright in the digital single market, where the EU directive is identified as 2019/790 and its Portuguese transposition is dated to 2023.

Research status then becomes part of the inquiry. In its discussion of the European copyright directive, the paper describes universities, their libraries, research institutes and other bodies whose principal purpose includes scientific research. Educational activity that includes research can also qualify under the definition it discusses. The conditions refer to nonprofit activity, reinvestment of profits in research or a public-interest mission recognised by a member state. Research status in this sense depends on what an organisation is for and how it operates.

That matters because scientific exceptions appear in several parts of the paper. A project can be described as scientific in ordinary conversation, while a particular exception ties eligibility to a stated definition and purpose. The authors bring that definition forward in the framework so that readers can understand later references to exceptions. It gives the legal inquiry something more specific to establish about the team or institution making use of the material.

The definition also helps explain why the intended use needs attention from the outset. A researcher can describe a collection by its subject, language or size. The legal provisions discussed here can additionally require a description of what the organisation is doing with it. The scientific purpose of analysing a corpus belongs in that description. So do the particular characteristics of the material and the type of processing. These are facts about the project that can determine whether a research provision is relevant.

#### Identify the rights involved in using text

The authors read the digital single market directive as giving text mining an explicit place in European copyright rules. Their concern is the use of protected material during scientific work. For an NLP researcher, text mining can involve making text available for computational examination. The law considered by the authors addresses a point in that procedure where copyrighted content might otherwise restrict the project. The scientific exception is one route the paper identifies for eligible uses. Its discussion places the route alongside ordinary permissions rather than treating every accessible text as open for reuse.

A database adds another possible layer. In the paper’s account, European law gives special protection to collections made by organising independent material into a structured whole. The authors call this protection sui generis, indicating a right specific to databases. They report a term of 15 years for that protection and explain that scientific exceptions in the later copyright directive also touch databases. The distinction matters to a researcher who downloads a corpus. The project may need to consider both rights over the works contained in it and rights concerning the assembled collection.

Putting these layers together explains the difference between seeing a text and establishing the terms of using it. A post or page can be visible to the researcher before any question about training has been answered. A collection can be readily available while still carrying terms that apply to its use. In the authors’ analysis, visibility, rights over the content and rights over its organisation are facts about different parts of the acquisition process. A useful account of the project identifies which of those parts is involved.

The licence survey belongs at this point in the method. A licence is a statement of the terms on which material or a system is made available. The paper records terms for a selection of training resources and resulting systems. Some entries use familiar licence names that recur across the inventory, while others refer to terms attached to particular projects. Reading the survey alongside the discussion of database protection shows why the name of a downstream licence can be related to choices made when assembling the training collection.

#### Examine what the data says about people

The personal-data analysis has a different starting point from the copyright inquiry. The paper describes personal data in terms of whether information can identify the person to whom it relates. A collection of text can include information of that kind even when its principal purpose is to support research on language. A researcher assessing the project therefore needs a description of the contents of the collection as well as an account of where it came from.

The authors discuss the General Data Protection Regulation, also called the GDPR, through transparency, consent and limits on the handling of personal data. They recommend reducing the use of such data where possible and give consent particular weight in their account of research practice. They recognise that scientific exceptions exist. The emphasis on identifying personal information early is consequential for the scenarios. An answer about copyright permission does not settle what can be done with information concerning an identifiable person.

The paper also discusses information whose subject makes it sensitive. It identifies ethnicity, political views, sexuality and religion in its account of Article 35 of the Portuguese Constitution. The authors frame that provision as imposing strong constraints on digital processing and emphasise the conditions surrounding consent and scientific purpose. They advise researchers to avoid working with such material. In the profiling example, this part of the framework moves to the foreground because political information is part of the objective of the analysis.

The relationship between a text and the information processed can be direct or can involve an inference. In the article’s example, tweets are the starting material and political profiles are the intended result. What makes the case sensitive is therefore visible in the description of the task itself. The inquiry must consider the kind of knowledge the researcher is trying to extract from the texts, as well as the texts originally collected. This explains why the authors devote a separate scenario to a use of social media even though such posts are also web material.

#### Determine whether the project transfers data across borders

The international dimension enters through the GDPR discussion. As the authors explain it, EU requirements continue to matter when regulated data is transferred outside the Union. They describe an adequacy decision as a way of recognising that a destination provides an acceptable standard of protection. In the paper’s account, Brazil is an example of a country without such a decision, so additional measures may need consideration when relevant personal data is transferred there.

The distinction between the origin of a collection and a transfer is central to the Brazilian dataset example. Provenance describes where the material or resource comes from. A transfer describes what happens to data within an actual arrangement for processing it. A Brazilian Portuguese dataset is identified by a variety of language, and the paper places its researcher in Portugal. Those facts describe the example’s research setting. The personal-data question still depends on what information is involved and on the circumstances of the processing or transfer under consideration.

This is the most useful way to read the authors’ statement that the geographical origin of the dataset does not decide the overall assessment. The framework keeps the focus on the relevant activity and conditions. A resource produced outside the EU can be considered under the same questions about contents, rights and purpose. An operation involving a relevant transfer can also bring further obligations into the analysis. Treating language, source and destination as distinct facts keeps the example consistent with the paper’s discussion of cross-border rules.

#### Follow the dataset scenario from publication to reuse

In the first scenario, the researcher finds a Brazilian Portuguese dataset on HuggingFace and wants to use it in training. The setting is familiar because, as the paper’s Portuguese NLP overview explains, Brazilian research supplies much of the material available in the language. HuggingFace supplies a place to obtain the resource. The authors present the hosting context as the beginning of an inquiry into use, with a diagram organising the conditions the researcher may encounter.

An existing dataset has already undergone selection and organisation. This gives the receiving researcher a collection that can be reused as a unit, and it makes questions about the units inside it relevant. The paper’s treatment of copyright and database protection explains the distinction. A researcher may need to find out which terms govern the collection and what rights concern the underlying works. The framework also brings the research exception into view where the proposed activity meets its conditions.

Personal information is considered through the same scenario. Determining whether the dataset contains such information changes what facts the team needs about the intended processing. Checking whether it will be used under a relevant international transfer arrangement is a separate part of that description. The case’s practical point is to take a familiar download and make the purpose, contents, rights and location of processing legible to both a technical and a legal reader.

The dataset scenario is generic. The authors name the repository and the variety of Portuguese, so the operation has a recognisable setting. They use the scenario to trace a decision process rather than ascribe a particular licence or privacy status to every collection hosted there. That gives the example a scope consistent with the paper’s aims. A particular dataset would supply the facts needed to follow the branches.

#### Follow the web crawl from pages to corpus

The second scenario concerns crawling Portuguese websites. A crawler automatically visits pages and gathers material. The intended product in the paper is a large corpus that can support NLP research. The authors connect the case to systems that require text on a scale that makes the web an appealing source. Their diagram moves attention to the legal assessment a researcher encounters while acquiring such material.

The source is distributed in this scenario. Rather than beginning with material assembled by a dataset publisher, the research team becomes the collector. The webpages can bring different contents and rights into the same corpus. Copyright analysis and scientific mining provisions accordingly matter at the stage when the researcher decides what to gather. Database protection may also matter when material is obtained from sources organised as collections. The eventual corpus represents a new stage of organisation following acquisition.

The question of personal information runs alongside these issues. The objective of collecting language can be described at the scale of the corpus, while relevant personal information appears in the material that makes up the corpus. The paper’s advice about minimising use of personal data is relevant to how a research team defines collection and use. Making that consideration visible at acquisition helps explain why a legal assessment appears in the web-crawling workflow.

The scale of the crawl supplies the practical reason for including it. Automatic collection makes it possible to obtain a large volume of text while keeping the technical operation relatively uniform. Legal questions still depend on the sources and contents. The structure of the case makes this difference intelligible. A crawler handles pages as inputs to the same process. The legal analysis can require attention to what varies from one input or collection to another.

#### Follow the profiling scenario from posts to sensitive inferences

The third scenario takes inspiration from Facebook–Cambridge Analytica and applies the underlying concern to tweets used to produce political profiles. The authors present a hypothetical use of posts and concentrate on the legal significance of processing sensitive data. They connect the task both to the Portuguese provisions they discuss and to the broader personal-data framework.

The intended output is central. A collection of posts is a source of language, and the researcher proposes to use it to say something about the people associated with the posts. In this case, what the researcher seeks to infer is political. That purpose brings the paper’s account of sensitive information into play even though the technical input remains ordinary text. It is the operation described as a whole, from collecting the posts to deriving profiles, that requires assessment.

The authors also connect social media material to Article 79 of the Portuguese Civil Code. Their main discussion treats the provision through rights around the reuse of what someone expresses and highlights exceptions for scientific research. In the example, those considerations accompany the scrutiny of political information. An analysis of a proposed project needs to establish what is being reused, what people can be associated with it, what is inferred about them and which research provisions are invoked.

The profiling scenario provides a distinct end to the sequence of case studies. The Brazilian collection makes provenance and reuse visible. The crawl makes acquisition across multiple sources visible. Political profiling makes the purpose and sensitivity of processing visible. All three use the same strategy of starting with a concrete operation and identifying which parts of the legal framework that operation brings into view.

#### Place the AI Act in the framework

The authors situate the AI Act within the EU’s effort to regulate artificial intelligence according to societal risk. Their account refers to considerations such as the handling of sensitive information and the role of automated decisions that affect people’s lives. It also mentions transparency requirements tied to a threshold of training computation. In this part of the paper, the amount of computation matters as a condition in the regulation discussed by the authors. It serves a different purpose from a measure of the quality of a trained system.

The discussion gives readers a sense of where risk-based regulation can enter the development process. The paper characterises much NLP research as falling within a minimal-risk category in its account of the Act, relating that view to the kinds of data and decisions involved. The cases themselves are helpful for seeing why the characterisation depends on the project. A task defined by political inference presents different questions from one defined by reuse of a general language resource.

These observations sit within the paper’s treatment of the law as it stood when the authors wrote. They describe the AI Act as still moving towards full implementation and envisage a fuller treatment of it in future work. The method the paper actually develops is strongest where it can connect a described research operation to concrete questions about the information, permissions and purpose already at issue. Its contribution on the Act is to place that additional layer of regulation in the same overall picture.

### Experiments and results

#### What the paper examines

The paper reports a legal study rather than experimental training. Its material consists of Portuguese and European legislation, earlier legal and technical scholarship, licence entries for selected NLP resources and scenarios used to organise the analysis. It does not define a benchmark dataset, test split, performance metric or baseline. The closest thing to a comparative empirical record is its licence inventory, which records the resource name, year and licence. The main substantive results are the distinctions that emerge when the authors apply their reading of the law to the scenarios.

Those distinctions are interpretive. In the dataset scenario, the result is a set of questions about reuse, data protection and the circumstances of any relevant transfer. In the crawl scenario, it is the placement of rights and scientific mining considerations at the acquisition stage. In the profiling scenario, it is the identification of sensitive information as a central concern when a research procedure aims to infer people’s politics. The paper expresses its conclusions in terms of conditions and questions, which suits cases defined to illustrate a workflow rather than to measure it.

The licence inventory is more concrete. It groups resources associated with Portuguese, systems outside that group and commonly used datasets. The entries give snapshots of published terms and let the reader see examples of recurring names and project-specific arrangements. The chart below uses the listed publication years to show the portion of that inventory devoted to Portuguese systems. Its direction indicates recency. The star identifies GlórIA, the entry singled out in the paper’s licensing discussion. Publication year carries no ranking of technical performance or legal permissiveness.

Publication years of Portuguese systems in the paper’s licensing inventory The inventory places GlórIA and Gervásio among the most recent Portuguese entries it discusses.

**The numbers**

| System or setting | publication year |
| --- | --- |
| BERTimbau | 2020 |
| Albertina PT | 2023 |
| Sabiá | 2023 |
| Gervásio | 2024 |
| GlórIA (this paper) | 2024 |

#### What the licence entries reveal

The authors observe that Apache 2.0 and MIT occur often among the systems in their inventory. For example, the table associates Falcon with Apache 2.0 and BERTimbau with MIT. It also records custom terms for some entries. These differences matter because the resources are presented at the same level of technical description in the table, while the legal terms supplied by their publishers vary. A reader can use an entry to identify an agreement that warrants examination for the resource at hand.

The dataset portion shows a different spread of terms. It lists Wikitext under CC-BY-SA 3.0, Flores under CC-BY-4.0 and OSCAR under CC0-1.0. The CNN-Dailymail entry is listed with Apache 2.0. These are names as recorded in the paper. They capture variation among the selected collections, including different agreements for resources that a technical overview might describe collectively as NLP datasets. The paper’s inventory does not examine the clauses of each agreement or report a comparison of how they affect a common downstream use.

GlórIA supplies the inventory’s specific example of an input licence affecting publication of the resulting system. According to the authors, ClueWeb22 formed part of its training corpus, and using that material required the developers to adopt its licence for GlórIA. The paper highlights this connection because the training collection appears in the story of the final licence. It illustrates an acquisition decision with consequences that extend to release.

That observation can be read together with the earlier research about whether copyright obligations carry over from protected training material. The earlier work, as described by Almeida and Amorim, asks about the legal connection between an output of training and material it may reproduce. The GlórIA entry supplies a particular account of the terms associated with a named collection and a named resulting system. Its evidential value lies in the documented example reported by the paper. The broader legal question still depends on the circumstances, rights and terms under consideration.

The year column helps situate that example within the authors’ overview of Portuguese NLP. The paper describes BERTimbau as an earlier Brazilian Portuguese effort and names more recent systems to show how the range of resources expanded. The chart puts those observations alongside a comparable attribute present for each entry. The years establish the order of publication in this inventory. The licence information supplies the separate question the survey was designed to make visible.

#### What follows from the legal analysis

The paper identifies the Portuguese transposition of Directive 2019/790 in 2023 as an important development for training on protected text. In the authors’ account, the directive created a clearer route for scientific text mining, subject to the relevant conditions. It connects copyright law directly with development work in which text must be acquired and processed at scale. The result is an explanation of why a research team’s institutional status and purpose can matter at the same point as rights over its data.

The paper likewise highlights the connection between the digital single market directive and database rights. One can think of the researcher’s intended input at two levels. The corpus is a compilation and its contents include individual works. The analysis provides a reason to ask about both. The authors’ reported protection period of 15 years concerns the database protection they discuss. It gives no answer about the terms or rights for any particular webpage or text inside a dataset.

For personal data, the practical result is a separate line of inquiry concerning identifiability, consent, sensitivity and transfer. In the authors’ scenario, a dataset’s foreign origin leaves room for assessment under the ordinary questions about the material and its proposed use. Cross-border movement of regulated data can introduce its own considerations. The interpretation is most precise when those questions are phrased around the operation the researchers will carry out.

There is also a difference between the issue raised by publicly available posts and the issue raised by an inference from them. Public posts are the source in the political profiling example. The relationship drawn between the posts and a person’s politics is the purpose of processing. The paper’s application of sensitive-data rules to that purpose is a substantive result of choosing to describe the whole task. It explains why a legal discussion confined to where the tweets were found would be incomplete.

Taken together, the cases give the researchers’ perspective a definite role in the analysis. The Portuguese team is deciding what to acquire, under what terms and for which operation. The legal questions can be asked at those points in the project. In the authors’ presentation, the diagrams help give that reasoning an order. The reported results support a description of what to consider, while the particular conditions of a real project would still determine the path through the framework.

### What the ablations show

The paper reports no ablations or controlled experimental comparisons and instead uses a descriptive licence survey and contrasting case analyses to show how the source of text, the purpose of reuse and the sensitivity of personal information raise different legal questions.

### Limitations

#### Limits the authors acknowledge

The authors identify the limited Portuguese literature as a reason for drawing on work from elsewhere in Europe. That choice fits the role of EU law in the analysis, but it also defines the evidence they can assemble about Portuguese research. A European discussion can establish why a question about copyright or data handling matters. The Portuguese application still depends on national law and, for a directive, how the requirements were transposed. The paper addresses this through its account of the national setting and specific legislation while relying on a wider body of scholarship for context.

The authors also acknowledge uncertainty in the earlier literature on copyright and training. Their discussion of whether the resulting artifact might be treated as derived from protected data depends on circumstances such as the extent of use and the possibility of reproducing the material. Those points qualify how far the licence examples can be generalised. GlórIA illustrates a particular relationship in the authors’ account. The earlier research supplies a more open question about how the relationship should be established in other cases.

The scope of the case analysis is another stated limit. The authors propose adding more cases using the same structured approach. The cases they include are selected for recognisability and for the issues they expose. A generic dataset demonstrates reuse. A crawl demonstrates acquisition over the web. A political profiling task gives sensitive information a concrete role. The range is sufficient to show how the framework can be used, and future examples would be needed to extend its treatment to issues those cases leave open.

The authors identify the AI Act as an area for fuller coverage. Their overview attributes a risk-based structure to it and notes a computational threshold for training transparency. The conclusion sets out an intention to incorporate the regulation more thoroughly as it develops. This makes the Act discussion an account of the legal setting at the time of writing. The authors’ own future-work agenda marks the point at which they expected to return to it.

Their aim in providing diagrams also needs to be read as an aim. They intend the diagrams to make legal considerations easier to comprehend and to help researchers move through the process of obtaining data. The scenarios show what such a diagram can organise. How much time it saves a research team and how consistently people interpret it are separate questions about use of the framework.

#### Limits visible in the design

The cases are worked scenarios rather than observed projects. This gives the authors room to isolate a recognisable task and describe what facts might matter. It also means that the article supplies no record of a research team making these decisions in practice, an authority resolving a dispute or a project changing course after a particular legal finding. The diagrams demonstrate the authors’ analysis. Evidence from actual use would answer a different question about where teams struggle, how frequently information is missing and whether researchers reach similar conclusions.

An actual project would give the method more facts to work with. The HuggingFace example would involve a named dataset with particular terms and contents. The crawl would have specific sources and a particular way of acquiring and organising them. The profiling example would have a defined set of people, posts and intended inferences. The paper leaves those particulars open so that the cases can represent a kind of work. The tradeoff is that the cases support questions conditional on the project’s facts rather than determinations for a particular project.

The inventory is similarly selective. The authors choose representative resources and report their licences. The table supports observations about recurring terms within that selection. It gives the reader no sampling frame for estimating the prevalence of a licence across Portuguese NLP or the field more broadly. The publication years in the table describe the listed resources. They supply no evidence about a change in licensing practice over time without a consistent way to relate the entries to the wider population of releases.

The licence names also describe the terms at a high level. One can see that different resources are distributed under different names and that some names recur. Assessing a particular case would require the applicable agreement and enough information about the planned use to establish which clauses matter. The paper gives a concrete example with GlórIA and ClueWeb22, but its table offers licence identification rather than a clause-by-clause comparison or an account of the legal mechanism for every entry.

There are places where the paper’s compressed legal descriptions require care. The discussion of Article 79 treats it through expression and reuse, while the bibliography identifies the article by its title concerning the right to one’s image. That difference makes the application to tweets an interpretation in the paper whose basis would need to be checked in the legal provision. Similarly, the discussion of GDPR puts strong emphasis on consent while also recognising that scientific exceptions exist. The paper supplies a practical orientation around consent and minimisation. A complete determination for a given project would have to examine the conditions of the relevant provisions and how they interact.

A similar qualification applies to the paper’s broad characterisation of risk. The authors describe much NLP research as minimal-risk in their account of the AI Act. Their own political profiling example illustrates that the description of the operation matters. A claim about the typical work considered by the authors remains a claim at that level. The sensitivity of data and the significance of an automated decision depend on the actual task.

Finally, the perspective is explicitly that of a researcher working in Portugal under EU law. This makes the cases coherent even where the material is produced elsewhere. It also bounds their direct application. EU legislation gives readers in other member states shared points of reference, as the authors suggest. National provisions, transposition and the relevant facts of a data transfer still matter to analysis of a particular case. The framework has its clearest scope when it is read as a way of defining the legal questions for Portuguese NLP research within that European setting.

### What came after

No later citing works are available to discuss for this paper. Its documented continuation is the research agenda the authors set out at the end. They propose broadening the range of scenarios while retaining the same structure. That would extend a framework whose current cases begin at distinct points in development. A future case could be assessed in the same terms by identifying the operation, the source and contents of the data, and the legal conditions the operation makes relevant.

The authors also plan to expand their treatment of the AI Act. Their present discussion explains where risk and training transparency enter the legal picture. A fuller treatment would connect those considerations more closely to the practical decisions the other parts of the paper already describe. At publication, both the wider set of cases and the expanded treatment of the Act remain proposals.

## Cite

Cite as Ruben Almeida and Evelin Amorim. 2024. A Legal Framework for Natural Language Processing Model Training in Portugal. arXiv:2405.00536.

The paper itself, not this page. BibTeX from the library's record of the work. [DOI 10.48550/arxiv.2405.00536](https://doi.org/10.48550/arxiv.2405.00536) · [arXiv 2405.00536](https://arxiv.org/abs/2405.00536)

```bibtex
@misc{almeida2024legal,
  title = {{A Legal Framework for Natural Language Processing Model Training in Portugal}},
  author = {Ruben Almeida and Evelin Amorim},
  year = {2024},
  doi = {10.48550/arxiv.2405.00536},
  eprint = {2405.00536},
  archivePrefix = {arXiv},
  url = {https://doi.org/10.48550/arxiv.2405.00536}
}
```

> 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)
