Elamur Research

Introducing the Reference Corpus of Contemporary Portuguese Online

Paper · 2012 · Michel Généreux, Iris Hendrickx and Amália Mendes

Summary

A collection of Portuguese texts becomes much more useful for studying the language when readers can find grammatical patterns, see them in context and trace them back to their sources. The authors explain how they brought the written part of the Reference Corpus of Contemporary Portuguese, known as CRPC, online. The full collection contains 312M tokens, including written material and transcribed speech, and is predominantly European Portuguese. It draws on books, journalism, political proceedings and other sources, with smaller holdings from other Portuguese-speaking regions. The written collection is large enough to support studies within several genres, although its coverage is uneven. Political material and newspapers account for much of it.

Preparing the collection meant deciding which parts of a source belonged in the corpus. A webpage can contain an article alongside navigation, copyright notices and other material that would also be counted as language if it were kept. The authors first removed markup, then used examples judged by a human annotator to train a cleaner to distinguish useful passages from material to discard. On the held-out segments, NCleaner reached an F-score of 90%, ahead of the alternatives tested. Once cleaning was complete, automatic linguistic annotation added grammatical categories, dictionary forms and noun phrase boundaries. The authors adapted the tagging conventions to keep Portuguese contractions readable while recording their grammatical components.

The annotation evaluations tested different parts of the work. The chosen part-of-speech tagger achieved 95.4 overall accuracy on the adapted written CINTIL evaluation set, with lower accuracy on unfamiliar words. The lemmatizer, which associates inflected words with dictionary forms, reached 96.7% accuracy on a test restricted to words with a reference lemma. The noun phrase chunker obtained 86.5% token-level accuracy in cross-validation on annotated sentences. These scores describe separate tasks on separate evaluation material. A researcher looking at an individual concordance still has the surrounding text available to assess an automatic label.

The CQPweb interface lets readers search exact forms or grammatical patterns, restrict a search by source characteristics, inspect occurrences and compare selected parts of the corpus. The paper demonstrates this with janela, the Portuguese word for “window,” whose nearby words include ordinary grammatical combinations, expressions such as parapeito da janela, and a phrase associated with a film title. That mixture shows why a frequency or association score is a starting point for interpretation. The contribution of the CRPC release is to put a large collection, its linguistic annotations and the evidence behind its counts within reach of the same inquiry.

Deep dive: Introducing the Reference Corpus of Contemporary Portuguese Online

How the Reference Corpus of Contemporary Portuguese was collected, cleaned, annotated and made searchable, and what its evaluations showed. · about 34 minutes to read

The problem and its context

What a reference collection is meant to cover

A researcher who wants to know how Portuguese speakers use a verb has to decide what counts as evidence. A newspaper archive may supply many examples, while missing the circumstances in which the verb turns up in conversation or in writing addressed to a different audience. A collection made up of documents from one country can support a detailed account of usage there while leaving comparisons with another country difficult. The problem addressed by the CRPC is how to assemble evidence across these dimensions and make the resulting material usable for questions that its compilers could never enumerate in advance.

In corpus linguistics, a corpus is a collection of language material assembled for study. The authors use reference corpus for a collection intended to give broad information about contemporary Portuguese. The name describes the intended coverage. For this purpose, collecting examples of distinct kinds of writing matters alongside acquiring a large volume of material. The original project, which began in 1988, also set out to include speech. The compilers wanted a sample that could be kept up to date and used for questions about the language in both media.

The written material spans the latter half of the XIX century through 2008, with most of it dating from after 1970. That distribution fits the stated interest in contemporary use while preserving older material for comparisons. The geographic emphasis is on European Portuguese, with contributions from Brazil, African varieties and Asian varieties. The authors describe sampling beyond newspapers and magazines. Books, scientific and technical material, legal texts, parliamentary proceedings and pamphlets offered different forms of evidence. A classroom text, for example, can contribute language associated with a particular course or year of study, a distinction the compilers considered worth recording.

Obtaining this breadth had practical costs. The project began when many of the desired documents were unavailable in digital form. Among the material requiring manual acquisition were fiction, teaching texts and writing from outside Europe. Some documents had to be scanned, converted to text by optical character recognition and checked by people. This investment made it possible to include sources for which a web search would have yielded little or nothing. Later web collection supplied much of the expansion, but the earlier work shaped which other forms of writing were available beside it.

The spoken component grew through several projects. C-ORAL-ROM contributed European Portuguese speech assembled so that it could be compared with speech in other Romance languages. The speech holdings distinguish formal and informal registers and record more specific situations within them. A sermon, a broadcast weather report, a private telephone call and an ordinary conversation offer different settings for spoken usage. The paper also identifies transcriptions available from Fundamental Portuguese and recordings and transcriptions from Spoken Portuguese. These are routes to spoken material in their own right. The corpus search release described in detail concerns the written material.

Portuguese resources already available

