Bertinho: Galician BERT Representations
Paper · 2021 · David Vilares, Marcos Garcia and Carlos Gomez-Rodriguez
Summary
A multilingual system can process Galician, but that leaves open how well it handles the distinctions that matter in Galician sentences. Bertinho asks whether a version of BERT trained on Galician alone can do better. The authors extract text from Galician Wikipedia and use 42 million training tokens to teach BERT to recover words or word pieces from context. They also build a Galician vocabulary that preserves capitalization and can divide unfamiliar words into smaller units. In one example, it separates the pronoun attached to a verb at a point the multilingual tokenizer misses. The authors train Bertinho small, with 6 layers, and Bertinho base, with 12, on a single graphics processor.
The authors then adapt both versions to supervised tasks and compare them with the official multilingual BERT, or mBERT, which already covers Galician. Bertinho base leads the comparisons on the two Galician datasets annotated for dependency parsing, which asks which words depend on which others and how. On CTG-UD, base reaches 78.14 in labeled attachment and 81.88 in unlabeled attachment. The dedicated versions also do well at part-of-speech tagging, where the task is to assign grammatical categories to words. The biggest reported tagging gap between base and mBERT is on the smaller treebank, Galician-TreeGal, with its fine-grained categories. Even Bertinho small beats mBERT across the reported tagging and parsing comparisons.
The ranking reverses for named entity recognition. On the CTAG corpus, mBERT is better at recognizing and classifying names, leading the Galician versions in both precision and recall. The authors find that many of Bertinho base’s errors involve capitalization. They also observe broken spans in personal names and missed organizations whose names resemble common words. A separate comparison tests whether continuing pretraining on longer inputs helps Bertinho base. The extra phase improves its standing among the Galician versions on entity recognition, but the standard base is stronger on both treebanks. The two freely released Bertinho versions show how far a modest Galician corpus can go for tagging and parsing while leaving a different result for names.
Deep dive: Bertinho: Galician BERT Representations
Bertinho tests whether BERT trained on Galician Wikipedia can improve Galician tagging, dependency parsing, and named entity recognition. · about 33 minutes to read
The problem and its context
What changes when a word is read in context
A written word can serve different functions and carry different meanings depending on the sentence. A representation that assigns one vector to each word form gives a later classifier the same starting point for every occurrence. The classifier can still make use of surrounding words if its design allows it. The vector itself, however, does not distinguish the occurrences. Methods such as word2vec, GloVe, and fastText made it practical to learn this kind of representation from large collections of text. As the authors describe the field, initializing a supervised system with such vectors had become common because information learned from unannotated text often helped on annotated tasks. The learned vectors are known as word embeddings.
Contextual representation moves some of the work of interpreting an occurrence into the process that produces its vector. The same written form can receive different vectors in different sentences. This matters to a tagger trying to determine how a word is being used. It matters to a parser deciding which nearby or distant word governs it. In the authors’ account, the shift toward contextual representations helped a range of tasks, including parsing and question answering. The appeal for a language with limited annotated material is that the procedure can learn from ordinary text before it encounters examples tagged by people.
Earlier approaches differed in how they exposed the predictor to context. The authors describe ELMo as learning representations with a recurrent architecture. In next-word prediction, the predictor proceeds in one direction so that the upcoming word remains hidden at the moment it is predicted. BERT changes the prediction problem. It can use words on both sides of a selected position because that position can be hidden. Its original training also included a separate objective concerning whether sentences follow one another. The architecture it uses to exchange information across positions is the Transformer.
BERT’s success led researchers to revisit both its training recipe and its architecture. The paper mentions RoBERTa as an effort to improve the training procedure. It describes DistilBERT and ALBERT as efforts to reduce size or complexity. Other work asked which kinds of linguistic information could be recovered from BERT’s internal representations. Bertinho addresses a practical question in that setting. It uses downstream tasks to see whether a dedicated Galician version gives a useful starting point for supervised training.
Why Galician is a useful test
Galician belongs to the Western Ibero-Romance group and developed from medieval Galician-Portuguese. The paper describes a language spoken by about 2.5 million people in Galicia and adjacent territories, with an independent standard established from the 1970s. Its account also notes that earlier efforts had adapted Spanish and Portuguese tools and resources to Galician. For the Bertinho study, that background gives some context for building a dedicated resource. Galician already had tools, corpora and annotated datasets. The authors identified a gap in contextual representations trained specifically for the language.
The obvious starting point was multilingual BERT. Its official cased release includes Galician among 104 languages, so the comparison is with a system that has seen the language during pretraining. That distinction is important to the research question. The paper is asking what dedicated pretraining brings over and above existing coverage. Multilingual BERT also had an attraction that went beyond coverage. The earlier work the authors discuss found that some representations transfer across languages, including in settings where the system receives no labeled examples in the target language. The same literature raised questions about how evenly that ability was distributed. A system could support many languages while serving some of them considerably better than others. How Multilingual Is Multilingual BERT?
Previous studies described several routes to a dedicated BERT. Projects for Finnish, Spanish and Greek trained BERT-base configurations with about 3 billion tokens. The Portuguese work used about 2.7 billion tokens and tried initializing a larger version from English BERT and a base version from mBERT. Work on Russian also initialized from mBERT and compared that choice with starting from random weights. The paper cites its reduced training time and stronger performance on various tasks as evidence that specialization can proceed by adapting an existing multilingual system. Bertinho explores dedicated pretraining with a Galician corpus and a Galician vocabulary.
The Basque work provided a closer point of comparison for the amount of text and the choice of training schedule. It trained a BERT-base configuration with 225 million tokens and used a schedule that moved from shorter sequences to longer ones. Bertinho had less text and, for the longer sequences, room for a much smaller training batch. These differences matter when carrying a recipe from one language project to another. A schedule described in terms of sequence length also changes which arrangements fit in memory, and a schedule that is practical with one set of resources can require different choices with another.
The paper frames Bertinho around two practical constraints. The first is the amount of available Galician text used for pretraining. The second is the computational cost of processing that text, particularly when inputs get longer. A smaller architecture offers one way to work within those constraints. A shorter pretraining sequence offers another. The authors investigate both, then judge the resulting systems using labeled Galician data. They also note that a Galician RoBERTa release appeared around the same time. It establishes that there was another contemporary approach to Galician pretraining. The benchmark comparison in Bertinho centers on the official multilingual BERT.
The method, step by step
From an encyclopedia to training examples
The work starts with the 2020-02-01 dump of Galician Wikipedia. The authors run WikiExtractor to turn the article content into text, retain the headers as well as the body, and stop there in preparing the raw corpus. This lets them create training examples directly from ordinary writing. The prediction task supplies its own targets. Whenever a word piece is selected for prediction, its original identity is already present in the article. The authors describe encyclopedic text as comparatively clean and well structured, with fewer incomplete or poorly delimited lines than the kinds of noisy crawl data they discuss.
WikiExtractor writes text files of 1MB each. The authors use the first 95% of the articles for training, which gives 42 million tokens. The remaining 5%, reported as 2,5 million tokens, form the pretraining development set. The split is defined over articles, and the token totals describe the text those articles contain. Training examples are used to update the weights. The development material is kept for checking loss and perplexity as training progresses. This held-out Wikipedia material serves a different purpose from the development material used later for tagging, parsing and entity recognition.
Bertinho training and task adaptation
The steps in order.
Choosing the pieces that BERT reads
BERT consumes a sequence of tokens from a finite vocabulary. The tokens can be whole written words or fragments of words. This allows a vocabulary to represent some infrequent forms using familiar pieces. The paper also describes an unknown token, UNK, as a fallback. Continuation pieces conventionally carry a ## marker when the authors display the tokenizer output. The marker indicates that the piece is inside a split form, after its first piece. Deciding which units to include in the vocabulary is part of subword tokenization.
Bertinho small and base use the same cased vocabulary of 30,000 entries. Keeping case means upper- and lower-case spellings can provide different input evidence. The vocabulary size follows the scale of the original English tokenizer. The authors also consider choices made for Spanish and Portuguese and refer to preliminary tests suggesting a workable balance between the number of entries and the linguistic coherence of the pieces. The tokenizer acquires its pieces from text. Their relationship to stems, endings or pronouns is something the authors examine afterward through morphology.
The form dixéronnos, meaning “they told us,” makes the distinction concrete. The multilingual tokenizer identifies dix, which the authors relate to the irregular root of dicir, and then splits the remainder into éro, nno and s. Those later units cut across the boundaries the authors identify. In Bertinho’s segmentation, éron groups the thematic vowel with person morphology, and nos stands by itself as the attached pronoun meaning “to us.” The benefit proposed for the dedicated vocabulary is that a part with a grammatical function can be presented to the encoder as a unit.
The other examples qualify that idea. In camiño, whose meaning is “way” or “path,” the multilingual vocabulary separates iño. The same character sequence occurs as a diminutive ending in carriño, derived from carro. A fragment useful in one word can therefore invite a misleading analogy in another. With the possessive nosos, mBERT also divides a word that Bertinho keeps whole. Here the authors see a plausible reading for the resulting os piece, which corresponds to a masculine plural ending. The first piece, nos, is compatible with a reading as the root, although it also occurs as a pronoun. A linguistic account of the split has to consider what the pieces do in that word. Counting splits alone would miss the difference between dixéronnos and nosos.
Learning to reconstruct selected tokens
The authors use a masked prediction objective. For a sentence of length n, they randomly select 15% of its input tokens. Of the selected tokens, 80% are replaced with [MASK], 10% are replaced with a random vocabulary item, and the remaining 10% keep their original appearance. In each case the training target at the selected position is the original token. For example, a selected position carrying a random replacement still asks the encoder to recover the original piece. The mixture lets the objective cover selected positions that look visibly masked as well as positions that appear to contain ordinary text.
The contextual information available to the predictor can include tokens on either side of the selected position. It can use those cues to make a prediction that depends on the occurrence. For Bertinho, this is the entire pretraining objective the authors describe. They omit the original BERT objective about whether one sentence follows another, following evidence they cite from RoBERTa about the limited benefit of that objective for downstream adaptation. The omission is part of the fixed recipe for both Bertinho architectures.
For optimization, the training recipe specifies the following learning rate.
η = 1×10⁻⁴
Here η denotes the learning rate, which sets the scale of weight updates. The multiplication sign × separates the coefficient from the power of ten, and the superscript ⁻⁴ is the exponent. The paper pairs this rate with linear weight decay of 0.01. The optimizer is Adam, with the following setting.
ε = 1×10⁻⁸
Here ε is the small constant in Adam’s update rule. The multiplication sign again introduces a power of ten, and ⁻⁸ is the exponent. The authors use the Hugging Face Transformers implementation for training.
The authors track perplexity on the Wikipedia development data. In this setting, a lower perplexity means the predictor is assigning greater probability to the original tokens it is asked to recover. It answers a question about the fit to held-out Wikipedia text under the prediction setup. Accuracy at assigning grammatical tags or recovering dependency links is measured later with separately annotated material. The pretraining curves give the authors a way to monitor learning before those task-specific judgments are available.
Fitting the architecture and schedule to one GPU
Bertinho small uses 6 Transformer layers and Bertinho base uses 12. Both produce hidden vectors of width 768 at each layer. A hidden vector is the numerical description that a layer produces for a position and passes on for further processing. Holding its width fixed means that the small version reduces the number of successive layers while keeping the same size for each position’s representation. The versions also retain the same vocabulary and pretraining source.
Input length affects the amount of work in each layer. Self-attention considers pairs of positions as it determines which other tokens contribute to the representation at a given position. The paper describes the complexity of this operation as follows.
O(n²)
Here O denotes the order of growth, n is the number of input tokens, and ² means that n is squared. The expression describes the scaling of self-attention with sequence length. It explains why making each sequence longer can sharply reduce the number of sequences that fit together in a training batch.
As background, the paper reports that BERT’s original training schedule called for one million steps, with 256 sequences per batch and 512 tokens per sequence. It contrasts that with the cited Basque schedule, which keeps the batch size at 256 and trains with sequences of length 128 for 900,000 steps before using length 512 for 100,000 more. The Galician experiments use a single TESLA P40 with 24GB of memory. The authors therefore set both the length and the batch size with the hardware in mind, and they vary the number of training steps as part of the schedule.
For standard Bertinho base, the batch contains 96 sequences of 128 tokens. The authors train for 2M steps, extending the run to compensate for the relatively small batch. This stage takes 30 days. The resulting weights are used both as the standard base version and as the starting point for the optional continuation. The paper refers to the continued version as Bertinho base-2ph.
The continuation changes the input length to 512 tokens. The batch falls to 12 sequences, the number that fits in memory under the longer input setting. The authors report 1.4M additional steps and 4 extra days for this phase. Their figures show held-out perplexity for base during each phase, with the evaluation sequence length changing along with the training sequence length. The continued run tests the practical value of a package of changes under the available hardware. It gives the encoder longer inputs, reduces the batch, and makes further updates to the same weights.
Bertinho small uses the shorter sequence length of 128 throughout. Its batch size is 128, and it runs for 1.5M steps, taking about 22 days. The study also follows development perplexity for this run. Small and base thus differ in depth, batch size and duration. Their comparison shows how the chosen smaller recipe fares against the chosen larger one. Equal hidden width and the shared corpus remove some possible explanations for a difference, while the schedules remain part of each configuration.
Turning the contextual vectors into task predictions
Pretraining makes each input occurrence representable in context. The next stage teaches the encoder and a task-specific classifier to convert that information into the required answers. The paper expresses the input sentence as a sequence.
w⃗ = [w₁, w₂, …, wₙ]
Here w⃗ denotes the whole sentence, and wᵢ is the word at position i. The subscripts ₁ and ₂ mark the initial positions, ₙ marks the last one, and n is the number of words in the sentence for this formulation. The square brackets enclose an ordered sequence and the ellipsis indicates intervening positions. The attention discussion uses n for the encoder’s input tokens, whereas the task formulation is written at the level of the words that receive labels.
The authors cast the supervised tasks as instances of the same mapping.
φ: Wⁿ → Lⁿ
Here φ is the learned mapping, W denotes the word inventory and L the task’s label inventory. The superscript ⁿ denotes a sequence of length n in each space. The arrow → shows the direction of the mapping, from the entire sentence to a sequence with a label for each word. The contents of L depend on the task. A part-of-speech tag, a marker for a position in an entity name, and a parsing label are different kinds of answers even though the classifier attaches them at corresponding positions.
The contextual encoder provides the intermediate representation.
BERT(w⃗) = h⃗
Here BERT is the pretrained encoder, w⃗ is the sentence, and h⃗ is the sequence of contextual vectors. Each h⃗ᵢ is the vector used to predict a label at position i. It represents that position after the encoder has processed the surrounding input. The head acts at a word position, but its input can already contain information about other positions.
At every position, a feed-forward layer produces a score for each possible label. Softmax converts those scores into a distribution.
P(yᵢ = j | h⃗ᵢ) = softmax(W⃗ · h⃗ᵢ + b⃗)ⱼ
Here P denotes conditional probability, yᵢ is the label at position i, and j indexes a candidate label. The bar | reads as “given.” The vector h⃗ᵢ is the contextual representation, W⃗ contains the classifier weights for the candidate labels, and b⃗ gives their biases. The dot · denotes the linear products with the input vector. The subscript ⱼ selects the probability of candidate j from the softmax output.
The paper’s expanded softmax expression displays the weight scores without the bias terms. In that form the normalization is as follows.
P(yᵢ = j | h⃗ᵢ) = e^(W⃗ⱼ · h⃗ᵢ) / ∑ₖ e^(W⃗ₖ · h⃗ᵢ)
Here e is the base of the natural exponential. The vector W⃗ⱼ contains the weights for label j and W⃗ₖ contains the weights for label k. The index k ranges over the K labels in the task, and ∑ₖ adds their exponentiated scores. The slash denotes division by that total. The numerator supplies the contribution of a single candidate, and the denominator accounts for its competitors. With biases included, each score inside the exponent would also include the corresponding entry of b⃗.
The classifier is trained with categorical cross-entropy.
ℒ = −∑ᵢ log P(yᵢ | h⃗ᵢ)
Here ℒ is the loss, yᵢ is the correct label at position i, and P(yᵢ | h⃗ᵢ) is the probability assigned to it. The operator ∑ᵢ sums over the labeled positions, log is the logarithm, and the leading minus sign makes a smaller probability for the correct label contribute a larger penalty. The updates from this loss pass through the task head and the pretrained encoder. Updating the encoder on labeled task data is fine-tuning.
Each complete label is a single choice for the classifier. A detailed part-of-speech tag may express several grammatical features, yet the classifier selects the tag as a unit. Likewise, a parsing label is handled as a single category even if its string encodes structural information. The authors contrast this with prior parsing work that divided labels into components predicted by different output tasks. Here each downstream run learns its own label inventory with a single prediction per position.
Dependency parsing requires a further step because its final output is a tree. During training, the authors take annotated trees and convert them into a sequence of labels the same length as the sentence. They use the bracketing encoding proposed in Viable Dependency Parsing as Sequence Labeling. During prediction, they pass the chosen label sequence through the corresponding decoder to obtain a full tree. The paper reuses the encoding and decoding functions as supplied and leaves the details of the bracket system to the earlier work. The task head still produces per-word decisions. The decoder makes those decisions interpretable as links and relations over the whole sentence.
Experiments and results
What the comparison holds in common
The baseline is Google’s official BERT-Base Multilingual Cased, a 12-layer system that includes Galician. The authors fine-tune it and the Bertinho configurations on the labeled data for each task. Thus a tagging comparison asks how well the alternatives learn the same label inventory from the available examples. A parsing comparison asks the same question after encoding and decoding trees through the common task procedure. The experiment compares starting representations after supervised adaptation. It uses Galician training examples even for the multilingual baseline.
The evaluation draws on CTAG and two Galician treebanks, CTG-UD and Galician-TreeGal. CTAG supplies a technical corpus for fine-grained tagging and entity recognition. The treebanks allow the authors to compare universal and language-specific part-of-speech labels and also evaluate dependency structures. The pretraining data source is common to the Galician versions, yet the downstream evaluation covers different types of annotation and varying amounts of annotated training material.
The corpora have their own training and development arrangements. For CTAG part-of-speech tagging, the authors take 150k tokens from the training material for development. Galician-TreeGal has no supplied development set, so they divide its training material into train and development portions in a 90%/10% ratio. This division leaves an especially small amount of labeled material for updating the weights. The numbers reported for the downstream tasks describe the resulting benchmark evaluations, while those development portions are used during task training.
CTAG tests grammar and the recognition of names
The parent resource, Corpus Técnico do Galego, contains almost 18 million words across technical domains that include legal and scientific texts. CTAG is a manually reviewed portion of it. The paper describes more than 2 million tokens in its gold-standard resources for grammatical tagging and lemmatization and about 200k tokens in the resource for named entities. Those totals characterize the relevant annotated resources. They describe different parts of CTAG and should be kept distinct from the size of the development selection. The grammatical and entity annotations give the authors two different kinds of evidence from the same corpus family. Linguistic annotation
For tagging, the prediction is one of 178 FreeLing categories. Tagging accuracy measures the share of evaluated words for which the predicted label agrees with the annotated label. The labels can demand more detail than broad categories such as noun or verb. On CTAG tagging, the two-phase base and the standard base occupy the leading positions, in that order, followed by Bertinho small and then mBERT. The paper reports a 2.32% advantage for small over mBERT on this task. That comparison makes the compact version relevant even when the larger Galician versions take the lead.
For entity recognition, the system has to find the span of a name and decide what kind of name it is. The categories are person, location, organization and miscellaneous. The BIO scheme represents the beginning and interior of each entity type with B and I, while O marks a word outside any entity. The four types therefore give 9 possible labels in the CTAG recognition task, as stated in the paper. An output that finds part of a name can still fail to recover its full extent. For instance, placing a new beginning tag inside a person’s name changes the predicted spans even if the person category itself is correct.
The entity recognition results are presented in terms of precision, recall and F-score. Precision measures how much of what is predicted agrees with the reference annotation. Recall measures how much of the reference annotation is recovered. The F-score combines the two. Both dimensions favor mBERT on CTAG. The multilingual baseline produces better precision and recall than each Galician version, so the overall advantage comes with gains on both sides of the recognition problem. The authors report that standard base leads small by 1.12 points on recognition, and mBERT leads the strongest Galician version, base-2ph, by 1.98 points. The paper also places the multilingual result above the earlier CTAG result it cites.
CTG-UD tests grammatical categories and dependency links
CTG-UD comes from a portion of Corpus Técnico do Galego processed with automatic parsing and adapted to Universal Dependencies. The authors use the official UD grammatical categories and the more detailed categories based on FreeLing. The paper calls these settings UPOS and FPOS. They use 16 and 194 tags, respectively, on CTG-UD. Accuracy is higher on UPOS, where the classifier selects from fewer and generally broader categories. A comparison of the systems within each inventory is more informative about their relative performance than a comparison of their absolute accuracies across the two inventories.
In CTG-UD parsing, there are two ways to count whether a word’s attachment is right. Unlabeled attachment score, or UAS, checks whether the predicted head is the annotated head. Labeled attachment score, or LAS, also requires the dependency relation to agree. For a word whose governor has been correctly located, a mistaken relation can therefore receive credit under UAS and fail the LAS criterion. That distinction lets the experiment report head selection and the stricter combined judgment separately.
Standard Bertinho base leads on tagging with either inventory and on parsing with either attachment metric. Bertinho base-2ph and small follow, close to each other in the authors’ account, and mBERT comes last. On the CTG-UD evaluation, standard base earns 78.14 LAS and 81.88 UAS. The reported gains over mBERT are 1.66 in LAS and 1.08 in UAS. These gains are the authors’ comparison with the baseline. The scores themselves describe standard base’s absolute performance on the benchmark.
For the CTG-UD tagging settings, the authors give the absolute fine-grained score of 94.60 in their comparison with CTAG and report the gains of standard base over the multilingual baseline separately. That gain is 1.15 for the universal inventory and 2.69 for the fine-grained inventory. The more detailed setting has lower absolute performance, yet gives the dedicated encoder a larger lead. Those claims are compatible because absolute accuracy measures how often the system matches the reference, and the gain measures how far it is ahead of another system facing the same labels.
Galician-TreeGal gives each system fewer labeled examples
Galician-TreeGal comes from the XIADA corpus and has around 25k tokens in all. Its manually revised annotation covers lemmas, part of speech, morphological information and dependency relations. The paper reports less than 14k training tokens for this treebank, compared with approximately 80k for CTG-UD. The authors characterize the small training situation as a form of few-shot learning. In this experiment, that characterization concerns the limited supply of annotated material for fine-tuning, with supervision still provided by the treebank.
Galician-TreeGal uses 16 universal part-of-speech tags and 237 fine-grained tags from the XIADA scheme. Standard Bertinho base leads the comparisons. The strongest part-of-speech accuracy reaches 96.61% under UPOS and 92.70% under FPOS. The best parsing scores are 75.26% LAS and 80.27% UAS. In the authors’ account, standard base is followed by base-2ph, then by small, and then by mBERT. Scores are lower across the systems on this treebank than on CTG-UD. The source of the sentences and the annotation of the treebanks differ as well as the amount of training material.
The gaps over mBERT are larger here. On Galician-TreeGal, the paper gives a gain of 2.34 for UPOS and 5.03 for FPOS. For dependency parsing it gives gains of 3.72 in LAS and 2.60 in UAS. In the charts, each row is a comparison of Bertinho base against the same multilingual baseline on the named treebank. The values measure reported gains over mBERT and should be read separately from absolute accuracy and attachment scores.
Bertinho base versus mBERT on CTG-UD and Galician-TreeGal fine-grained tagging
Bertinho base has a larger fine-grained tagging advantage on Galician-TreeGal.
The numbers
| System or setting | tagging accuracy points over mBERT |
|---|---|
| Bertinho base on CTG-UD | 2.69 |
| Bertinho base on Galician-TreeGal (this paper) | 5.03 |
Bertinho base versus mBERT on CTG-UD and Galician-TreeGal dependency parsing
The labeled attachment gain over mBERT is larger on Galician-TreeGal.
The numbers
| System or setting | LAS points over mBERT |
|---|---|
| Bertinho base on CTG-UD | 1.66 |
| Bertinho base on Galician-TreeGal (this paper) | 3.72 |
Checking whether the differences are distinguishable
The authors supplement the point estimates with tests for tagging and parsing. In tagging, they use a t-test based on sentence-level accuracies. The comparisons pair mBERT with each Galician alternative on the same task. Working with sentence scores allows the test to consider how the performance differences vary across sentences. The paper reports that the differences meet its significance criterion except for base-2ph on Galician-TreeGal UPOS. This exception applies to the comparison with mBERT on that setting.
For parsing, the authors use Bikel’s randomized parsing evaluation comparator. It starts with the observed difference between two systems on an attachment metric. It then swaps the systems’ sentence-level results in randomized arrangements and recalculates the difference. The shuffled comparisons describe what differences can arise when the outputs are treated as exchangeable between the systems. The observed gap is judged against that distribution. All the reported parsing comparisons with mBERT meet the paper’s significance criterion.
p < 0.01
Here p is the p-value for the particular comparison, the symbol < means “less than,” and 0.01 is the threshold the authors report. This test concerns the differences in outputs under the chosen evaluation. It adds information about a gap on the benchmark alongside its size. The comparisons test each Galician version against mBERT and leave the relative ordering among the Galician versions to the reported scores.
What the ablations show
The longer second phase changes several things at once
The most direct comparison of a training choice is within Bertinho base. The standard and continued versions start from the same short-sequence training run. They share the depth, width, vocabulary and source of pretraining text. The question is whether the version obtained by proceeding to longer inputs is a better starting point for the labeled tasks. On CTG-UD and Galician-TreeGal, the short-sequence version leads the continued one. On CTAG, the local ranking goes the other way for fine-grained tagging and for entity recognition among the Galician versions. The continued variant remains below mBERT on entity recognition.
This comparison makes it possible to say how the continuation performed as a complete procedure. Its design leaves open which aspect produced the change. The continuation adds 1.4M steps, changes the input length to 512, and reduces the batch to 12 sequences. Each update therefore uses examples arranged differently from those in the first phase. One possibility raised by the authors is that the GPU’s memory limit forced a batch too small to yield the intended benefit. The study observes the consequence of the longer-input regimen under that limit. The batch-size explanation remains a hypothesis.
The exception for entity recognition is useful to understanding the comparison. A setting that tends to perform worse on grammatical categories and dependency links can still yield the strongest entity recognizer among the Galician alternatives. That is compatible with different tasks drawing on different aspects of the pretrained representation. The paper’s design measures the final predictions after fine-tuning, so it registers the difference without locating the aspect of the representation that changed. In particular, it leaves open whether some feature of the longer inputs was helpful for recognition or whether the additional updates mattered in some other way.
The compact version remains competitive across tasks
The small-versus-base comparison addresses the practical value of reducing depth. Both versions see Galician Wikipedia through the same vocabulary, and they produce hidden vectors of the same width. Bertinho small still beats multilingual BERT on the evaluated tagging and parsing tasks. Standard base is generally stronger, especially on the two treebanks. On CTG-UD, small is close to the continued base version in the authors’ description. These rankings show that a smaller Galician encoder can deliver much of the practical advantage the authors sought even with fewer layers.
There are boundaries to the architectural conclusion. Batch size and training steps differ between the small and base recipes. The resulting scores compare two feasible ways of training and using Galician BERT. An experiment designed to measure depth by itself would have to define and hold constant the exposure to text or the optimization budget, and decide how to handle any hardware constraints that arise as a result. The observed training times give concrete costs for the schedules on the selected GPU. The paper’s result about small is its competitive benchmark performance with a shallower encoder.
Tag inventory and amount of supervision
The authors examine how the gap over mBERT changes when moving from universal to language-specific part-of-speech labels. On CTG-UD, the standard base advantage goes from 1.15 with UPOS to 2.69 with FPOS. On Galician-TreeGal, it goes from 2.34 to 5.03. Because the pattern appears within both treebanks, it supports the authors’ suggestion that a dedicated Galician representation is particularly valuable when the output requires finer distinctions. Within a treebank, much of the sentence and corpus setting is shared, which makes the comparison more informative than comparing arbitrary tagging scores across datasets.
The switch to FPOS also changes what the labels mean. FreeLing and XIADA encode their own grammatical distinctions. A larger inventory can contain categories with fewer supervised examples, and it can require a distinction that UPOS simply leaves out. The paper reports overall accuracy for each inventory. These accuracies leave open whether the increased gain is concentrated in rare tags, particular grammatical distinctions, or a broader change across the inventory. The comparison supports a claim about detailed tagging as configured for these corpora.
The comparison across treebanks adds a second pattern. Standard base has larger gains over mBERT on the smaller Galician-TreeGal in universal tagging, fine-grained tagging, and both parsing metrics. The authors suggest that pretraining is especially consequential when relatively few labeled examples are available to reshape the encoder. Their comparison of the fine-grained resources provides a qualification. The reported advantage on CTAG is 2.56, compared with 2.69 on CTG-UD, though CTG-UD is described as 10 times smaller in that discussion. The reported fine-grained accuracies are 94.60 on CTG-UD and 96.40 on CTAG. The much smaller resource in this pair has a lower score, while the gap between the systems is similar.
The evidence therefore consists of naturally occurring comparisons among datasets and inventories. The two treebanks differ in source and annotation history. The fine-grained inventories differ in meaning as well as in size. A fixed treebank evaluated across nested training subsets could isolate the amount of supervision more directly. In the actual comparisons, a larger advantage occurs when the data are scarce and the labels demanding on Galician-TreeGal. The contrast with CTAG helps show why the observation is best read as a pattern in these settings.
The entity errors put the multilingual advantage in context
The authors consider whether names benefit from information shared across languages. This is plausible for the CTAG categories because a place, person or organization may be mentioned in text in more than one language. The comparison with mBERT cannot assign a portion of the gain to that mechanism. The authors therefore examine the two systems’ outputs and look for more immediate explanations of why particular predictions disagree with the gold annotation.
Their analysis of standard base finds many errors associated with upper- and lower-case variation. Bertinho labels the Galician names for a sealing plan and the civil code as miscellaneous entities where the gold data give them no entity mark. It also identifies a capitalized expression referring to southern islands as a location where the reference gives none. From an evaluation standpoint, these predictions are extra entity spans. Looking at them makes the performance gap more concrete. It includes decisions about which capitalized expressions count as names under this dataset’s annotation, beyond whether the system can spot a recognizable proper name.
Other errors occur at span boundaries. The authors describe a personal name interrupted by the preposition de that Bertinho splits into separate entities. In that case, the system has found personal-name material but drawn its boundaries at the wrong places. For an organization named Cachoeira, a word also glossed as “waterfall,” the system misses the entity. This is a different kind of ambiguity, where the written form is compatible with an ordinary noun and context has to support its use as a name.
The authors also identify an apparent start-versus-interior annotation error for Kiko. That observation matters because the classifier is trained and evaluated against position labels. A reference error at the start of a name can affect how a span is read even when the recognizer has identified the people mentioned. The paper offers individual cases instead of a breakdown assigning a share of the overall gap to each error type. The evidence is strongest about the kinds of decisions that go wrong and the role capitalization plays in the inspected output.
The tokenizer examples demonstrate possible mechanisms
The segmentation examples provide a separate analysis. They show that a Galician vocabulary sometimes exposes a useful unit directly, as with the clitic in dixéronnos. They also show that a split by mBERT can have a plausible morphological interpretation, as in nosos. The latter case matters for the authors’ broader claim. An advantage for language-specific training need not come from preserving every word as one token. One useful property of a sub-word system is precisely its ability to reuse a piece across forms when that piece is linguistically coherent.
The examples connect a design decision to what the encoder receives. They make the case for inspecting Galician segmentation at the level of stems, endings and attached pronouns. The experiment does not train another Galician encoder with the multilingual vocabulary while holding pretraining fixed. The downstream improvements therefore reflect the dedicated recipe as a whole. The tokenization examples show one route by which the input can become more informative. They do not measure how much of the tagging and parsing difference passes through that route.
Limitations
Limits the authors identify
The authors explicitly leave the optimal vocabulary size for Galician unresolved. They give reasons for choosing 30,000 entries and supply examples of how selected words are divided. A vocabulary can balance coverage and linguistic coherence in different ways. More entries can retain more whole forms, and a different inventory can expose other reusable pieces. The paper stops short of systematically varying the size and judging segmentation quality across a representative Galician vocabulary.
The authors also treat the longer-input result as specific to their training conditions. Continuing the base run puts considerable pressure on memory and requires the smaller batch. They propose this as part of an explanation for the downstream rankings and call for more investigation. Their discussion preserves room for a different result when longer inputs can be used with batches of a different size. It also treats final task performance as a separate question from the perplexity tracked during pretraining.
For entity recognition, the paper calls for deeper analysis. It offers case and span examples, along with the possibility that names benefit from information transferred across languages. An inspection can identify that capitalization is implicated in particular decisions without showing how much gain would follow from changing how case is used. It also leaves open whether multilingual information affected some of the same cases. The authors’ proposal for additional work is grounded in the exception that matters most for the paper’s central comparison.
Increasing the amount of Galician text is another direction the authors leave open. They consider collection from the web, while citing earlier work suggesting that a smaller clean corpus can be preferable to a larger noisy one. Bertinho uses one Wikipedia-derived corpus under the stated extraction procedure. Its results answer whether that source was sufficient for the demonstrated gains. They leave unresolved how different sources, additional data, or a different balance of size and cleanliness would affect the same tasks. The authors also identify layer-by-layer comparisons with static embeddings as future work.
Limits visible in the experimental design
The central comparison changes the range of pretraining languages and the tokenizer together, and it uses the official multilingual weights as supplied. The ranking gives a practical answer about which complete system works better for a benchmark. It does not disentangle how the amount of Galician exposure, the distribution of piece boundaries, or the multilingual training history contributed. An ablation of the vocabulary, for instance, would have to compare Galician pretraining runs that differ in vocabulary while sharing the other relevant choices. The tokenization examples provide a reason to ask that question and describe precisely what an answer would need to explain.
The task suite gives stronger evidence about supervised token-level analysis than about Galician capability in general. Tagging, parsing and recognizing names use distinct labels, but all are adapted through a related sequence-classification framework. The benchmarks use existing annotated texts and the study fine-tunes on Galician for every task. The comparisons therefore address performance in that configuration. Performance on other types of text, on other supervised tasks, or in cross-language settings with no Galician supervision would require a different evaluation.
There are also differences in how the references were produced. CTG-UD comes from automatic parsing and conversion. Galician-TreeGal has manually revised annotation, and CTAG recognition has conventions that affect whether certain capitalized phrases count as entities. A benchmark score measures agreement with the corresponding reference under its own conditions. It incorporates the corpus content and annotation history along with the system’s linguistic decisions. This helps explain why cross-corpus score differences are harder to interpret than scores from systems compared within one corpus.
The significance tests apply to the outputs the study examines, using sentence-level accuracies or shuffled sentence scores. They address variability across evaluation sentences. They do not give an estimate of how rankings vary if the authors rerun pretraining or repeat fine-tuning with new random choices. The study’s measured training times likewise apply to the reported schedules on the identified GPU. The smaller architecture uses fewer layers, but the paper gives no operating measurements for downstream inference that would quantify the cost difference under deployment conditions.
Finally, the discussion of the smaller treebank gives an interpretation of why pretraining could matter more with scarce labeled data. The reported differences remain consistent with other explanations because dataset size changes together with source and annotation. The larger fine-grained tagging gains stand on the settings the authors actually ran. Claims about how the gain would vary under a controlled change to the number of examples remain open.
What came after
Later studies cite Bertinho while looking at other ways to build and adapt systems for Galician. One extends the question of language coverage and adaptation to judging the readability of texts. The other stays with dependency parsing and asks about the language mixture used to develop a Galician parser. Their research questions connect to different parts of Bertinho. In each case, the citation places the Galician-specific pretraining study in the background of a new comparison.
Multilingual Fine-tuning and Prompting for Galician Readability Classification studies automatic readability classification in Galician. Its title identifies two approaches under comparison, multilingual fine-tuning and prompting. Bertinho used fine-tuning to learn outputs attached to the words of a sentence. Readability classification shifts attention to the category assigned to a text. The connection is that both studies ask how to obtain a useful Galician predictor from a pretrained system, with the later study setting the comparison at the level of text classification and including prompting as an alternative way of eliciting a decision.
That shift changes what counts as evidence of a useful representation. In a tagging benchmark, each evaluated word supplies a decision about a grammatical category. A readability classifier has to deliver a judgment about the text being classified. Strong performance on the former gives a reason to consider a representation for Galician, but the classification comparison concerns a separate output and adaptation problem. The later work cites Bertinho in that broader setting. Its title specifies the methods and task under study. It leaves the exact role of Bertinho’s weights and the comparative outcome unspecified.
Language Mixture to Develop Accurate Galician Dependency Parsers takes up a downstream task tested directly in Bertinho. It explores the effect of language mixture on the development of Galician dependency parsers. In Bertinho, the authors compare a Galician-pretrained encoder with an already trained multilingual baseline and then fine-tune for parsing on Galician treebanks. The later research question gives language mixture an explicit place in a study centered on the parser. It asks about a design choice that Bertinho’s comparison of complete encoders could only address indirectly.
The distinction matters because evidence that a dedicated encoder leads one multilingual baseline on Galician parsing leaves a range of possibilities for the use of multiple languages. The earlier study identifies an advantage for its specific Galician pretraining recipe, with a larger gap on its smaller treebank. A language-mixture study can address how multilingual material figures in parser development under its own settings. The later study’s title establishes that this is what it investigates. It does not establish which mixtures it used, whether it directly reused the Bertinho encoder, or what attachment scores it obtained.
Together these works keep the Galician task itself in view while varying different parts of the problem. The readability study changes the target and broadens the comparison of adaptation methods. The parser study retains the syntactic target and investigates the mixture of languages. Bertinho supplies an earlier benchmark result for a dedicated Galician approach and a concrete example of why the most effective choice can depend on the task.
Cite
Cite as David Vilares, Marcos Garcia and Carlos Gomez-Rodriguez. 2021. Bertinho: Galician BERT Representations. arXiv:2103.13799 · Procesamiento del Lenguaje Natural. 66 (2021) 13-26.
@misc{vilares2021bertinho,
title = {{Bertinho: Galician BERT Representations}},
author = {David Vilares, Marcos Garcia and Carlos Gomez-Rodriguez},
year = {2021},
doi = {10.26342/2021-66-1},
eprint = {2103.13799},
archivePrefix = {arXiv},
url = {https://doi.org/10.26342/2021-66-1}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/vilares-2021-bertinho-galician-bert-representations/
References
- Agerri, R., X. Gómez Guinovart, G. Rigau, and M. A. Solla Portela. 2018. Developing new linguistic resources and tools for the Galician language. In Proceedings of the Eleventh International Conference on Language Resources and Evaluation (LREC 2018), Miyazaki, Japan, May. European Language Resources Association (ELRA). OpenAlex ↗ · Scholar ↗
- Agerri, R., I. San Vicente, J. A. Campos, A. Barrena, X. Saralegi, A. Soroa, and E. Agirre. 2020. Give your text representation models some love: the case for Basque. In Proceedings of the 12th Language Resources and Evaluation Conference, pages 4781–4788, Marseille, France, May. European Language Resources Association. our card
- Bengio, Y., R. Ducharme, P. Vincent, and C. Jauvin. 2003. A neural probabilistic language model. Journal of machine learning research, 3(Feb):1137–1155. our card
- Bojanowski, P., E. Grave, A. Joulin, and T. Mikolov. 2017. Enriching word vectors with subword information. Transactions of the Association for Computational Linguistics, 5:135–146. our card
- Cañete, J., G. Chaperon, R. Fuentes, and J. Pérez. 2020. Spanish pre-trained BERT model and evaluation data. In Practical ML for Developing Countries Workshop (PML4DC) at ICLR. Learning under limited/low resource scenarios. OpenAlex ↗ · Scholar ↗
- Collobert, R. and J. Weston. 2008. A unified architecture for natural language processing: Deep neural networks with multitask learning. In Proceedings of the 25th international conference on Machine learning, pages 160–167. OpenAlex ↗ · Scholar ↗
- Collobert, R., J. Weston, L. Bottou, M. Karlen, K. Kavukcuoglu, and P. Kuksa. 2011. Natural Language Processing (Almost) From Scratch. Journal of Machine Learning Research, 12:2493–2537. our card
- Dai, A. M. and Q. V. Le. 2015. Semi-supervised sequence learning. In Advances in neural information processing systems, pages 3079–3087. our card
- Devlin, J., M.-W. Chang, K. Lee, and K. Toutanova. 2019. BERT: Pre-training of deep bidirectional transformers for language understanding. In Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long and Short Papers), pages 4171–4186, Minneapolis, Minnesota, June. Association for Computational Linguistics. our card
- Ettinger, A. 2020. What BERT is not: Lessons from a new suite of psycholinguistic diagnostics for language models. Transactions of the Association for Computational Linguistics, 8:34–48. our card
- Freixeiro Mato, X. R. 2003. Gramática da Lingua Galega IV. Gramática do texto. A Nosa Terra, Vigo. OpenAlex ↗ · Scholar ↗
- Garcia, M. and P. Gamallo. 2010. Análise Morfossintáctica para Português Europeu e Galego: Problemas, Soluções e Avaliação. Linguamática, 2(2):59–67. OpenAlex ↗ · Scholar ↗
- Garcia, M., C. Gómez-Rodríguez, and M. A. Alonso. 2016. Creación de un treebank de dependencias universales mediante recursos existentes para lenguas próximas: el caso del gallego. Procesamiento del Lenguaje Natural, 57:33–40. OpenAlex ↗ · Scholar ↗
- Garcia, M., C. Gómez-Rodríguez, and M. A. Alonso. 2018. New treebank or repurposed? on the feasibility of cross-lingual parsing of romance languages with universal dependencies. Natural Language Engineering, 24(1):91–122. OpenAlex ↗ · Scholar ↗
- Guinovart, X. G. and S. L. Fernández. 2009. Anotación morfosintáctica do Corpus Técnico do Galego. Linguamática, 1(1):61–70. OpenAlex ↗ · Scholar ↗
- Guinovart, X. 2017. Recursos integrados da lingua galega para a investigación lingüística. Gallaecia. Estudos de lingüística portuguesa e galega, pages 1045–1056. OpenAlex ↗ · Scholar ↗
- IGE. 2018. Coñecemento e uso do galego. Instituto Galego de Estatística, http://www.ige.eu/web/mostrar_actividade_estatistica.jsp?idioma=gl&codigo=0206004. OpenAlex ↗ · Scholar ↗
- Jiang, N. and M.-C. de Marneffe. 2019. Evaluating BERT for natural language inference: A case study on the CommitmentBank. In Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing (EMNLP-IJCNLP), pages 6086–6091, Hong Kong, China, November. Association for Computational Linguistics. our card
- Karthikeyan, K., Z. Wang, S. Mayhew, and D. Roth. 2020. Cross-Lingual Ability of Multilingual BERT: An Empirical Study. In International Conference on Learning Representations (ICRL 2020). our card
- Kingma, D. P. and J. Ba. 2015. Adam: A method for stochastic optimization. In 3rd International Conference on Learning Representations (ICLR 2015). arXiv preprint arXiv:1412.6980. our card
- Kitaev, N. and D. Klein. 2018. Constituency parsing with a self-attentive encoder. In Proceedings of the 56th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 2676–2686, Melbourne, Australia, July. Association for Computational Linguistics. our card
- Koutsikakis, J., I. Chalkidis, P. Malakasiotis, and I. Androutsopoulos. 2020. GREEK-BERT: The Greeks visiting Sesame Street. In 11th Hellenic Conference on Artificial Intelligence. ACM. OpenAlex ↗ · Scholar ↗
- Kuratov, Y. and M. Arkhipov. 2019. Adaptation of Deep Bidirectional Multilingual Transformers for Russian Language. Computational Linguistics and Intellectual Technologies, 18:333–339. OpenAlex ↗ · Scholar ↗
- Lan, Z., M. Chen, S. Goodman, K. Gimpel, P. Sharma, and R. Soricut. 2020. ALBERT: A Lite BERT for Self-supervised Learning of Language Representations. In Proceedings of the International Conference of Learning Representations (ICLR 2020). our card
- Landauer, T. K. and S. T. Dumais. 1997. A solution to Plato's problem: The latent semantic analysis theory of acquisition, induction, and representation of knowledge. Psychological review, 104(2):211. OpenAlex ↗ · Scholar ↗
- Lee, S., H. Jang, Y. Baik, S. Park, and H. Shin. 2020. KR-BERT: A Small-Scale Korean-Specific Language Model. arXiv preprint arXiv:2008.03979. OpenAlex ↗ · Scholar ↗
- Lin, Y., Y. C. Tan, and R. Frank. 2019. Open sesame: Getting inside BERT's linguistic knowledge. In Proceedings of the 2019 ACL Workshop BlackboxNLP: Analyzing and Interpreting Neural Networks for NLP, pages 241–253, Florence, Italy, August. Association for Computational Linguistics. our card
- Lindley Cintra, L. F. and C. Cunha. 1984. Nova Gramática do Português Contemporâneo. Livraria Sá da Costa, Lisbon. OpenAlex ↗ · Scholar ↗
- Liu, Y., M. Ott, N. Goyal, J. Du, M. Joshi, D. Chen, O. Levy, M. Lewis, L. Zettlemoyer, and V. Stoyanov. 2019. RoBERTa: A Robustly Optimized BERT Pretraining Approach. arXiv preprint arXiv:1907.11692. our card
- Malvar, P., J. R. Pichel, Ó. Senra, P. Gamallo, and A. García. 2010. Vencendo a escassez de recursos computacionais. carvalho: Tradutor automático estatístico inglês-galego a partir do corpus paralelo europarl inglês-português. Linguamática, 2(2):31–38. OpenAlex ↗ · Scholar ↗
- McDonald, S. and M. Ramscar. 2001. Testing the distributional hypothesis: The influence of context on judgements of semantic similarity. In Proceedings of the Annual Meeting of the Cognitive Science Society, volume 23. OpenAlex ↗ · Scholar ↗
- Mikolov, T., K. Chen, G. Corrado, and J. Dean. 2013a. Efficient estimation of word representations in vector space. In Workshop Proceedings of the International Conference on Learning Representations (ICLR) 2013. arXiv preprint arXiv:1301.3781. our card
- Mikolov, T., I. Sutskever, K. Chen, G. S. Corrado, and J. Dean. 2013b. Distributed representations of words and phrases and their compositionality. In Advances in neural information processing systems, pages 3111–3119. our card
- Nivre, J., M.-C. de Marneffe, F. Ginter, J. Hajič, C. D. Manning, S. Pyysalo, S. Schuster, F. Tyers, and D. Zeman. 2020. Universal Dependencies v2: An evergrowing multilingual treebank collection. In Proceedings of the 12th Language Resources and Evaluation Conference, pages 4034–4043, Marseille, France, May. European Language Resources Association. our card
- Ortiz Suárez, P. J., L. Romary, and B. Sagot. 2020. A monolingual approach to contextualized word embeddings for mid-resource languages. In Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics, pages 1703–1714, Online, July. Association for Computational Linguistics. our card
- Padró, L. 2011. Analizadores Multilingües en FreeLing. Linguamatica, 3(2):13–20. OpenAlex ↗ · Scholar ↗
- Pennington, J., R. Socher, and C. Manning. 2014. GloVe: Global vectors for word representation. In Proceedings of the 2014 Conference on Empirical Methods in Natural Language Processing (EMNLP), pages 1532–1543, Doha, Qatar, October. Association for Computational Linguistics. our card
- Peters, M., M. Neumann, M. Iyyer, M. Gardner, C. Clark, K. Lee, and L. Zettlemoyer. 2018. Deep contextualized word representations. In Proceedings of the 2018 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long Papers), pages 2227–2237, New Orleans, Louisiana, June. Association for Computational Linguistics. our card
- Pires, T., E. Schlinger, and D. Garrette. 2019. How multilingual is multilingual BERT? In Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics, pages 4996–5001, Florence, Italy, July. Association for Computational Linguistics. our card
- Raffel, C., N. Shazeer, A. Roberts, K. Lee, S. Narang, M. Matena, Y. Zhou, W. Li, and P. J. Liu. 2020. Exploring the limits of transfer learning with a unified text-to-text transformer. Journal of Machine Learning Research, 21(140):1–67. our card
- Rojo, G., M. López Martínez, E. Domínguez Noya, and F. Barcala. 2019. Corpus de adestramento do Etiquetador/Lematizador do Galego Actual (XIADA), versión 2.7. Centro Ramón Piñeiro para a investigación en humanidades. OpenAlex ↗ · Scholar ↗
- Salant, S. and J. Berant. 2018. Contextualized word representations for reading comprehension. In Proceedings of the 2018 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 2 (Short Papers), pages 554–559, New Orleans, Louisiana, June. Association for Computational Linguistics. OpenAlex ↗ · Scholar ↗
- Samartim, R. 2012. Língua somos: A construção da ideia de língua e da identidade coletiva na galiza (pré-) constitucional. In Novas achegas ao estudo da cultura galega II: enfoques socio-históricos e lingüístico-literarios, pages 27–36. OpenAlex ↗ · Scholar ↗
- Sanh, V., L. Debut, J. Chaumond, and T. Wolf. 2019. DistilBERT, a distilled version of BERT: smaller, faster, cheaper and lighter. In Proceedings of The 5th Workshop on Energy Efficient Machine Learning and Cognitive Computing at NeurIPS2019. arXiv preprint arXiv:1910.01108. our card
- Schnabel, T., I. Labutov, D. Mimno, and T. Joachims. 2015. Evaluation methods for unsupervised word embeddings. In Proceedings of the 2015 Conference on Empirical Methods in Natural Language Processing, pages 298–307, Lisbon, Portugal, September. Association for Computational Linguistics. our card
- Souza, F., R. Nogueira, and R. Lotufo. 2019. Portuguese named entity recognition using BERT-CRF. arXiv preprint arXiv:1909.10649. OpenAlex ↗ · Scholar ↗
- Strzyz, M., D. Vilares, and C. Gómez-Rodríguez. 2019. Viable dependency parsing as sequence labeling. In Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long and Short Papers), pages 717–723, Minneapolis, Minnesota, June. Association for Computational Linguistics. our card
- TALG. 2016. CTG Corpus (Galician Technical Corpus). TALG Research Group. SLI resources, 1.0, ISLRN 437-045-879-366-6. OpenAlex ↗ · Scholar ↗
- TALG. 2018. SLI NERC Galician Gold CoNLL. TALG Research Group. SLI resources, 1.0, ISLRN 435-026-256-395-4. OpenAlex ↗ · Scholar ↗
- Teyssier, P. 1987. História da Língua Portuguesa. Livraria Sá da Costa, Lisbon, 3 edition. OpenAlex ↗ · Scholar ↗
- Vaswani, A., N. Shazeer, N. Parmar, J. Uszkoreit, L. Jones, A. N. Gomez, L. Kaiser, and I. Polosukhin. 2017. Attention Is All You Need. arXiv preprint arXiv:1706.03762. our card
- Vilares, D. and C. Gómez-Rodríguez. 2018. Transition-based parsing with lighter feed-forward networks. In Proceedings of the Second Workshop on Universal Dependencies (UDW 2018), pages 162–172, Brussels, Belgium, November. Association for Computational Linguistics. OpenAlex ↗ · Scholar ↗
- Vilares, D., M. Strzyz, A. Søgaard, and C. Gómez-Rodríguez. 2020. Parsing as pretraining. In Proceedings of the Thirty-Fourth AAAI Conference on Artificial Intelligence, AAAI 2020, New York, NY, USA, February 7-12, 2020, pages 9114–9121. AAAI Press. OpenAlex ↗ · Scholar ↗
- Virtanen, A., J. Kanerva, R. Ilo, J. Luoma, J. Luotolahti, T. Salakoski, F. Ginter, and S. Pyysalo. 2019. Multilingual is not enough: BERT for Finnish. arXiv preprint arXiv:1912.07076. our card
- Vulić, I., E. M. Ponti, R. Litschko, G. Glavaš, and A. Korhonen. 2020. Probing pretrained language models for lexical semantics. In Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing (EMNLP), pages 7222–7240, Online, November. Association for Computational Linguistics. our card
- Wenzek, G., M.-A. Lachaux, A. Conneau, V. Chaudhary, F. Guzmán, A. Joulin, and E. Grave. 2020. CCNet: Extracting high quality monolingual datasets from web crawl data. In Proceedings of the 12th Language Resources and Evaluation Conference, pages 4003–4012, Marseille, France, May. European Language Resources Association. our card
- Wolf, T., L. Debut, V. Sanh, J. Chaumond, C. Delangue, A. Moi, P. Cistac, T. Rault, R. Louf, M. Funtowicz, J. Davison, S. Shleifer, P. von Platen, C. Ma, Y. Jernite, J. Plu, C. Xu, T. L. Scao, S. Gugger, M. Drame, Q. Lhoest, and A. M. Rush. 2019. HuggingFace's Transformers: State-of-the-art Natural Language Processing. arXiv preprint arXiv:1910.03771. our card
- Wu, S. and M. Dredze. 2020. Are all languages created equal in multilingual BERT? In Proceedings of the 5th Workshop on Representation Learning for NLP, pages 120–130, Online, July. Association for Computational Linguistics. our card