---
title: "Towards Portparser - a highly accurate parsing system for"
description: "Portparser improves grammatical tagging and dependency parsing for Brazilian Portuguese news using a hand-annotated treebank and…"
canonical: "https://research.elamur.ai/free/en/papers/lopes-2024-portparser-highly-accurate-parsing-system/"
---
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/lopes-2024-portparser-highly-accurate-parsing-system/)

[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/) / Towards Portparser - a highly accurate parsing system for Brazilian Portuguese following the Universal Dependencies framework

# Towards Portparser - a highly accurate parsing system for Brazilian Portuguese following the Universal Dependencies framework

Paper · 2024 · Lucelene Lopes and Thiago Pardo

**Authors:** Lucelene Lopes and [Thiago Pardo](https://md.research.elamur.ai/free/en/authors/thiago-pardo/) · **Year:** 2024 · **Venue:** Proceedings of the 16th International Conference on Computational Processing of Portuguese - Vol. 1 · **Licence:** [CC BY 4.0 (ACL Anthology)](https://creativecommons.org/licenses/by/4.0/)

[Cited by **11** papers in our library of more than 163,000 papers whose bibliographies we read](https://md.research.elamur.ai/free/en/papers/lopes-2024-portparser-highly-accurate-parsing-system/cited-by/) · Proceedings of the 16th International Conference on Computational Processing of Portuguese - Vol. 1 · [licence](https://creativecommons.org/licenses/by/4.0/)

- [Publisher's page](https://aclanthology.org/2024.propor-1.41/)
- [PDF](https://aclanthology.org/2024.propor-1.41.pdf)

## Summary

Portparser analyzes the grammar of Brazilian Portuguese news. It identifies each word’s grammatical category, gives its dictionary form and morphological features, and determines which other word it depends on and what kind of relationship connects them. The authors built the system because mistakes in these analyses can carry over into applications that use them, such as translation, text simplification, and information extraction. They use the shared annotation conventions of [Universal Dependencies](https://md.research.elamur.ai/free/en/concepts/universal-dependencies/) and train on Porttinari-base, a manually annotated collection of newspaper sentences.

The authors first compared UDPipe 1.3, Stanza, and UDPipe 2 using their default settings and the same manually established word boundaries. They repeated the comparison across 10 random divisions of Porttinari-base into training, development, and test sets. UDPipe 2 led on every measure, with statistically significant differences among the methods. Extending training yielded little improvement, while experiments with reduced portions of Porttinari-base showed better average scores when more annotated material was available. The strongest configuration used BERTimbau to supply word representations designed for Brazilian Portuguese.

On the selected Porttinari-base test split, Portparser reached 99.10% accuracy for grammatical categories, 98.74% for morphological features, and 99.40% for dictionary forms. It found the correct grammatical head for 96.08% of evaluated words and found both the head and the relation label for 94.70%. The strongest of the available Portuguese baselines on that same test set scored 87.48% on the latter measure. Those baselines had been trained on different treebanks, so the comparison shows which system performed best on Porttinari-base news without determining how much each design choice contributed.

The errors give a more detailed picture than the aggregate scores. Some rare grammatical relations were especially difficult, while common relations still accounted for many mistakes. The most frequent confusion between relation labels involved two ways of classifying nominal dependents, and the authors also found recurring confusion between clause markers and case markers. They release Portparser, the datasets, and instructions for reproducing the experiments. Their evidence concerns Brazilian Portuguese news, with other genres and a qualitative examination of individual errors left for future work.

## Deep dive: Towards Portparser - a highly accurate parsing system for Brazilian Portuguese following the Universal Dependencies framework

Portparser improves grammatical tagging and dependency parsing for Brazilian Portuguese news using a hand-annotated treebank and BERTimbau. · 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

#### Why grammatical structure matters downstream

A sentence can tell a reader what happened, when it happened, and where. Its words carry that information in part through their grammatical connections. The paper illustrates this with a Portuguese sentence reporting that a car was found, with phrases specifying the time and the place. A person reading the sentence can distinguish the car from the circumstances of the finding. An automatic system needs a way to represent those distinctions if another program is to use them. Identifying which word governs another and naming the grammatical relationship is the task of [dependency parsing](https://md.research.elamur.ai/free/en/concepts/dependency-parsing/).

A word can be recognized correctly in several respects while its place in the sentence remains unclear. A system may identify a word as a noun and recover its dictionary form, yet connect it to the wrong part of the sentence. It may also make the correct connection and give it the wrong label. For an application using the syntactic analysis, those errors have different consequences. An incorrect connection assigns the dependent to the wrong head. An incorrect label misdescribes the function of a connection the system has already found. Either can change the information available to later processing.

The authors describe parsing as useful for [machine translation](https://md.research.elamur.ai/free/en/topics/machine-translation/), text simplification, and [information extraction](https://md.research.elamur.ai/free/en/concepts/information-extraction/). An application can use a syntactic representation directly when deciding what to do with a sentence, or use it as an additional source of information alongside other processing. In either case, an error in the analysis can travel downstream. The authors use that prospect to motivate higher parsing accuracy. Their experiments assess the grammatical annotations themselves, so the evidence concerns the quality of the input these applications could receive.

Building a better parser requires more than selecting software. The scheme used to annotate training sentences has to make difficult linguistic distinctions consistently. The authors point to work on Portuguese annotation problems involving numerals, auxiliaries, and the word *que*. These examples give some sense of what a corpus project must resolve before it can supply reliable targets for automatic prediction. Expanding a hand-annotated collection takes time, and training a system on that material can also be computationally expensive. The experiment therefore addresses a practical question about where to invest these resources, alongside the linguistic question of which distinctions remain difficult.

#### Multilingual coverage and language-specific accuracy

Earlier parsing work described in the paper includes both constituency and dependency approaches to Portuguese. Constituency analysis organizes a sentence into groups of words, while a dependency analysis records grammatical links between words. For Portparser, the latter is the target representation. The wider setting is [multilingual and cross-lingual NLP](https://md.research.elamur.ai/free/en/topics/multilingual-nlp/), where shared conventions make it possible to approach several languages with a common set of outputs. The [CoNLL multilingual parsing shared task](https://md.research.elamur.ai/free/en/papers/zeman-2018-conll-2018-shared-task-multilingual/) exemplifies this approach by bringing languages together under a common task. The paper also cites work that combines resources across languages for [morphological tagging](https://md.research.elamur.ai/free/en/papers/abudouwaili-2023-joint-learning-model-low-resource/).

The authors present those approaches as valuable when linguistic resources are scarce. They also describe studies that concentrate on a particular language or kind of text. Work on Latin combined annotated corpora and explored representations tailored to Latin, as well as alternative parsing methods. In Icelandic, researchers started with constituency annotations and built a process for converting them into dependency annotations. These projects illustrate different ways of obtaining suitable training evidence. The Latin work could draw on multiple existing collections. The Icelandic work had to make existing annotations usable for the intended form of analysis.

A particularly close precedent concerns the grammatical tagging of Brazilian Portuguese. As Portparser’s authors describe it, that study used UDPipe 2 and language-specific word representations and reported accuracy above 99% for part-of-speech tags. Its prediction task ended at the grammatical category. Portparser asks whether an approach centered on Brazilian Portuguese can also supply the dictionary forms, morphological features, and syntactic relations needed for a fuller analysis. The question is consequential because category tagging can already work well while syntactic attachment remains difficult.

The authors also discuss part-of-speech tagging for Norwegian varieties on Twitter. That study provides an example of an application where the language and the kind of writing both matter. It evaluated familiar tools, including Stanza and UDPipe 2, and examined errors quantitatively. The relevance to Portparser lies in the experimental setup. Even when software has already been used for a language, its performance on a particular variety or source of text merits direct measurement. Newspaper sentences define the target setting for Portparser in much the same sense that Twitter text defined the setting of the Norwegian study.

#### The available parsers for Portuguese

Portparser’s authors identify UDPipe 2, Stanza, and UDify among the existing systems relevant to Portuguese. UDPipe 2 uses a graph-based approach to scoring dependencies. Stanza also uses biaffine scoring, with a different way of building representations of the words in a sentence. UDify represents the multilingual, multitask approach described in [Parsing Universal Dependencies Universally](https://md.research.elamur.ai/free/en/papers/kondratyuk-2019-75-languages-1-model-parsing/). The Portparser paper also recalls earlier Portuguese comparisons involving PALAVRAS. These precedents gave the authors tools and published scores to consider, but the reported scores did not all come from the same data or run under identical conditions.

Porttinari-base made a more direct comparison possible. It supplies the manually annotated news sentences on which the authors could train several systems and ask each to predict the same fields on the same held-out material. There were consequently two questions worth keeping apart. The first was which readily available training method worked best with this corpus. The second was how the resulting Portparser configuration compared on these sentences with existing Portuguese parsers trained on other material. The first comparison informs the choice of the underlying method. The second helps a reader understand the practical payoff of building a parser for this particular collection and genre.

### The method, step by step

#### From a sentence to grammatical annotations

Portparser’s unit of work is a sentence whose words have already been identified for analysis. A system performing [tokenization](https://md.research.elamur.ai/free/en/concepts/tokenization/) determines where those units begin and end. In the initial comparison, the authors supplied gold tokenization, meaning the boundaries came from the manual reference. This lets a comparison attribute mistakes to the grammatical predictions being tested without adding disagreement about the boundaries of the words. It also determines the scope of those scores. Starting with raw text and asking the system to find the boundaries would add another decision.

The system predicts several kinds of information for the words it receives. The field UPOS records a broadly applicable grammatical category, such as noun or verb. Assigning that category is [part-of-speech tagging](https://md.research.elamur.ai/free/en/concepts/part-of-speech-tagging/). The lemma field records the dictionary form associated with the word in context, which is the goal of [lemmatization](https://md.research.elamur.ai/free/en/concepts/lemmatization/). UFeats records grammatical features of the particular form, an aspect of [morphology](https://md.research.elamur.ai/free/en/concepts/morphology/). For instance, recovering a verb’s dictionary form and describing the grammatical properties of the inflected form answer separate questions about the same word.

The syntactic fields describe how a word fits into the sentence. HEAD gives the grammatical head a word depends on, and DEPREL identifies its relationship to that head. In the paper’s illustration of the car being found, a reader can see the word categories and lemmas alongside the dependency structure. The figure leaves out morphological features, which the experiments nevertheless evaluate. The example is helpful because a single report supplies words referring to the car and the event as well as words introducing time and location. The categories help identify what those words are doing locally. The dependencies describe how the words work together in the report.

A head prediction and a relation prediction can come apart. A system could identify the word to which a phrase belongs and still describe the phrase’s function incorrectly. Conversely, a suitable relation label can accompany a link to the wrong word. The authors record a metric for the head alone and a stricter one for the head together with the label. This distinction is central both to the choice of the released configuration and to the analysis of errors. It explains why label accuracy on its own can exceed the score for fully correct labeled attachments.

How the authors selected Portparser The steps in order.

#### Creating the training and evaluation sets

Porttinari-base contains 8,418 sentences and 168,080 tokens from Brazilian Portuguese newspapers. Its hand-annotated fields provide examples for learning categories, features, lemmas, and dependencies. A collection of sentences with this kind of syntactic annotation is a [treebank](https://md.research.elamur.ai/free/en/topics/treebanks/). Here the treebank does two jobs. In the training portion, its annotations tell the software what outputs it should learn to predict. In the test portion, the same kind of annotation supplies the reference against which those predictions are judged.

The full-corpus experiments assign 70% of the sentences to training, 10% to development, and 20% to testing. This gives each split 5,893 training sentences, 842 development sentences, and 1,683 test sentences. Training examples supply the evidence from which the parser learns. Development sentences form a separate set available during development. Test sentences provide the held-out examples for scoring a run. The authors generate 10 random assignments and identify them with indices from 0 to 9. Each assignment assigns whole sentences to the sets, so fixed sentence counts coexist with different totals of tokens.

For example, split 3, ultimately used for the released choice, includes 117,952 training tokens, 16,726 development tokens, and 33,402 test tokens. The test portion of split 0 has the same number of sentences and contains 34,244 tokens. Those figures illustrate why the paper reports both units. Sentences determine the split and retain the grammatical context in which the system predicts. Tokens determine how many individual word-level decisions a set presents. Some assignments can be more challenging than others even with equal sentence counts, because they contain different words, lengths, and grammatical constructions.

Repeating the process gives the authors scores for several choices of held-out sentences. A configuration that leads only on a particularly favorable split makes a weaker case for selection than one that performs well across the repeated divisions. For the direct tool comparison, each method receives the same split assignments, so differences on any given split can be read against the same reference sentences. For the corpus-size experiment, the authors draw reduced pools and repeat the division at each size. The resulting test sets also vary with corpus size, a difference that matters when interpreting that experiment.

#### Comparing tools and adjusting UDPipe 2

The first stage trains and evaluates UDPipe 1.3, Stanza, and UDPipe 2 with their defaults. The authors choose this starting point to approximate what a user gets from familiar tools without an extensive search for settings. An earlier paper describes [UDPipe for tokenization, tagging, lemmatization, and parsing](https://md.research.elamur.ai/free/en/papers/straka-2017-tokenizing-pos-tagging-lemmatizing-parsing/). In the Portparser comparison, the shared reference tokenization gives the tools a common input for the later tasks. The authors use the outcome to choose which parsing method to study further.

UDPipe 2 supplies the architecture for subsequent experiments. The paper describes it as graph-based with biaffine attention. In practical terms, a graph-based parser can treat links between candidate heads and dependents as possibilities to score. The term *biaffine* identifies the kind of scoring operation used to combine information about the two words in a candidate relationship. Portparser’s authors use the existing implementation. They report the training settings and the representation choices relevant to reproducing their experiments, and they do not derive a new scoring equation for the architecture.

An epoch is a pass through the training data. The schedule labels in the paper give counts for an initial phase and a final phase. Across the schedules, the initial phase uses a learning rate of 10⁻³ and the final phase uses 10⁻⁴. A learning rate governs the size of the adjustments made during training. The default schedule is 40-20. The description also names 20-20, 60-20, and 80-20 as alternatives, while the results table displays 40-20, 60-20, and 80-20. The displayed settings vary the duration of the initial phase and leave the final phase at the same length.

For the schedule comparison, the batch size is 32, the character representation dimension is 256, and the configured maximum sentence length is 120. The recurrent component is an LSTM of dimension 512, and the setting for the word representation dimension is also 512. The authors identify `bert-base` multilingual uncased as the default BERT representation. These choices define the starting configuration for the reported comparison. The key intervention in that experiment is training duration. The authors then use 80-20 in the experiment that varies the amount of corpus material.

The smaller pools contain 6,314, 4,209, and 2,104 sentences sampled from the original pool of 8,418. As in the full-corpus setting, each has 10 random assignments with the training, development, and test portions following the 70%, 10%, and 20% division. This design changes the amount of labeled data available for development and training together. It asks how the whole setup fares when the underlying annotated collection is smaller, with the reported training schedule held fixed.

#### Supplying representations trained for Brazilian Portuguese

The final training comparison replaces multilingual BERT representations with BERTimbau, identified in the paper as `bert-large-portuguese-cased`. A [word embedding](https://md.research.elamur.ai/free/en/concepts/word-embeddings/) represents a word numerically so that a system can use it as part of its prediction. Here the change gives UDPipe 2 representations produced by a BERT variant designed for Brazilian Portuguese. The motivation is to offer the parser information better suited to the language of its training and test sentences. The manually annotated sentences still supply the grammatical targets.

Using these representations requires preparing an additional set of files. The authors compute embeddings for the tokens in the training, development, and test sets. The resulting `.npz` files accompany the annotated `.conllu` files. The latter contain the corpus material and its reference annotations, while the former supply the computed representations for the corresponding tokens. The parser also needs the embeddings for any text it is going to annotate. Thus the configuration changes both what numerical information reaches the parser during training and what must be prepared when the system is used.

The comparison uses 80-20 epochs for the multilingual configuration and the default 40-20 for BERTimbau. The authors return to the default schedule because their longer runs had brought little improvement. They interpret the schedule comparison as evidence that effective training had already converged by the default setting. After evaluating the runs with BERTimbau, they choose the one with the highest labeled attachment score. The released choice corresponds to split 3. The parser, datasets, and reproduction instructions are made freely available through the authors’ Portparser repository.

#### How the attachment scores work

The paper describes the attachment metrics in words. For the gold-tokenized comparison, the head-only definition can be expressed as follows.

```
UAS = |H| ÷ |T|
```

UAS is the Unlabeled Attachment Score, expressed in the results as a percentage. T is the set of tokens evaluated for attachment, and H is the subset whose predicted HEAD matches the reference. Bars around a set give its number of members. The division sign takes the number of correct heads as a share of the evaluated tokens, and the equals sign states the definition. The relation label plays no role in deciding whether a token enters H.

The labeled version restricts that count to tokens for which the label is right as well.

```
LAS = |H ∩ R| ÷ |T|
```

LAS is the Labeled Attachment Score, also reported as a percentage. H and T retain their meanings, and R is the subset of evaluated tokens whose predicted DEPREL matches the reference at the level scored by LAS. The intersection sign, ∩, selects the tokens belonging to both H and R. The bars count those tokens, the division sign gives their share of T, and the equals sign defines the score. The paper specifies that LAS uses the main relation and ignores subrelations. Even a correct main label contributes to LAS only when its head is also correct.

The other measures concern individual annotation fields. UPOS accuracy checks the predicted grammatical category. UFeats accuracy checks the morphological features, and Lemmas accuracy checks the dictionary form. Keeping these scores distinct lets the experiments show where a change helps. A configuration can recover word forms or grammatical categories very accurately and still make enough attachment errors to affect the usefulness of its syntactic output.

### Experiments and results

#### The comparison on common training data

The first set of experiments asks how the default versions of UDPipe 1.3, Stanza, and UDPipe 2 perform on the same Porttinari-base task. All three have access to the reference word boundaries. The comparison reports the mean and standard deviation across the 10 test splits for each annotation measure. The mean describes performance across the repeated assignments, while the standard deviation describes how much the observed values vary between assignments. These are summaries of the split results. A score for the selected Portparser run later in the paper answers a different question.

Default parsers on Porttinari-base, mean test LAS across random splits UDPipe 2 leads both alternatives on labeled attachment under common training and evaluation conditions.

**The numbers**

| System or setting | LAS % |
| --- | --- |
| UDPipe 1.3 | 86.72 |
| Stanza | 86.79 |
| UDPipe 2 (this paper) | 91.64 |

The head-only scores tell a similar story. Mean UAS is 89.46% for UDPipe 1.3, 88.96% for Stanza, and 93.61% for UDPipe 2. Stanza has the higher labeled score of the two alternatives, whereas UDPipe 1.3 has the higher score for heads alone. This means that the choice of attachment metric can change the order of two alternatives even when they receive the same sentences. UDPipe 2 leads on both tests, giving the authors a consistent basis for taking it into the next stage.

The other fields distinguish the systems in useful ways. The mean UPOS accuracies for UDPipe 1.3, Stanza, and UDPipe 2 are 97.63%, 96.16%, and 98.38%, respectively. Mean UFeats accuracies in that order are 97.50%, 95.19%, and 98.21%. For Lemmas the respective means are 97.80%, 98.59%, and 99.01%. Stanza’s relative strength in this comparison is dictionary-form recovery, where it outperforms UDPipe 1.3. The latter performs better than Stanza for categories and morphological features. Looking only at LAS would hide those differences in the tools’ output.

For each measure, the authors report an analysis of variance, or ANOVA, with p \< 0.0001. The test addresses whether there are differences among the strategies being compared for that measure. The direction of the differences comes from the score averages, where UDPipe 2 leads throughout. The reported LAS standard deviations are 0.2487 for UDPipe 1.3, 0.4189 for Stanza, and 0.1888 for UDPipe 2. The preferred method therefore combines the highest average LAS in this comparison with the smallest reported spread on that measure.

This experiment is more directly informative for the choice of tool than comparing scores from separate publications. For example, the paper notes that Stanza’s original publication gave stronger LAS results for several reported languages than UDPipe 2, while leaving out a Portuguese result. It also reports a later Stanza benchmark of 87.75% LAS for Portuguese news under UD version 2.12. The direct comparison supplies the missing evidence for the authors’ own training and evaluation setup. It is that comparison, with the same corpus and reference token boundaries, that determines which software they retain.

#### Training duration and the amount of annotated data

The epoch schedule comparison produces much closer scores. With the default multilingual representations, mean test LAS is 91.64% for 40-20, 91.75% for 60-20, and 91.74% for 80-20. Mean UAS follows the same ranking, with 93.61%, 93.70%, and 93.67%, respectively. The longest schedule has the highest mean in the other annotation fields. Its averages are 98.42% for UPOS, 98.27% for UFeats, and 99.05% for Lemmas. A reader interested in the recommended configuration therefore has to distinguish the metric of interest from the amount of training.

The strongest individual multilingual LAS is 91.98%, on split 3 at 80-20. On the same split, 60-20 gives 91.97%. The authors prioritize LAS because it asks the system to solve the most demanding combination of grammatical decisions in their evaluation. They therefore retain the split and schedule that yield the highest individual LAS, even though 60-20 has the higher mean. This is a choice about which trained instance to carry forward. The broader schedule comparison concerns how well each setting performs across all the splits.

Changing the amount of annotated data yields a clearer pattern. With 80-20 epochs, the setting with 1,473 training sentences and 210 development sentences reaches 88.78% mean test LAS. With 2,946 training and 421 development sentences, the mean is 89.67%. It rises to 90.80% with 4,420 training and 631 development sentences, and to 91.74% with 5,893 training and 842 development sentences. Each mean comes from the corresponding group of random divisions and its own held-out sentences. The progression shows that the largest data setting performs best on average within this design.

The other measures show the same ranking of the mean scores. The smallest and largest settings, respectively, give mean UAS of 91.56% and 93.67%, mean UPOS of 97.17% and 98.42%, mean UFeats of 96.74% and 98.27%, and mean Lemmas of 97.93% and 99.05%. The authors report p \< 0.0001 for all the measures in the corpus-size analysis. This pattern motivates their use of the full data for the representation comparison. It also shows that the benefit observed in the larger-data setting extends beyond the task of attaching words.

#### Results with representations for Brazilian Portuguese

With BERTimbau and the default schedule, the average test scores across the full Porttinari-base splits are 99.09% for UPOS, 98.83% for UFeats, 99.35% for Lemmas, 95.76% for UAS, and 94.41% for LAS. The corresponding 80-20 multilingual averages are 98.42%, 98.27%, 99.05%, 93.67%, and 91.74%. Both configurations work well on the word-level fields. The clearest separation between their scores is in getting the syntactic structure right and in assigning the right labels to that structure.

UDPipe 2 representation configurations on Porttinari-base, mean test LAS The Brazilian Portuguese configuration yields the higher mean labeled attachment score.

**The numbers**

| System or setting | LAS % |
| --- | --- |
| Multilingual BERT, 80-20 epochs | 91.74 |
| BERTimbau, 40-20 epochs (this paper) | 94.41 |

The repeated splits show how consistently the configuration difference appears. For LAS, the multilingual configuration’s highest run is 91.98%, while the lowest BERTimbau run is 94.04%. Head-only attachment also improves throughout the reported comparison. The authors give p \< 0.0001 for the ANOVA on each annotation measure. They describe the improvement in UAS and LAS as between 2% and 3%, depending on the run. The underlying test scores specify the scales and settings more directly than that approximate description.

The selected BERTimbau run is once again on split 3. Its 94.70% LAS is the highest among the reported runs, and its 96.08% UAS is also the highest in that group. Its accuracy for UPOS is 99.10%, for UFeats 98.74%, and for Lemmas 99.40%. Split 4, for comparison, has the highest BERTimbau UPOS score at 99.19% and scores 94.60% on LAS. A system picked to maximize category accuracy could therefore have been drawn from a different split. The released choice follows the joint head-and-label criterion stated by the authors.

The run selected for release should be read alongside the group averages. Its LAS of 94.70% describes the system that won the authors’ selection procedure on its own test split. The group mean of 94.41% describes the full configuration across varied train and test assignments. Readers assessing the effect of the design change have both pieces of evidence. The repeated comparison shows the pattern across the corpus, and the selected run reports what the released system achieved on its held-out news sentences.

#### Comparison with available Portuguese systems

The final comparison applies other UDPipe 2 systems to the selected Porttinari-base test data. Each had been trained on a different Portuguese treebank distributed with UD version 2.12. CINTIL-UDep draws largely on newspapers and is described in the earlier work on [Universal Grammatical Dependencies for Portuguese](https://md.research.elamur.ai/free/en/papers/branco-2022-universal-grammatical-dependencies-portuguese-cintil/). Bosque-UD is based on the Constraint Grammar conversion of the Bosque corpus. PetroGold consists of revised annotations of academic material in the oil and gas domain. These are available Portuguese systems used as baselines for the target test set.

Available Portuguese parsers on the selected Porttinari-base test split, LAS Portparser leads every baseline on the Brazilian Portuguese news test sentences.

**The numbers**

| System or setting | LAS % |
| --- | --- |
| CINTIL-UDep | 68.21 |
| Bosque-UD | 86.87 |
| PetroGold | 87.48 |
| Portparser (this paper) | 94.70 |

Portparser leads across the other fields as well. Of the external baselines, PetroGold gives the highest UPOS accuracy at 97.40% and the highest Lemmas accuracy at 98.21%. Portparser reaches 99.10% and 99.40% on those fields. For UFeats, the best baseline value is CINTIL’s 90.33%, while Portparser records 98.74%. The baseline that scores best varies across fields. Portparser’s result is distinctive because its accuracy is close across categories, morphological features, and dictionary forms on the same set of sentences.

For selecting heads, Bosque gives the strongest baseline UAS at 91.34%, followed by PetroGold at 90.93%. The order reverses on labeled attachments, where PetroGold scores 87.48% and Bosque 86.87%. Portparser leads by either test with 96.08% UAS and 94.70% LAS. As in the default tool comparison, the reversal illustrates that the head-only and labeled metrics capture different aspects of performance. The authors describe the LAS gain over existing baselines as around 7%. That characterization refers to the reported comparison on the Porttinari-base news test sentences.

The paper also reports 87.04% LAS for the original UDPipe 2 evaluation on Portuguese news, and values near 90% for newer UDPipe 2 systems using UD version 2.12. A prior Portuguese parser comparison reported 85.21% LAS for its strongest system. These figures establish the background against which the authors framed their goal. The common-test comparison gives a more direct measure of what an analyst working with Porttinari-base would gain from the released parser, because Portparser and the baselines faced the same test sentences.

### What the ablations show

#### Longer training made little difference

The epoch comparison is the most direct test of a single training choice. The authors keep the corpus divisions, multilingual representations, and other listed settings fixed while changing the schedule. They report ANOVA p-values of 0.61204 for UPOS, 0.199917 for UFeats, 0.24114 for Lemmas, 0.55917 for UAS, and 0.39045 for LAS. The tests did not establish a clear advantage for a schedule. The average differences are small, and the preferred duration changes with the field being scored.

This result matters because choosing the highest score from a set of runs and choosing the strongest average schedule are different decisions. The 80-20 setting produces the highest individual multilingual LAS, so the authors have a reason to use that run as their multilingual point of comparison. The average results give little reason to recommend that schedule for a routine training run. In the epoch comparison, the standard deviations for LAS are 0.1888 at 40-20, 0.1851 at 60-20, and 0.1871 at 80-20. The available evidence for a change in the average sits alongside that variation.

The cost of extending training was tangible. The authors report more than 200 hours of processing for the 10 runs at 80-20 epochs, with 20 hours per run on Google Colab Pro+ using a TPU. This helps explain the return to 40-20 for BERTimbau. The authors were pursuing the highest score they could obtain for release, yet the preceding experiment suggested that substantially longer training gave little practical advantage. The cost observations belong to their setup, and the accuracy comparison supplies the reason the default schedule remained a credible choice.

The reported scores support an interpretation of diminishing returns over the displayed schedules under the tested conditions. They leave the behavior of the mentioned 20-20 setting unresolved because its scores are absent from the schedule table. They also leave open whether a different representation would respond differently to longer training. The experiment’s strongest conclusion is about the settings actually compared with the original multilingual input. The authors’ decision to shorten the BERTimbau schedule carries that evidence into the next stage as a practical judgment.

#### More annotated material helped across the task

The reduced-corpus experiment changes something different from the schedule. A longer run exposes training repeatedly to the same labeled sentences. A larger pool can expose it to grammatical examples that the smaller pools lack. The paper’s results show a clear ordering of the averages by corpus size, with the direction consistent across grammatical categories, morphology, lemmas, and the two attachment metrics. In this setup the amount of annotated material accounts for a clearer association with accuracy than the extra passes tried in the epoch comparison.

The largest group also has a smaller spread than the smallest one on several measures. LAS has a reported standard deviation of 0.1871 with 5,893 training and 842 development sentences, compared with 0.4910 with 1,473 training and 210 development sentences. The comparable UAS standard deviations are 0.1744 and 0.4697. The smaller-pool results therefore give examples of greater variability as well as lower mean attachment scores. Because the test sets also shrink and change, the observed spread reflects the whole sampling and evaluation design.

The ordering of the means is stronger than an ordering of every run. The authors describe the larger settings as consistently stronger. At the level of individual scores, the ranges of neighboring groups can overlap. For example, a run with 1,473 training sentences and 210 development sentences obtains 92.38% UAS, whereas a run with 2,946 training sentences and 421 development sentences obtains 91.56%. Those runs evaluate different test samples. The figures give a reason to state the main finding in terms of group means and the reported significance test, instead of expecting every larger run to beat every smaller run.

This comparison also leaves the source of the benefit partly open. Training and development sets grow together, and the composition of the test sets changes. The experiment shows that the authors’ training procedure works better on average when it starts from a larger annotated pool. A comparison that changed just the training set, while holding development and test material fixed, would answer a narrower question. The reported comparison is useful for understanding the full setup, including the repeated divisions the authors actually use.

#### Changing representations helped attachment most clearly

The BERTimbau comparison shows that the input representations matter even with the parser architecture retained. The Brazilian Portuguese configuration wins on each reported average and reaches stronger LAS on every split. Attachment moves more clearly than the already strong dictionary-form accuracy. The head-only gains indicate better recovery of syntactic structure. The labeled gains show that the benefit carries through to the stricter measure of successful structure and labeling together.

The contrast also helps explain why the default-parser comparison and the baseline evaluation both matter. The former shows that UDPipe 2 is a strong starting point given the same treebank. The representation experiment shows that two configurations of UDPipe 2 can produce substantially different results on that treebank. The available-parser comparison then places the final configuration alongside Portuguese systems built with other data. Together the experiments show where improvement was observed as the authors moved from a software choice to a released parser trained for a particular corpus.

The representation experiment compares complete configurations. BERTimbau and multilingual BERT differ in language coverage, size designation, and casing, as their names in the paper indicate. The two runs also use different epoch schedules. The earlier schedule comparison makes duration a less persuasive explanation for the observed gap under the multilingual conditions, especially since BERTimbau uses the shorter schedule. The evidence still leaves the contribution of each representation property unresolved. It supports the decision to use BERTimbau in Portparser and shows the size of the gain under the configurations actually tested.

#### Grammatical category errors concentrate in recurring confusions

The authors inspect the selected parser’s predictions on 1,683 test sentences. For UPOS, they count 300 mistakes among 33,402 tokens and report the resulting accuracy as 99.1%. Their error table records both the number of mistakes and the number of reference occurrences for each category. The counts show how much an error contributes to the overall total. The percentages show how difficult the category was when it actually occurred. The two views can identify different priorities within the same set of predictions.

For instance, the catch-all category [other (X)](https://md.research.elamur.ai/free/en/concepts/upos-x/) has a reported error rate of 60%, with 37 mistakes among 62 reference tokens. The parser classifies 26 of those tokens as nouns. [Interjections (INTJ)](https://md.research.elamur.ai/free/en/concepts/upos-intj/) have a 50% error rate, with 3 errors among 6 tokens. These rates expose weak performance on categories that have limited influence on aggregate accuracy. Larger categories can contribute more mistakes at much lower rates. Knowing both measures keeps a rare, difficult distinction visible alongside errors that arise more frequently in practice.

One recurring group links [adjectives (ADJ)](https://md.research.elamur.ai/free/en/concepts/upos-adj/), [nouns (NOUN)](https://md.research.elamur.ai/free/en/concepts/upos-noun/), and [verbs (VERB)](https://md.research.elamur.ai/free/en/concepts/upos-verb/). Reference adjectives are predicted as nouns in 25 cases and as verbs in 25 cases. Reference nouns are predicted as adjectives in 20 cases and as verbs in 4 cases. Reference verbs are predicted as adjectives in 21 cases and as nouns in 7 cases. These directions matter. A confusion matrix shows whether two categories are exchanged in both directions and whether one direction occurs more often. An aggregate error count for adjectives alone would provide neither piece of information.

Another group connects [determiners (DET)](https://md.research.elamur.ai/free/en/concepts/upos-det/) and [pronouns (PRON)](https://md.research.elamur.ai/free/en/concepts/upos-pron/). The parser predicts a determiner for 15 reference pronouns and a pronoun for 6 reference determiners. In the distinction between main verbs and [auxiliaries (AUX)](https://md.research.elamur.ai/free/en/concepts/upos-aux/), it predicts an auxiliary for 11 reference verbs and a verb for 5 reference auxiliaries. There are also 17 cases in which a reference common noun is predicted to be a [proper noun (PROPN)](https://md.research.elamur.ai/free/en/concepts/upos-propn/). The paper locates specific recurring distinctions this way. A qualitative examination would be needed to explain which constructions or contexts produce those mistakes.

#### Relation errors reveal both rarity and structural ambiguity

The relation analysis looks at the label field separately from the complete attachment. The authors report 1,028 DEPREL errors among 33,204 tokens and give label accuracy as 96.9%. The corresponding labeled attachment result is 94.7% as reported in the error discussion. This is consistent with the distinction between the metrics. A token can have a correct relation label while being attached to the wrong head. A label-only count therefore offers a view into one source of attachment failure while leaving head errors to the attachment metrics.

The relations with the highest reported error rates include [dislocated element (dislocated)](https://md.research.elamur.ai/free/en/concepts/ud-dislocated/), [vocative (vocative)](https://md.research.elamur.ai/free/en/concepts/ud-vocative/), [orphan (orphan)](https://md.research.elamur.ai/free/en/concepts/ud-orphan/), and [indirect object (iobj)](https://md.research.elamur.ai/free/en/concepts/ud-iobj/). Their respective error rates are 100%, 67%, 56%, and 37%. The test contains 6 reference dislocated elements, 3 vocatives, 16 orphans, and 19 indirect objects. The authors connect their difficulty to underrepresentation during training. The small test counts make the percentages sensitive to individual examples, while showing that overall LAS can conceal poor coverage of these relations.

Common relations create a different problem. The table counts 162 errors among 1,910 instances of [oblique nominal (obl)](https://md.research.elamur.ai/free/en/concepts/ud-obl/) and 118 errors among 2,511 instances of [nominal modifier (nmod)](https://md.research.elamur.ai/free/en/concepts/ud-nmod/). The reported rates, 8% and 5%, are much lower than those for the rare labels above. Because these relations occur often, their errors still make up a substantial part of the total. The paper also points to appreciable counts of errors for [nominal subject (nsubj)](https://md.research.elamur.ai/free/en/concepts/ud-nsubj/) and [object (obj)](https://md.research.elamur.ai/free/en/concepts/ud-obj/). Frequency alone does not make the distinctions easy.

The direction of the predictions helps sharpen this diagnosis. The parser calls 114 reference oblique nominals nominal modifiers and calls 75 reference nominal modifiers oblique nominals. Both labels describe nominal dependents, but one describes an oblique dependent and the other modification of a nominal. The confusion therefore bears on how a phrase is integrated into the sentence. The authors note that earlier qualitative research on Portuguese UDPipe errors had already identified some errors of this kind. The counts in Portparser show that the distinction remains difficult even after substantial improvement in overall attachment.

The authors likewise find an exchange between [marker (mark)](https://md.research.elamur.ai/free/en/concepts/ud-mark/) and [case marking (case)](https://md.research.elamur.ai/free/en/concepts/ud-case/). There are 19 instances of a reference marker predicted as case and 6 instances in the opposite direction. These labels distinguish marking associated with clauses from case marking of nominals. The pattern identifies a recurrent disagreement about the job a word is doing in context. The counts alone cannot establish whether particular word forms, attachment errors, or difficult annotation decisions account for the disagreements. That question calls for the sentence-by-sentence analysis the authors propose.

The relation confusion analysis focuses on the 16 labels with the largest absolute numbers of mistakes, which account for 885 of the 1,028 reported relation errors. This selection directs attention to ways the total error count could fall, while the per-label rates show where the parser performs poorly whenever a category occurs. The two analyses suggest distinct kinds of remaining work. A rare relation may be a candidate for more examples, as the authors propose. A frequent, reciprocal confusion may benefit from first finding out what the mislabeled sentences have in common.

### Limitations

#### Limits the authors identify

The authors explicitly caution that the baselines were trained on different datasets. The final comparison establishes that Portparser gives the strongest predictions on the selected Porttinari-base news test among the systems evaluated. The baseline difference reflects training material as well as any differences in how the systems were built. A parser developed from the target treebank has access during training to examples drawn from the same collection as the test sentences. The other systems reflect the data and annotation practices of their own treebanks.

The authors give PetroGold an instructive role in this discussion. On Porttinari-base news it achieves 87.48% LAS. The paper cites 94.42% LAS for PetroGold on its own domain in the UDPipe 2 benchmarks using UD version 2.12. The figures concern different test material, and each describes performance in its own setting. They illustrate why the authors want to extend the experiments to Portuguese corpora in other genres and domains. The strength of the released parser outside newspaper text remains an open question.

The paper also treats its error study as quantitative. Counts and confusion matrices show which disagreements recur, which labels have high error rates, and which errors account for substantial shares of the mistakes. The authors propose following up with qualitative examination, tests of additional parsing methods, and data augmentation for underrepresented categories or relations. None of those follow-ups is evaluated in the reported experiments. The analysis identifies candidates for investigation, including rare relations and recurring label exchanges, but leaves their causes and remedies to be tested.

#### Limits visible in the experimental design

The initial experiment supplies gold tokenization. Its results directly characterize grammatical annotation with the reference word boundaries in place. A raw-text application must also decide where the units of analysis are, so its accuracy would need to be measured with that additional step included. Similarly, the uses that motivate Portparser, such as translation and information extraction, are absent from the evaluation. The paper measures whether the parser gives those applications a more accurate grammatical input. It leaves the downstream effect of that improvement unmeasured.

Repeated sentence splits help characterize performance under changes in the composition of the sets. All the splits still come from Porttinari-base, and the same sentence can appear in different roles across assignments. The results therefore describe repetition within one treebank, without providing independent evaluations on several news corpora. The score for the released run also serves a selection purpose. The authors pick the highest LAS on the splits they report. The resulting 94.70% is evidence about that run on its held-out sentences. The 94.41% group average helps a reader judge how representative the winning value is of the broader configuration.

The two larger interventions vary several conditions together. Reducing the corpus alters training, development, and testing material at the same time. Switching to BERTimbau changes the representation and the training schedule, and combines several properties of the representation itself. The main comparisons provide evidence for the tested configurations as packages. They leave exact causal contributions open, including whether the improved attachment came primarily from language-specific training for BERTimbau, casing, size, or some combination. The weak schedule effect with multilingual input makes the representation explanation plausible without settling all of those questions.

The published metrics also leave some aspects of the output unexamined. LAS ignores subrelations, so its strong result applies to the main labels paired with the correct heads. The detailed error tables cover UPOS and DEPREL. They offer less information about the errors behind the lemma and morphology averages or the cases where the head itself was wrong. In addition, the relation-error discussion uses a denominator of 33,204, whereas the UPOS discussion and the split sizes give 33,402 test tokens. The paper does not reconcile those counts. Each reported percentage is best understood with the denominator and task the authors give for it.

Finally, the data illuminate the behavior of the particular implementations and defaults used in the comparison. UDPipe 2 comes out ahead of Stanza and UDPipe 1.3 in this matched setup. The paper does not report a corresponding search over the alternatives’ training schedules and representations. That makes the first experiment a comparison of reasonable starting points for Porttinari-base. The later gains show what the authors achieved by developing the strongest of those starting points further.

### What came after

[Parsing Nheengatu](https://md.research.elamur.ai/free/en/papers/alexandre-2026-parsing-nheengatu-performance-gains-brazilian/) cites Portparser and investigates performance gains for a Brazilian Indigenous language with a Universal Dependencies treebank. It carries forward the question of how to improve grammatical parsing for a particular language and annotated collection. In Portparser, that question is answered through experiments on Brazilian Portuguese news. In the Nheengatu work, the target is a different language and treebank. The citation establishes the connection between the studies. It does not by itself show that the Nheengatu study used Portparser, BERTimbau, or the same training procedure.

[Language Mixture to Develop Accurate Galician Dependency Parsers](https://md.research.elamur.ai/free/en/papers/urbieta-2026-language-mixture-develop-accurate-galician/) cites Portparser while studying how mixtures of languages affect parsing for Galician. That question is related to Portparser’s comparison between multilingual representations and representations designed for Brazilian Portuguese. Portparser varies what representations its parser receives while keeping Brazilian Portuguese as the target for supervised training and testing. The Galician work places the effects of language mixture at the center of its investigation. The citation and the topic establish this connection without identifying a particular experimental result or a component reused from Portparser.

The studies put the original finding in a broader setting. Portparser demonstrates a practical improvement for one target treebank when its authors change the available representations and train on that collection. The later papers pursue accuracy for other languages and ask related questions about the material used to build a parser. How much evidence should come from the target language and how much should come from elsewhere remain questions for each language, treebank, and evaluation setup.

## Cite

Cite as Lucelene Lopes and Thiago Pardo. 2024. Towards Portparser - a highly accurate parsing system for Brazilian Portuguese following the Universal Dependencies framework. Proceedings of the 16th International Conference on Computational Processing of Portuguese - Vol. 1.

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

```bibtex
@inproceedings{lopes2024portparser,
  title = {{Towards Portparser - a highly accurate parsing system for Brazilian Portuguese following the Universal Dependencies framework}},
  author = {Lucelene Lopes and Thiago Pardo},
  booktitle = {Proceedings of the 16th International Conference on Computational Processing of Portuguese - Vol. 1},
  year = {2024},
  url = {https://aclanthology.org/2024.propor-1.41/}
}
```

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