The paper places CRPC among existing collections that made different choices about scope and access. CETEMPúblico offered a large collection from the newspaper Público. Readers could search it through Linguateca’s AC/DC project, which brought several corpora into a common interface, and could download the collection. The architecture underneath that search service, the IMS Open Corpus Workbench, also underlies the CRPC interface. A common technical foundation can support very different collections. In this case, one resource gives depth within a newspaper source, while the CRPC compilers pursued coverage across kinds of writing.

The Portuguese Corpus took a different approach to geographic and historical reach. It included Brazilian and European material and offered searches over time periods, countries and registers. Readers could query grammatical categories and dictionary forms, as well as examine frequencies and words that co-occurred. Its material incorporated texts from earlier corpus projects, including Tycho Brahe and Lácio-Web. Those capabilities matter for placing CRPC in context. Search by grammatical information and comparison by source characteristics already had precedents in Portuguese corpus work. CRPC brought such queries to its own combination of holdings.

The Bank of Portuguese combined multiple corpora with a focus on Brazilian Portuguese. Only a portion of the collection was available for searching concordances online. Lácio-Web, also focused on Brazil, assembled several resources for contemporary writing, including manually checked and automatically annotated portions, material for comparison across languages, and texts that had received no revision. The project followed the NILC Corpus, which was available through Linguateca. These examples show why the paper describes a corpus in terms of both its contents and the portions a reader can actually search. A manually checked sample and a larger automatically annotated collection serve different purposes even when they come from the same project.

CRPC itself had an earlier online search service. Readers could choose among written subcorpora by text type and obtain concordances and frequencies. A concordance displays an occurrence of the requested expression alongside surrounding words, so that a collection of hits can be read as evidence about use. The earlier service covered selected holdings. Making the written corpus searchable more broadly meant preserving that ability to inspect examples while supporting more detailed queries across a much larger body of material.

Why preparation affects the answer

A collection of files cannot answer a linguistic question until the system has a workable idea of what to count. A newspaper file may contain edition information, repeated page elements and article text. A digitized book may arrive with a different set of problems, including errors left by conversion from a scan. If each file enters the collection in its original form, conventions of web publishing or document production can influence the counts. A phrase that belongs to a navigation menu might appear to be characteristic vocabulary of a subject area simply because the same menu accompanies many documents on that subject.

There is a related problem at the level of the query. A search for the exact spelling of a verb finds that spelling. A researcher interested in the verb across its inflected forms needs a way to ask for those forms together. A researcher examining a construction may need to specify a sequence of grammatical categories, regardless of which particular words occur in it. These questions motivate part-of-speech tagging, which assigns categories such as verb or determiner in context, and the other annotations the authors attach to the text. Labels make a query more expressive, and every label introduces a decision that can affect which examples the query returns.

Information about the source adds another kind of precision. In a study of geographic variation, the country where a book was published can tell a different story from the variety its author represents. A study of language in schooling might need to distinguish a teaching text from another book and then distinguish its intended curricular level. The metadata, meaning information about each document, determine which of those distinctions a reader can make. The authors therefore treat collection design, linguistic processing and access as parts of the same problem. The value of the search platform depends on what was collected, what survived cleaning and what the resulting text says about its own provenance.

The method, step by step

Bring the documents into a common form

The pipeline starts with material collected through different routes. The written holdings include PDFs, scans processed by optical character recognition, word-processing documents and HTML pages. The authors converted the material to plain text in UTF-8, a common way of encoding characters. This made the files suitable for common processing while preserving characters used in Portuguese. For documents gathered from the web, the conversion also had to reckon with the difference between the text visible to a reader and the markup that organizes how a page is displayed.

The full sequence moves from document preparation to annotations that the search interface can use. Several of the later stages depend on decisions made earlier. Grammatical labels must be attached to units recognized during segmentation, and the lemmatizer uses those labels in choosing a dictionary form.

From collected documents to a searchable written corpus

The steps in order.

From collected documents to a searchable written corpusStep 1: Convert source documents to UTF-8 text1. Convert source documents to UTF-8 textStep 2: Strip markup from web material2. Strip markup from web materialStep 3: Segment text and filter irrelevant passages3. Segment text and filter irrelevant passagesStep 4: Identify tokens and sentence boundaries4. Identify tokens and sentence boundariesStep 5: Assign parts of speech and lemmas5. Assign parts of speech and lemmasStep 6: Mark noun phrase boundaries6. Mark noun phrase boundariesStep 7: Publish searchable text with document metadata7. Publish searchable text with document metadata

Describe the source as well as the text

The project recorded 44 metadata tags in its internal collection. Some fields describe the document’s bibliographic identity, including its author, title, place and date of publication. Others describe its content or classification, such as its subject, source and text type. The fields appropriate to a document can depend on what kind of document it is. Newspaper material can carry information about its section, while teaching material can carry information about the course and curricular year. Recording these details at the level of the document allows many occurrences of a word to be related back to the same source.

The authors distinguish the country associated with a variety from several biographical or publishing fields. They give the case of an author born in Portugal who has lived in Mozambique and whose work is assigned to the Mozambican variety in the corpus. Birthplace, first language, the country of publication and the classification of the work can capture different facts. The decision matters when country is used as a search restriction. A hit falls into a geographic selection according to the way the collection describes the source, which may involve a judgment about the work as well as a recorded location.

The corpus also records information needed for managing the files. This includes such details as where a file is stored, how large it is and how far it has progressed through correction and normalization. A scanned file can be marked as corrected or as having undergone further revision. That distinction makes it possible to retain information about how a source was prepared after the text itself has entered a shared format. The online interface shows 24 metadata tags, with other fields kept for internal use. Displayed fields can carry the value NIL, indicating that a value is unavailable. The presence of a field in the interface therefore tells the reader what can be recorded, while the individual record tells the reader what is known for a particular document.

Remove markup, then judge the surviving passages

The authors separated cleaning into a pass for markup and a pass for textual relevance. Markup frequently has a recognizable structure, so rules can identify page tags without making a judgment about the meaning of the enclosed text. A copyright line or a list of navigation choices can survive that operation as ordinary text. Deciding whether to keep it calls for a different kind of evidence. The share of documents identified as coming from internet sources was 88.75%, a category that included parliamentary material stored as HTML. The distinction between source format and linguistic content was therefore relevant well beyond ordinary news pages.

The cleaner the authors adopted, NCleaner, also divides text into short passages, largely paragraphs. These units are what a person labels and what the cleaning system learns to classify. Segmentation has a direct effect on what can be retained. When the boundary falls between a useful passage and a repeated page element, a decision about one can leave the other intact. If the boundary groups them together, the cleaning decision concerns the combination. The paper treats lexical cleaning as a judgment made over passages, with their boundaries supplied by this earlier step.

For the Portuguese training and evaluation material, the authors selected 200 documents at random from the collection then described as having 359k documents. The selected material amounted to about 200,000 words and 1.7 million characters. After the documents had been stripped of markup and segmented, a person familiar with the corpus identified passages that ought to be removed. The resulting dataset contained 6,460 segments, of which 1,474 were judged irrelevant. The annotations gave the system examples of the intended distinction rather than a list of strings that would always be deleted.

Among the frequent discard categories were titles, navigation controls, copyright statements and dates. The reasoning concerned the use of a passage in its source and in the collection. An isolated date or heading can be a well-formed use of Portuguese and still distort a count intended to characterize a genre’s ordinary text. Likewise, navigation labels can be characteristic of the website carrying an article while contributing little evidence about the subject or prose of the article. The annotation task turned that practical editorial distinction into examples that an automatic process could use.

The authors compared NCleaner with a method using character sequences and a classifier based on support vector machines. An n-gram is a sequence of neighboring items. Here the comparison method used sequences of letters, drawing on an approach originally applied to language identification. For the support vector machine comparison, the system used frequent words as features for a classification learned from the labeled passages. These are different ways to represent textual evidence about relevance. The comparison asks how well each configured approach recovers the human decisions for segments kept aside, before the selected cleaner is applied at corpus scale.

Choose what constitutes a token

After cleaning comes tokenization, the operation that decides which units will receive linguistic labels and be available to a query. The authors used the LX tokenizer, developed for Portuguese. It identifies sentence boundaries and separates punctuation from adjacent words. It also handles contractions and verbal clitics, short grammatical forms that attach to verbs. The paper specifically mentions clitics that can occur inside a written verb form. These cases help explain why dividing at spaces would be insufficient for implementing the corpus’s annotation conventions.

One of the most consequential choices concerns contractions. Consider pela, where a preposition and a definite article appear together in a single written form. In CINTIL, the manually revised corpus from which the project drew its tagging examples, the corresponding components were represented separately as por_ and a. The underscore marked participation in a contraction. The CRPC keeps pela intact and assigns it PREP+DA, a label that records the presence of both the preposition and the definite article. The visible word stays familiar to the reader, and the annotation retains the grammatical distinction.

This decision has implications beyond the appearance of a concordance. A query over exact word forms can ask for the contracted spelling, while a query over grammatical categories has to account for the compound label if it seeks the relevant preposition or determiner in contracted forms. A supervised tagger also needs examples consistent with the units it will encounter. The authors adapted CINTIL’s written annotations to the CRPC convention before training. Alignment here concerns both the boundaries of the items and the names of their labels.

The authors also reconsidered special labels for multiword expressions. CINTIL marked certain combinations of function words as units, including por fim, meaning “finally,” and de repente, meaning “suddenly.” Such a label tells a reader that several written words are being treated together. In automatic tagging, however, a special label supported by few training examples can be difficult to recognize amid common grammatical labels. The paper describes this as a practical difficulty during preparation. The CRPC generally used ordinary labels for the component words, with exceptions for Latin expressions such as per capita that the authors judged unsuitable for decomposition.

Learn the grammatical labels from revised examples

CINTIL was developed from a 1M token sample of CRPC and had manually revised part-of-speech and lemma annotations. To create training material for the new corpus conventions, the authors worked with an adapted written version described as having 644K tokens. Its 80 part-of-speech labels retain distinctions needed for the intended annotation, including combined labels for contractions. The more detailed distinctions available in the CINTIL scheme were simplified. A grammatical category search in CRPC consequently operates over the distinctions encoded in that adapted inventory.

The authors used MBT, a memory-based tagger. In this approach, the system uses annotated examples to make a decision about a word occurrence described by features of the word and its surroundings. The paper evaluates another Portuguese tagger, LX-tagger, against it. The two names play different roles in the pipeline. LX tokenization supplies units for annotation, while the comparison between MBT and LX-tagger concerns the grammatical labels assigned to those units. The original description of MBT is among the works the paper draws on. MBT: A Memory-Based Part of Speech Tagger-Generator

The features of the selected tagger depend on whether the focus word is known from training. The reported representation for a known word includes the words and their tags up to three positions to its left and two to its right. The context helps distinguish the grammatical role of a familiar string on a given occasion. A word’s presence in training gives the tagger relevant past examples, but the intended label still depends on the occurrence being tagged.

For an unknown word, the tagger has access to properties of the spelling. Its features include a prefix two characters long, a suffix three characters long, and flags for an initial capital letter, numbers, and hyphens. Its local context uses two neighboring positions on each side, with word and tag information. The spelling features offer some evidence even when the whole form has no training example. The result is a tagging procedure that can operate beyond its training vocabulary while changing the information it relies on.

The written CINTIL material was partitioned into 90% for training and 10% for testing. The authors used ten-fold cross-validation within the training portion to choose MBT’s settings. Cross-validation repeatedly holds back part of the material used for development, so that a setting is judged on examples outside the portion used to fit it in that run. The final comparison used the designated test portion. The authors took LX-tagger as it was, while MBT’s features and parameters were selected for the adapted task.

Use the grammatical category to choose a lemma

A lemma is the dictionary form under which related inflected forms can be grouped. If the same verb appears in different inflections, a search for its lemma can retrieve occurrences that would require several separate surface-form queries. Sometimes the same spelling can belong to more than one lemma or grammatical category. Lemmatization is therefore a choice made for the occurrence, using the spelling and its assigned part of speech.

The authors adapted MBLEM, a lemmatizer originally developed for Dutch and English, because they had found no suitable freely available Portuguese lemmatizer. MBLEM combines dictionary lookup with a learned procedure. The project supplied a dictionary compiled in-house, linking word forms and grammatical categories to lemmas. It contained 102K word forms, 27,860 lemmas and 120,768 combinations of word form and lemma. These quantities describe different parts of the dictionary. A spelling is an item the system can look up, a lemma is a possible result, and a pairing records which result is available for which spelling.

The categories used by the dictionary had to be reconciled with those used by the tagger. The adapted CINTIL inventory had 80 tags, whereas the dictionary used 31. A Portuguese linguist mapped the annotation categories into the dictionary categories, typically allowing a more specific source label to correspond to a broader destination label. The output of the tagger could then constrain the dictionary search. The dependency is important when reading a concordance. If the grammatical category assigned in context is wrong, it can restrict the lemma choices in a way that is wrong for the occurrence as well.

Mark the beginning and end of noun phrases

The final annotation stage identifies noun phrase spans. A noun phrase forms a unit around a nominal expression and can contain additional material, such as modifiers or coordinated elements. The authors wanted users to be able to search for the boundaries of those spans. They adapted the IOB method, which represents phrase membership with labels on the individual tokens instead of requiring the reader to search a separate phrase structure. Text Chunking using Transformation-Based Learning

In the CRPC scheme, O marks a token outside a noun phrase, B-NP an opening token, I-NP an interior token and E-NP a closing token. BE-NP serves for a token that both opens and closes its phrase. The explicit closing label makes a query about the final token of a phrase possible without requiring a search to reconstruct the boundary from later labels. The labels are designed for finding spans in the annotated text, including cases where the phrase contains several elements.

The authors used YamCha and trained it on 1,000 randomly selected sentences from CINTIL with complex noun phrases annotated. In these sentences, the annotation could include units containing relative or prepositional material, appositives or coordination. That definition has a direct bearing on the task. If an attached constituent belongs inside the phrase, it affects where the system is expected to place the ending label. The paper gives a processed passage showing annotations for the words, their grammatical categories, their lemmas and their positions in a noun phrase. In that example, realidade carries BE-NP, illustrating how a complete span can be marked on an individual token. Fast Methods for Kernel-Based Text Analysis

Expose the evidence through CQPweb

The searchable representation brings the layers together. The platform can match a word form, a phrase, a lemma, a tag or a noun phrase annotation, and it supports queries that combine those conditions. Regular expressions allow a reader to specify a pattern with variable parts. A query can also be restricted by country or text type. These choices correspond to different levels of the resource. A lemma is attached to an occurrence, a noun phrase position is attached to a token, and a country or genre restriction is applied through information about the document.

Each returned concordance provides a way back to the text. The reader can expand the visible context, examine the category labels and look up document information. For a query yielding too many hits to read comfortably, the interface can reduce the results to a requested sample size for inspection or download. Public access to search was available without registration. Registered users could save queries, create subcorpora from metadata and compile frequency lists for those selections.

A frequency list can count word forms, lemmas, grammatical labels or noun phrase annotations. Filtering on a pattern or frequency makes it possible to isolate a form of interest, and comparison of lists can identify characteristic vocabulary or forms appearing in only one selected collection. Collocation analysis serves a related purpose within the neighborhood of a match. It looks at words found near the form or pattern being searched and allows the reader to rank them by measures of association like t-score, mutual information, or log-likelihood. The paper uses these as measures available through the interface. Its example shows how moving from an association score to the concordance can clarify what kind of connection the score has brought to attention.

Experiments and results

How much material became searchable

The release described as version 2.2 expanded the CRPC from a previous collection of around 92M words to holdings the authors summarize as 312M tokens. They give 310M written tokens and 1,6M spoken tokens. The earlier online written selection contained 11,4M tokens and consisted of ELAN, with 2,8M tokens, and RL, with 8,6M tokens. The expansion in access concerns the written material. The authors report making the full written part searchable, while the speech holdings remain part of the wider collection.

For the written part, the paper’s quick facts report 356K documents and 1.15 M types. A type is a distinct form in the inventory, whereas a token is an occurrence. Repeated appearances of a form increase the token count while leaving the type inventory unchanged. The breakdowns by country and document type each give the written total as 309,812,943 tokens. The breakdowns make clear what a total of this size can conceal. A reader who wants material from a particular country or genre is drawing from a specific part of the collection.

Portugal supplies 93.3% of written texts and 289,840,619 tokens. Angola supplies 5.5% of texts and 10,744,627 tokens. Brasil is listed with 0.2% of the texts and 3,539,770 tokens, and Macau with 0.3% of the texts and 2,086,763 tokens. Timor is listed with 0.0008% of texts and 123,575 tokens. Percentages in this column describe documents. The token totals describe how much running text those documents contribute. A selection that is small by document count can still contain substantial text, and the ranking of collections can change when the unit being counted changes.

Text type displays the same distinction particularly clearly. Newspapers account for 50.8% of written texts and 110,503,376 tokens. Political material accounts for 45.9% of texts and 163,267,089 tokens. The order is reversed when the comparison changes from documents to tokens. Books contribute 0.3% of documents and 20,557,296 tokens, while magazines supply 1.4% of documents and 7,581,850 tokens. The authors draw attention to the substance of the manually gathered categories even when their proportions are small. A genre can support a study on its own terms while having little influence on the overall distribution of documents.

What the cleaning evaluation measures

The cleaning experiment was a held-out segment classification test. The authors allocated 75% of the annotated segments, or 4,845 segments, to learning, and 25%, or 1,615 segments, to testing. All approaches were judged by how well they recovered the passage judgments in that test. The F-score summarizes precision and recall. The two concerns are whether the passages selected by a system agree with the reference decisions and how much of what the reference identifies the system recovers. The evaluation counts segments as units, so it answers a different question from the fraction of individual words correctly kept or removed.

Cleaning methods on the CRPC held-out segments by F-score

NCleaner achieves the highest segment-level F-score, with the support vector machine close behind.

Cleaning methods on the CRPC held-out segments by F-scoreCharacter n-grams: 82Character n-grams82Support vector machine: 89Support vector machine89NCleaner (this paper): 90NCleaner (this paper)90
The numbers
System or settingF-score %
Character n-grams82
Support vector machine89
NCleaner (this paper)90

The character approach used sequences of 5 letters or less and scored 82%. The support vector machine used the 500 most frequent words and scored 89%. NCleaner retained accented letters in the reported configuration and scored 90%. The scores rank concrete configurations on the annotated Portuguese segments. Their comparison is informative for choosing a cleaner in this setting, since the target judgments and evaluation units are shared.

The paper also places the Portuguese figure beside a reported English result of 91.6% at word level from CLEANVAL 2007. That supplies a point of reference for NCleaner’s earlier use, with a qualification about what counts as an evaluated item. A word-level score can weight a long passage differently from a segment-level score. Even if the two figures are numerically close, they describe decisions measured at different levels on different material.

The application to the entire collection had a large effect on its size. The cleaning pass reduced the reported token count from 433 to 310 millions, a reduction the authors describe as about 28%. The number of documents fell from 359k to 356K, with some emptied completely. The change in volume is a separate result from the held-out F-score. It measures how much material the cleaner removed when deployed. The evaluation measures agreement with human decisions on selected passages for which those decisions were available.

How well the parts of speech were recovered

The tagger comparison uses the adapted written CINTIL split. The authors describe the test set as 86K tokens and report in their discussion an F-score of 95.4 for MBT against 93.9 for LX-tagger. They also cite a previously reported LX-tagger accuracy of 96.87% on Portuguese. That earlier number belongs to the tagger’s prior evaluation. The comparison on the adapted annotations is the one that addresses how the two taggers performed for the conventions being adopted in CRPC. MBT had been tuned on the training portion, and the LX-tagger was run as supplied.

For MBT, the results table labels the metric as accuracy and gives a more precise account of the examples. The full CINTIL evaluation set in that table contains 86,078 examples, including 80,414 known-word examples and 5664 unknown-word examples. The overall accuracy is 95.4, with 96.0 for known words and 88.2 for unknown words. The authors’ prose calls the system comparison an F-score comparison, while the table labels the MBT breakdown as accuracy. Those labels matter when interpreting the reported figures.

MBT tagging accuracy by vocabulary status on the CINTIL evaluation set

The tagger is more accurate on known words than on words absent from its training vocabulary.

MBT tagging accuracy by vocabulary status on the CINTIL evaluation setKnown words (this paper): 96.0Known words (this paper)96.0Unknown words: 88.2Unknown words88.2
The numbers
System or settingaccuracy %
Known words (this paper)96.0
Unknown words88.2

The subgroup breakdown makes the overall accuracy easier to interpret. Most of the evaluated examples belong to the known-word group. The all-word score accordingly describes the test with its actual mix of familiar and unfamiliar forms. A search in material with a different vocabulary mix can encounter a different balance of easy and difficult decisions. The comparison provides direct evidence about that dependence on the test set, while leaving the performance in any particular CRPC genre to be established on material from that genre.

Evaluate dictionary forms and phrase spans

For lemmatization, the authors evaluated MBLEM on a sample of 50K words from written CINTIL. CINTIL supplied reference lemmas for content words, so only 17K word forms in the sample had a reference annotation against which the answer could be checked. The reported accuracy was 96.7% on the evaluated material. This result supports the authors’ decision to apply MBLEM to the corpus. For interpreting the number, the distinction between the sample size and the number of instances with a reference lemma is essential. The score concerns instances with a basis for comparison.

The noun phrase evaluation used 4-fold cross-validation on the 1,000 annotated CINTIL sentences. The authors report 86.5% accuracy at token level. A token is credited when its assigned phrase label agrees with the reference label. This criterion gives evidence about how well the tagger recovers phrase positions across the sample. A query for a complete span depends on the combination of labels on its tokens, especially at its boundaries, so token-level performance and reliable recovery of complete phrases are separate questions.

The authors attribute 16.5% of the chunking errors to specific delimiters and punctuation symbols alone and describe these errors as non-critical. That observation gives some indication of where disagreement arose. Its practical importance depends on the query. A search concerned with words that commonly occur within noun phrases may be less sensitive to particular punctuation decisions, while a search that uses the end label to retrieve exact spans can depend on how the boundary is placed. The paper reports the token-level result with those errors included.

What the online demonstrations establish

For a demonstration of collocation, the authors queried janela and examined a window of 3 words to its left and right. They selected log-likelihood as the association measure and set a frequency threshold of 5. The window determines how far from the match the interface looks. The threshold decides which candidates have enough occurrences to enter the comparison under that setting. The association ranking then draws attention to nearby forms whose joint appearances are worth inspecting.

The example returns contracted grammatical forms such as pela, da and à. It also brings up abrir, “to open,” and aberta, “open,” forms that point towards a familiar semantic context for windows. The appearance of parapeito leads to parapeito da janela, referring to a windowsill. Another result, janela indiscreta, is associated with the Portuguese title of Rear Window. The list thus brings together ordinary grammatical contexts, lexical combinations and a title. Inspection of the source lines is what lets a user tell these apart.

The interface also supports comparisons made at the level of a chosen subcorpus. The paper discusses work on comparable samples of Portuguese varieties and a lexical study of parliamentary discourse organized around the periods 1954-74 and 1974-94. Those studies used CRPC material to investigate differences among selected samples. The authors see scope for applying the same kind of time-based comparison to the wider corpus. An analysis of word use across periods would depend on which documents are selected for each period and how their sources and amounts of text compare.

The authors report use of the platform since its launch at the end of March 2011. By 14 March 2012, 41 people from eight or more countries had registered, and it had processed an average of over 1,500 queries a month. These are observations about use of the service. They establish that the search facilities were being used outside the description of the pipeline. Registrations describe uptake of accounts that provided additional features, while unregistered readers could also query the corpus.

What the ablations show

The paper presents no formal ablation of the pipeline and instead offers comparisons among cleaners and taggers, a breakdown by vocabulary familiarity, an analysis of some chunking errors and a demonstration of the search interface.

Comparing complete cleaning configurations

The comparison among cleaning approaches controls the source of the reference judgments and the held-out material. That makes the ranking interpretable as a comparison of the particular configurations the authors tried. The character-sequence approach trails both other systems, while NCleaner finishes ahead of the support vector machine. One practical conclusion is that a method designed for removing unwanted web text transferred well enough to Portuguese to lead this comparison after being supplied with Portuguese judgments. The support vector machine result also shows that the distinction could be learned with a relatively direct representation based on frequent words.

The test takes place after markup removal and segmentation. It therefore addresses the quality of the decisions on the surviving passages. The paper’s rationale for separate passes is that structured markup and ordinary text call for different processing, and the test measures the classification part of that design. It gives no score for a joint cleaning pass or a contest between different ways of drawing the segment boundaries. The reported retention of accented letters also identifies a setting in the successful configuration. Its individual effect would require a comparison that changed that setting while holding the rest fixed.

The reduction in corpus size supports a different observation. At deployment, the cleaner encountered enough material it judged irrelevant to change the amount of text substantially. That gives the stage practical significance even though the published comparison concerns a smaller annotated sample. A reader can use the held-out result to understand how often judgments agreed on that sample and the deployment counts to understand the scale of the operation. Neither quantity determines which genres contributed most of the removed text.

Comparing taggers and examining difficult cases

The CINTIL comparison shows that MBT performed better on the adapted test material under the reported procedure. Because MBT’s configuration was chosen using the training data while LX-tagger was used as supplied, this is evidence about a tuned choice for CRPC relative to the available alternative. It is useful for understanding the authors’ selection. It gives less basis for attributing the difference to the underlying tagging approach independently of the training and annotation conventions.

Within MBT, the difference between known and unknown words clarifies one source of uneven performance. Knowing a spelling from the training material gives the tagger direct examples that can inform its decisions. Unknown words rely on spelling cues and context without that direct evidence. The reported gap reflects both the different populations of words and the different feature settings used for them. The comparison does not isolate the value of a prefix, a suffix or a particular amount of surrounding context. It shows which group remained harder under the final design.

The handling of multiword expressions was motivated by a related observation made during preparation. Written CINTIL contained 900 different multiword expression types, and 425 occurred only once. The authors observed difficulty distinguishing special multiword labels from other tags. The scarcity of repeated examples helps explain the decision to drop those labels for most of the expressions. An experiment using the original and adapted schemes on a common target would be needed to quantify the change. The paper supplies the frequency evidence and the observed problem that led to the choice.

The punctuation finding for noun phrase chunking is an analysis of errors within an evaluated task. It identifies a particular class of disagreements, while the paper gives no parallel accuracy on complete spans or separate breakdown for beginnings and ends. This matters because the ending tag was introduced partly to support boundary queries. The published result establishes performance across token labels as a group, with a description of some of the cases where it fell short.

Looking at what a retrieved pattern means

The janela demonstration provides an analysis of search output. The authors recognize several kinds of association in a ranked list, from grammatical combinations to a lexical expression and a film title. This illustrates why the concordance is an integral part of the evidence. A high association between a candidate and the query word brings an occurrence to the reader’s attention. Examining the occurrences reveals whether a recurring title, an ordinary phrase or some other shared context produced the result.

The demonstration uses one choice of association measure, one search window and one frequency threshold. It shows the kinds of evidence a reader can inspect with those settings. The paper does not rank the available association measures against reference judgments or compare window settings on a common query. As with the component evaluations, the scope of the conclusion follows the unit observed. Here the unit of interest is an interpretable search result, instead of a classification whose correctness can be scored against an annotated answer.

Limitations

Limits identified by the authors

The authors state that genres are unevenly represented. They prioritized making a large amount of material accessible and planned a smaller balanced version. The distribution tables show why a result over the whole collection can be dominated by major holdings. The presence of books, magazines and other kinds of writing makes genre-specific questions possible, but the corpus-wide distribution reflects the amount and kinds of material acquired. The geographic aim has a similar boundary. The compilation covers multiple varieties, with a strong concentration in European Portuguese.

The authors also regard their working definition of noise as schematic. Their annotations identify common classes of unwanted material, and they suggest that a more comprehensive account could improve the definition. Foreign-language passages that survived filtering were an explicit target for later cleaning. The authors also planned to improve segmentation and experiment with cleaning procedures adapted to particular genres. These plans point to stages where the initial distinctions could be sharpened. A passage may survive because its boundaries obscure what should be removed or because the desired criterion was outside the initial cleaning task.

The annotation set was designed for search at the scale of the corpus. The authors planned to add information on nominal and verbal inflection that was available in CINTIL, including distinctions such as number, person and tense. They also planned to revisit multiword expressions. A query can only rely directly on distinctions represented in the released annotations. Retaining pela with a compound category label supports one sort of inquiry, while abandoning most special labels for fixed expressions limits direct search by that particular annotation. A user can still search for a known sequence of forms when the expression of interest is specified in advance.

Metadata access had its own limits. The authors planned to make more fields searchable, extending the restrictions available in the release. Some displayed fields are incomplete, with NIL used where a value is unavailable. The paper also treats inclusion of the spoken material in the online platform as future work. That matters for interpreting a search presented as a search of Portuguese usage. The interface described here takes its evidence primarily from written sources even though the wider CRPC project includes transcribed speech.

Whole-text access and access to derived results have different conditions. Readers could use the online service and download items such as frequency lists. The authors were seeking permission from publishers and authors to make a portion of the underlying collection freely available for download. The paper therefore describes an online research resource whose text can be searched and inspected through the interface, with broader redistribution of the source material still dependent on permissions.

Limits of the evaluation design

The cleaning evaluation rests on the judgments of an annotator familiar with the corpus. The paper describes the task and the resulting labels, giving a basis for understanding what agreement with the reference means. Because it reports no agreement study with multiple annotators, the stability of the judgments in borderline cases is unknown. A heading can provide information relevant to the text and still resemble a category the cleaner was taught to remove. How consistently different readers draw that boundary would help determine how much of a disagreement can be treated as a classification error.

The paper reports a split of annotated segments. It does not specify that all passages from a source document were kept on the same side of the split. Whether the test measures transfer to wholly unseen documents or includes passages from documents also represented in training is therefore unclear. The distinction matters particularly for repeated source conventions, such as recurring navigation or formatting language. The held-out score is evidence about the split as described. A test with explicit separation by document, site or genre would answer a more specific question about transfer.

Corpus cleaning can also affect the comparability of subcorpora. A headline, date or repeated notice can be removed for sound reasons in the general collection. A researcher with a question about headlines or dating conventions would need to know that those items were among the potential discard categories. More broadly, if the cleaner has different retention behavior on distinct kinds of text, the resulting frequency differences may reflect aspects of preparation as well as usage. The paper gives the overall volume removed and the held-out cleaning result, while retention and error rates for individual genres and varieties are unreported.

The linguistic evaluations use distinct kinds of reference material. Tagging is assessed on adapted written CINTIL and includes a breakdown by vocabulary status. The lemma test is restricted by the availability of reference lemmas, and the chunking result counts labels at token level in selected sentences. These conditions make the scores intelligible individually. They offer no direct measurement of how often an entire query over lemmas, grammatical categories and phrase boundaries succeeds across the whole corpus. An upstream tagging decision can affect the dictionary-form decision, so even good component scores leave an empirical question about how often the required labels agree jointly on difficult occurrences.

The reported evaluations also give limited evidence about variation across sources. A tagger tested on adapted CINTIL provides a measure on that evaluation set. The stronger accuracy on known words is a reason to pay attention to the vocabulary of a new selection, particularly for a study targeting unusual forms. The paper does not report separate tagging, lemmatization or chunking scores for geographic varieties or text types. A user choosing a smaller subcorpus can identify which documents supply the examples, but the annotation quality for that choice remains unquantified.

Limits on linguistic interpretation

A corpus count describes the material selected by the query and the annotations through which it was retrieved. The same count can support different inferences depending on whether a reader is studying a spelling, an inflected family of words, a grammatical construction or a recurring source. Comparing varieties requires attention to the kinds of documents that enter each geographic selection. If a form is common in one selection, it may have a regional association, a genre association, or a dependence on particular documents. The platform allows a researcher to inspect those possibilities, while a raw comparison leaves them open.

Likewise, a collocation score signals a pattern under the selected search settings. The film title in the janela example is a linguistically meaningful occurrence whose frequency can have a specific source. The association by itself gives no account of that source. The paper’s searchable context and metadata allow a researcher to investigate the association and decide on the appropriate interpretation. That is a concrete benefit of the release even where the coverage of the data or the precision of a particular annotation sets limits on the conclusions.

What came after

The DISRPT 2025 shared task cites the CRPC paper in work on discourse analysis. Its stated tasks include finding the boundaries of elementary discourse units, detecting expressions that connect parts of a discourse, and classifying discourse relations. Together these concern how parts of a text are delineated and how their connections are described.

The clearest connection is the role of annotation in making distinctions testable. CRPC labels words and noun phrase boundaries so that a reader can retrieve occurrences of a linguistic pattern in a large collection. The later shared task concerns boundaries and relationships at the discourse level. A noun phrase boundary and a discourse unit boundary refer to different structures. In both settings, an evaluation depends on defining the unit and specifying what counts as a correct decision about it.

The citation establishes a connection between the papers. The role of CRPC material in the later shared task is unspecified, so claims about transfer of its documents, annotations or cleaning procedure would go beyond that evidence. What can be said is that the later work addresses another level of linguistic structure, while the CRPC paper documents the preparation and evaluation needed to make its own levels of annotation available for search.

Cite

Cite as Michel Généreux, Iris Hendrickx and Amália Mendes. 2012. Introducing the Reference Corpus of Contemporary Portuguese Online. Proceedings of the Eighth International Conference on Language Resources and Evaluation (LREC'12).

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

@inproceedings{genereux2012introducing,
  title = {{Introducing the Reference Corpus of Contemporary Portuguese Online}},
  author = {Michel Généreux, Iris Hendrickx and Amália Mendes},
  booktitle = {Proceedings of the Eighth International Conference on Language Resources and Evaluation (LREC'12)},
  year = {2012},
  url = {https://aclanthology.org/L12-1143/}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/genereux-2012-introducing-reference-corpus-contemporary-portuguese/