---
title: "Experiments in Human-computer Cooperation for the Semantic"
description: "Santos and Mota test how linguists can use reusable rules to annotate colour and clothing in Portuguese corpora and review the changes."
canonical: "https://research.elamur.ai/free/en/papers/santos-2010-experiments-human-computer-cooperation-semantic/"
---
Elamur: [Mova](https://md.mova.elamur.ai/free/en/) · [Parse](https://mova.elamur.ai/free/en/parse/) · [Dictionary](https://md.dictionary.elamur.ai/free/en/) · [Translate](https://md.translate.elamur.ai/free/en/) · **Research** · [Gali](https://md.gali.elamur.ai/free/en/) · [MCP](https://mcp.elamur.ai/) · [Locations](https://md.locations.elamur.ai/free/en/) · [Weather](https://md.weather.elamur.ai/free/en/) · [Constitution](https://md.constitution.elamur.ai/)

[Elamur Research](https://md.research.elamur.ai/free/en/) · [this page in HTML](https://research.elamur.ai/free/en/papers/santos-2010-experiments-human-computer-cooperation-semantic/)

[Elamur Research](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2010](https://md.research.elamur.ai/free/en/papers/2010/) / Experiments in Human-computer Cooperation for the Semantic Annotation of Portuguese Corpora

# Experiments in Human-computer Cooperation for the Semantic Annotation of Portuguese Corpora

Paper · 2010 · Diana Santos and Cristina Mota

**Authors:** [Diana Santos](https://md.research.elamur.ai/free/en/authors/diana-santos/) and [Cristina Mota](https://md.research.elamur.ai/free/en/authors/cristina-mota/) · **Year:** 2010 · **Venue:** Proceedings of the Seventh International Conference on Language Resources and Evaluation (LREC'10) · **Licence:** [CC BY-NC 4.0 (ELRA, LREC proceedings)](https://creativecommons.org/licenses/by-nc/4.0/)

[Cited by **5** papers in our library of more than 163,000 papers whose bibliographies we read](https://md.research.elamur.ai/free/en/papers/santos-2010-experiments-human-computer-cooperation-semantic/cited-by/) · Proceedings of the Seventh International Conference on Language Resources and Evaluation (LREC'10) · [licence](https://creativecommons.org/licenses/by-nc/4.0/)

- [Publisher's page](https://aclanthology.org/L10-1318/)
- [PDF](https://aclanthology.org/L10-1318.pdf)

## Summary

A search for colour in a Portuguese corpus can retrieve a fish where it should find a shade, or miss a shade because the word typically names a fish. The surrounding words often make the intended reading clear to a linguist. The difficulty is carrying that judgment across a large collection and retaining it when the collection is processed again. Diana Santos and Cristina Mota address this problem with corte-e-costura, a program that lets linguists write, inspect and revise reusable rules for [linguistic annotation](https://md.research.elamur.ai/free/en/concepts/annotation/).

The program works on AC/DC corpora that already carry grammatical information. A linguist specifies a pattern using words, grammatical tags or existing annotations, then states what should change wherever the pattern matches. In a phrase pairing a shirt with *salmão*, for instance, a rule can mark the shirt as clothing and interpret *salmão* as a colour adjective. Other rules remove a default label when the context favours an unrelated sense, assign a more specific category, or group several words into a single expression. Changes take effect immediately, so a later rule can use a label installed earlier. An optional repeated pass lets rules continue working on a sentence until a pass leaves it unchanged.

Colour was the more developed experiment. The authors transferred vocabulary and classifications from the revised COMPARA corpus to other collections, including CONDIV, whose fashion, health and soccer texts let them examine how colour vocabulary varies by subject. The fashion portion led CONDIV in both the frequency of colour words relative to its size and the relative breadth of its colour vocabulary. Health had the highest ratio of distinct colour types to colour occurrences, a measure that gives a different view of variety. Clothing work established a preliminary classification and exposed additional difficulties, including words whose category depends on the kind of garment meant in context.

The program recorded changes to words, attributes and multiword expressions across several corpora. In CHAVE, it reported 132,244 words changed and 2796 new multiword expressions. Those figures describe the scale of revision. The study gives neither an accuracy score against independent judgments nor a timed comparison with manual work. Its evidence comes from using the program in corpus production, examining which rules were needed and recording what the rules changed. The authors found the workflow practical for linguists to use with little familiarization, although running the program slowed corpus creation and its pattern language still lacked several search constructions.

## Deep dive: Experiments in Human-computer Cooperation for the Semantic Annotation of Portuguese Corpora

Santos and Mota test how linguists can use reusable rules to annotate colour and clothing in Portuguese corpora and review the changes. · about 33 minutes to read

**In this deep dive**

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

### The problem and its context

#### Keeping a correction through a corpus rebuild

A linguistic corpus can contain successive layers of work. The text supplies the words. A grammatical analysis identifies properties such as the category of a word or the base form under which it should be indexed. A semantic layer adds a judgment about what a word or phrase conveys in that occurrence. These layers can depend on each other. If an earlier stage treats a word as a noun, a later rule may use that analysis to decide whether the occurrence deserves a colour label. If the grammatical analysis changes, the case that originally called for the rule may disappear, or it may take a different form.

The AC/DC collections already had substantial grammatical markup when the authors began adding semantic fields. The Portuguese material passed through PALAVRAS, which performed its grammatical analysis using constraint grammar, followed by conversion to the AC/DC representation and the addition of metadata. The resulting corpora could then receive automatic annotations for particular domains. The semantic work continued while the rest of the processing chain remained open to improvement. A correction to a source text, a revised lexicon or a new version of PALAVRAS could all change the input to the semantic stage. The project therefore needed to preserve what an annotator had learned in a form the production process could apply again.

Directly repairing an annotated corpus would resolve the occurrences a linguist had examined. A subsequent rebuild would then pose an integration problem. Repairs recorded only in the finished corpus would have to be reconciled with the newly processed version, whose tokens and attributes might have changed. A rule records a condition for intervention and the intervention itself. When applied to updated material, it can find occurrences that satisfy that condition in the new annotations. If the input no longer contains the pattern, the rule can simply have no effect there. The suitability of the condition still needs inspection, since a change upstream can also alter what a rule matches.

The authors had first-hand experience with extensive manual revision. COMPARA had undergone revisions to the text, the alignment between translations and the grammatical analysis. They had also worked on a revised collection within the AC/DC cluster, the Portuguese treebank [Floresta Sintá(c)tica](https://md.research.elamur.ai/free/en/papers/afonso-2002-floresta-sinta-c-tica-treebank/). A treebank is a corpus with recorded grammatical structure. These projects showed what sustained review could contribute and gave the authors a concrete reason to seek a way of making that effort reusable. A linguist who has worked out why a group of occurrences is wrong should be able to express the condition once and check the cases to which it applies.

#### Why AC/DC called for a small rule system

AC/DC began in 1998-99 to give people a common web interface to Portuguese corpora. The authors describe a setting in which users could query collections without installing the processing software or obtaining physical access to the holding institutions. New material joined the project over time. CETEMPúblico supplied a large collection of newspaper text. CHAVE was built for [information retrieval](https://md.research.elamur.ai/free/en/topics/information-retrieval/) evaluation, and the HAREM collections added data prepared for evaluating [named entity recognition](https://md.research.elamur.ai/free/en/topics/named-entity-recognition/). Related projects shared the processing machinery and, in some cases, material. COMPARA, for instance, brought together Portuguese and English fiction in aligned translations, while CorTrad included parallel material across versions and genres.

That history shaped the annotation problem. The collections had a common way of representing linguistic information, and the people doing semantic revision already knew how to query that representation. At the same time, a query that made sense in one collection could retrieve a different mix of meanings in another. The scope for reuse lay in the shared format and in regularities of Portuguese. The need for revision lay partly in the diversity of subjects, varieties and genres within the collections. A convenient rule language had to serve both purposes. It had to express broad patterns and give the annotator enough control to restrict a rule when experience showed that its scope was too wide.

The authors identify several existing approaches that might have supported such work. Constraint grammar was familiar from PALAVRAS. NooJ offered another environment for expressing linguistic rules, and MP was an extension associated with the IMS Corpus Workbench, or CWB. The authors saw a practical cost in asking linguists to install or learn another system before they knew how far the rule-writing approach would take them. They were also adapting a large set of existing attributes for Portuguese. Their earlier experience with general-purpose software suggested that fitting a tool to this combination of language, corpus format and task would itself take work.

Corte-e-costura began as a deliberately small program. Its name refers to altering or repairing clothes, an apt description of a program that makes localized changes to existing analysis. The authors brought it into production early so that the linguists using it could help reveal which capabilities mattered. At that stage, immediate inspection was central to the design. If a pattern produced a bad set of changes, the linguist should be able to discover that through the corpus and revise the rule. The same familiarity that let a linguist search for a pattern could then be used to specify a repair.

#### Choosing a semantic field

Colour gave the project a starting point with existing linguistic research and frequent examples in Portuguese. The authors were also interested in using language to classify images, and they cite work suggesting that colour adjectives have syntactic restrictions. This last point mattered to the task design. A semantic category can leave traces in grammar, so the attributes already present in a parsed corpus can help identify occurrences. A rule can use a noun before a phrase as evidence about what the phrase is doing. Just as importantly, a successful semantic interpretation can justify revising a grammatical tag.

COMPARA was the initial collection to receive a full colour annotation. Its revised text, alignment and grammatical information made it a practical place to define the vocabulary and classes. Transfer to other AC/DC material raised a question that a carefully revised fiction corpus alone could leave open. Which judgments about colour expressions would carry over to collections assembled for quite different purposes? CONDIV offered fashion, health and soccer texts, with a design that also let researchers compare periods and varieties of Portuguese. It brought recurring words into settings where the most plausible sense could change.

Clothing followed in part because CONDIV already supplied fashion material and a stock of clothing terms. Other sources of vocabulary were also available to the authors. The domain called for different classifications from colour, however. A garment can be grouped by how it is worn, by the kind of piece it is or by the people it is associated with. The authors also had to decide how to handle generic words for clothing and expressions that invoke a garment without describing someone wearing it. The challenge involves defining the boundaries of a semantic category as well as finding its expressions in running text. That is a problem of [lexical semantics](https://md.research.elamur.ai/free/en/concepts/lexical-semantics/).

The authors connect their approach to an observation by Halliday about linguistic frequencies. Halliday associated some distinctions with approximately equal probabilities and others with an imbalance of 10%-90%, expressed in the paper as 1:9. The authors took this as a reason to explore a process in which a broad rule covers prevalent cases and a later pass handles the exceptions. If a strong default held at each level, they reasoned, only 10% of the cases at that level would call for correction. This was a motivation for the workflow. The value used in a rule still depended on what a linguist could recognize in context, and the experiments did not estimate an exception rate at each level.

### The method, step by step

#### From a corpus search to an edit

A rule has a matching part and, for changes to existing units, an editing part. The matching part describes the sequence the program should look for. Each term can test properties already present in the corpus. The editing part identifies which matched elements to change and supplies their new attributes. The rule can use a word as context while leaving its annotation alone. Where a pattern calls for changes to several elements, the same rule can update them together. The design borrows the appearance of a CWB corpus query so that a linguist can draw on familiar ways of specifying the match.

How corte-e-costura revises an AC/DC corpus The steps in order.

The example involving *camisa* and *salmão* shows what the annotator can specify. The first term in the pattern tests whether the first word has *camisa* as its base form. The second term asks for the base form *salmão* and a noun tag. A base form used to group related word forms is a [lemma](https://md.research.elamur.ai/free/en/concepts/lemma/). The two terms receive identifiers that the editing part can refer back to. When the match succeeds, the first word receives the clothing label. The second receives a colour label, an adjective tag and feminine gender. In this context the rule treats *salmão* as describing the shirt.

The original noun tag is part of the condition. An occurrence already analyzed as an adjective would fail that test. This lets the writer describe the particular state to repair and prevents the pattern from covering every adjacent occurrence of the same lemmas. The consequent can add information that was absent or replace values already present. The system also supports removing attributes. The authors use this flexibility to repair analyses beyond the semantic labels that prompted the project.

At the time of the experiments, the semantic information was represented in the attributes `sema` and `grupo`. The examples use `sema` for such labels as colour and clothing. The editing mechanism was designed to work on the corpus representation more generally, so the linguist could revise grammatical properties in the same operation. A colour reading may depend on recognizing that a nominal-looking form functions as an adjective. Recording the semantic reading and the grammatical revision together allows later rules to see the revised analysis as a whole.

#### Working with spans as well as words

The AC/DC format distinguishes positional attributes, which describe individual corpus positions, from structural attributes, which describe stretches of text. A word's lemma is a positional property. A multiword expression has a structural boundary marking where the expression begins and ends. The notation `mwe` identifies such spans in the corpus. A rule may inspect both forms of information, then modify a property of a span and a property of a word inside it in the same edit. This distinction matters wherever the relevant unit is a phrase, as in the treatment of [multiword expressions](https://md.research.elamur.ai/free/en/topics/multiword-expressions/).

Consider *cor de laranja* after a noun. The example pattern looks for a preceding noun and an existing multiword span tagged as nominal. Inside that span it checks for the lemmas that make up *cor de laranja*. It then changes the span's category to adjective and marks the first word, *cor*, as belonging to the colour domain. The preceding noun is evidence for the adjectival reading and stays as it was. The pattern relies on the category of the preceding word and can therefore match without naming a particular noun.

The program also lets an annotator create a span. An occurrence of *peito de rola* following a noun can be wrapped in a multiword boundary and given the properties of a colour adjective. The example matches the individual word forms and marks the first word as belonging to the colour domain. The other constituent words remain inside the new span. The operation consequently records the extent of the expression as well as its interpretation. A later query can use the whole expression as a unit while the corpus retains its constituent positions.

A shorter declaration is available for expressions the annotator wishes to group without testing the surroundings. The paper gives *cor de rosa* as an example of a bare expression that can serve as the matching part of such a rule. In another example, the writer sets the semantic category to colour and the grammatical category to adjective, then lists *açúcar queimado* under those settings. The defaults express a decision about how listed expressions should enter the initial annotation. If the intended analysis needs a contextual condition, the writer can instead spell out the relevant surroundings and the attributes to set.

A pattern can also refer to an existing `mwe` span while leaving its internal text unspecified. The authors illustrate this with a wildcard between the span boundaries and a noun immediately after the span. The consequent retags the noun as an adjective. The match depends on the presence of a multiword expression and the tag of the following token, whatever words make up the span. This wildcard has a specific role in the rule notation. The paper also describes broader pattern constructions from CWB that the implementation lacked, including general repetition over tokens and tests involving negation.

#### What happens when rules run

The unit of processing is a sentence. For a sentence `S` in corpus `C`, the algorithm keeps a copy `S′` and takes each element `E` of `S` in order from left to right as a possible start for a match. At that position, it tries the rules in `R`, the set of rules as ordered in the rule file. Each term of a rule's matching part must fit the corresponding element of the sequence. If a term fails, the program goes on to the next rule. If the pattern succeeds, the consequent immediately changes the working sentence.

A rule can match more than once in the same sentence. It will be tried at later start positions, where the requisite sequence may appear again. Conversely, different rules may apply at the same start position. Each sees the sentence in the state left by the previous successful edit. For example, a pattern that requires a noun can cease to apply if an earlier rule has just retagged that word as an adjective. A pattern that expects a colour annotation can become applicable as soon as another rule adds it. Rule order is part of the meaning of a rule file because it determines which state each pattern sees.

In ordinary operation the program proceeds through the sentence once for that invocation. In recursive mode, the program compares the resulting sentence with the saved copy for that pass. If their annotations agree, it returns the sentence. If they differ, it saves the new state and repeats the scan. The test concerns the sentence as a whole at the end of a pass. Repeated scanning matters when an edit makes a match possible at a position the scan has already passed. A further pass gives that position another opportunity using the updated attributes.

The paper gives the recurring case of coordination. In its example, a passage describes eyeshadow with the words for brown and pearl in a coordinate expression. Brown is already recognizable as a colour. Its relation to pearl in that immediate setting gives evidence that pearl is also being used as a shade. The classification of a neighbouring term can therefore depend on an earlier rule having identified one element of the coordination. The authors reserve repeated application chiefly for cases of this kind. They put it late in the workflow, when earlier steps have supplied annotations that the dependent patterns can use.

The check for an unchanged sentence also has a consequence for how the patterns must fit together. A final state can equal the saved state even if edits within the pass offset one another. Conversely, a set of rules that keeps returning the sentence to different states on successive passes gives the equality test no reason to stop. These are properties of the stated procedure. The paper describes successful applications of repeated scans and gives no termination guarantee for arbitrary rule sets.

#### Writing rules for the kinds of revision needed

The annotators made an initial distinction between rules that repair existing markup and rules that assign or revise semantic labels. A grammatical correction can serve the semantic work by making a useful pattern recognizable. It can also be a corpus repair in its own right. The engine handles both jobs in the same way, through conditions on the existing annotation and edits to the matched sequence. Keeping them recognizable as different jobs gives the annotator a way to inspect what the program has been doing.

A positive semantic rule marks an occurrence when the surroundings support membership in the domain. A negative rule removes a label given by default when a particular context indicates another reading. A specialization rule keeps a link to the broad field while giving the occurrence a more specific treatment, such as a political or team use of a colour. Recursive rules differ from these descriptions in part because their name specifies how they run. Their use depends on the annotations produced by previous rules and may need more than one pass to propagate the relevant information.

A linguist can choose the default according to which conditions are easiest to express. The authors discuss *branqueamento*, which can refer to whitening and can also be used for laundering money. In the material they discuss, the financial sense was more frequent. Yet they found it easier to describe contexts for that sense and use those patterns to remove the semantic label. The rule design thus follows the availability of contextual clues. A frequent case can be treated by removal if it is easy to identify, even where the workflow initially labels all occurrences under a plausible domain reading.

Where a linguistic pattern holds also matters. The project distinguished broadly applicable rules from rules for particular corpora. In practice, subjects and national varieties could require their own settings. In soccer, *amarelo* can refer to a yellow card. A fashion text provides a different setting for interpreting the same word. In the authors' examples, *fato* can be a general clothing term in Portuguese from Portugal and denotes a fact in Brazilian Portuguese. The authors also describe a clothing reading for *terno* in Brazil that they do not assign in Portugal. A common lexical entry gives the annotator a candidate expression, while the intended domain and variety determine how widely a particular rule should operate.

These decisions were incorporated into the production workflow before the CWB corpus was created. The program was invoked at several points so that different groups of rules could be organized and logged separately. The stages made the changes easier to trace when an annotator checked the results. They also increased the time needed to create the corpus. The annotator's contribution consists of lexical resources, category decisions and written patterns, reviewed as the corpus develops. The procedure uses those rules directly. It has no fitting phase or train/test partition of the kind used to estimate automatic prediction performance.

#### Deciding what belongs to clothing

The clothing work makes the category decisions unusually visible. The authors include `NãoEspecificada` for references to clothing that do not name a specific kind of garment. A generic word such as *roupa* can therefore count as evidence of the domain while contributing no more detailed clothing class. An `Outras` category covers items for which the annotators had yet to establish a dedicated class. The paper gives examples that include swimsuits, culturally particular garments such as the kimono and poncho, and clothing used at work. The boundaries of the classification depend on what distinctions the project has decided to record at that stage.

An `Original` class handles expressions where clothing words contribute to a figurative interpretation. The expression about taking off one's hat can convey admiration, and tightening one's belt can describe cutting expenditure. Their vocabulary gives a searcher a route to the clothing domain, while the special label records the figurative use. Retaining this distinction is useful for a scholarly query because a count of expressions involving clothing vocabulary answers a different question from a count of passages literally about garments.

The authors describe 33 clothing classes and a coarser grouping that brings together categories such as warm garments, trousers, short coats, outfits with several pieces, garments worn over the shoulders and clothes involving a skirt. They also add classifications for women's clothing, men's clothing, children's clothing and unisex clothing. These express a different property from the grouping by garment. A corpus query can then seek a type of item or an association with a wearer. The authors treat the classification as work in progress and document the occasions when a borderline case requires a convention.

The grammar of the field influenced what the rules needed to cover. The authors had found colour across many grammatical categories, while clothing items in their inventory were predominantly nominal. They discuss a smaller group of verbs connected with putting on or taking off garments. In their account, *calçar* goes with such items as shoes and can also be used for trousers and mittens. *Vestir* covers garments such as dresses and shirts, and *pôr* is used for headwear. The paper treats these choices as a kind of classification reflected in verb use and observes that usage is changing. A list of garment nouns would capture only part of the information available in the field.

Some clothing terms remain broad even when the annotator recognizes them as clothing. The authors give *casaco* and *fato-macaco* as examples whose occurrences can fit several classes. They also identify neighbouring domains such as accessories, parts of garments and materials. Collars and zips, for example, are related to named garments but raise their own questions about what belongs in the classification. The authors compiled lists of terms for these related areas. The existence of the lists distinguishes vocabulary collection from the further work of choosing and applying consistent labels in context.

#### Measuring the annotated colour field

The paper defines indices to describe the colour material once it has been annotated. The first measures the relative frequency of colour occurrences.

```
Iₜₒₖ = (Ctoken / Wtoken) × 10,000
```

`Iₜₒₖ` is the colour token index. `Ctoken` counts occurrences annotated as colour, and `Wtoken` counts all word occurrences in the same collection or portion of a collection. A token here is an occurrence, so repeated instances of the same colour contribute separately. The slash denotes division, the multiplication sign applies the scale factor `10,000`, and the equals sign defines the index. The resulting measure describes how much colour vocabulary a reader encounters relative to the amount of text.

The other index measures the range of colour vocabulary relative to the range of vocabulary in the material.

```
Iₜᵧₚ = (Ctype / Wtype) × 10,000
```

`Iₜᵧₚ` is the colour type index. `Ctype` counts distinct colour types and `Wtype` counts distinct word types in the same material. The slash divides those counts, the multiplication sign scales their ratio by `10,000`, and the equals sign defines the index. In the colour inventory, related forms such as *amarelo*, *amarela*, *amarelos*, *amarelinho* and the superlative form belong to the adjectival type headed by `AMARELO`. The noun with the lemma `AMARELO` and the verb with the lemma `AMARELAR` count separately. The inventory therefore represents grammatical distinctions as well as the grouping of different forms under a lemma.

A further measure compares the size of the colour vocabulary directly with its occurrences.

```
CTT = Ctype / Ctoken
```

`CTT` is the colour type–token ratio. `Ctype` and `Ctoken` count distinct colour types and colour occurrences, respectively, and the slash divides the former by the latter. The equals sign defines the ratio. Repetition adds occurrences without adding a new type each time. A portion of text can consequently have frequent colour references and a comparatively low ratio if its references repeatedly draw on a familiar stock of expressions. This is the colour-specific use of a [type–token ratio](https://md.research.elamur.ai/free/en/concepts/type-token-ratio/).

The indices address different questions. The token index tracks the relative presence of colour. The type index asks how much of the available vocabulary falls within the recorded colour field. Where the frequency of colour occurrences is similar, the type index can show whether the texts have very different ranges of colour vocabulary relative to their respective vocabularies. The type–token ratio asks how many distinct colour types appear relative to how often colour is mentioned. Each measure depends on the labels available at the time of counting and on how the researchers define a distinct type.

### Experiments and results

#### Collections and units of comparison

The experiments were part of producing corpora that users could query. The authors describe AC/DC as offering roughly 25 parsed collections and approximately 250 million words through its web interface. They also document the composition of the wider cluster, where some projects share material and some resources have additional markup. The counts by genre, dated March 2010, omit duplicate material across collections. That matters because adding all the holdings as listed by corpus could count a shared passage more than once.

The genre distribution was heavily weighted towards general newspapers, with 246,112,528 words in that category. Narrative fiction accounted for 17,216,517 words, and oral material for 500,741 words in the same breakdown. The distribution by variety gives 215,321,065 words for Portugal and 58,893,616 for Brazil, with much smaller holdings classified under Africa. Such totals describe the records where the relevant metadata could be used. For the CoNE email collection, the authors mention messages whose origins were unclassified as an example of why a variety could be missing.

The annotation runs give different kinds of evidence at different scales. COMPARA supplied an already revised setting from which the project took colour terms and classes. CONDIV let the researchers inspect the semantic distribution across subjects. A further set of AC/DC corpora supplied operational logs of the edits produced. A corpus-wide inventory can say what material stood to benefit. A subject comparison can say what the resulting labels reveal about usage in those texts. A change log can say how much recorded annotation the rules altered during production.

There was no head-to-head comparison with another editing environment. The existing automatic annotation supplies the practical starting point for revision, and the logged state changes show what the rules did to it. COMPARA supplied prior annotation knowledge, while the material elsewhere in AC/DC served as the target for transferring and extending that knowledge. The paper gives no scored manual baseline or independent reference labels for the runs it quantifies. Its main measurements are the size and composition of the rule inventory, the changes recorded during application and the distribution of colour in the annotated data.

#### Colour in fashion, health and soccer

The CONDIV comparison shows why it helps to report several measures of a semantic field. Fashion contained 1,104,347 tokens and 13,763 colour tokens. Health contained 1,806,201 tokens and 2,276 colour tokens. Soccer contained 2,992,062 tokens and 4457 colour tokens. These are counts for the subject portions of CONDIV. Their token totals differ, so the raw number of colour occurrences gives an incomplete view of how prominent colour was in each portion.

The paper reports a fashion colour token index of 124.626 and a colour type index of 141.179. Fashion leads the CONDIV subject comparison on both indices. It also contains 477 distinct colour types, compared with 160 in health and 120 in soccer. These counts give fashion a broad recorded colour vocabulary as well as a high concentration of colour mentions. That combination is visible both in the raw inventory and in the measures scaled to the amount of text and vocabulary.

The ordering changes with the measure. Soccer has more colour occurrences than health, and its colour token index is higher. Health has more recorded colour types than soccer even though it has fewer colour occurrences. The health portion also has the higher colour type index. In this comparison, the subject where colour is encountered more frequently relative to the amount of text has the more concentrated colour vocabulary relative to its vocabulary as a whole. The token and type views make it possible to see that pattern independently of the fashion results.

Colour type–token ratio by subject in CONDIV Health has the greatest variety of colour types relative to its colour occurrences.

**The numbers**

| System or setting | Colour type–token ratio |
| --- | --- |
| Fashion | .0346 |
| Health (this paper) | .0703 |
| Soccer | .0269 |

Health also leads when the denominator is restricted to colour occurrences, as the chart shows. Fashion's vocabulary includes more distinct colour types in absolute terms, and its colour types recur more heavily relative to that inventory. Health has the highest ratio of variety to mention. Soccer's ratio is the lowest of the three. The ranking describes a property of the annotated material and carries no implication that a higher ratio reflects better annotation.

The authors also plotted the token and type indices for the wider AC/DC collections, using different symbols for the two measures. This extends the comparison beyond the CONDIV subjects. The point of plotting them together is that a corpus can have a high concentration of annotations and a different standing with respect to lexical breadth. Since the collections vary greatly in size, the authors advise caution in making direct comparisons. The CONDIV labels had also undergone only partial human review when the values were reported.

#### How much annotation the rules changed

The inventory of rules was much more developed for colour than clothing. Colour had 94 correction rules, 76 positive rules, 47 negative rules, 109 specialization rules and 10 recursive rules. Clothing had 3 positive rules and 1 negative rule, with 0 correction rules, 0 specialization rules and 0 recursive rules recorded in the same inventory. These are counts of written rules by purpose. A large inventory in a category can reflect the amount of linguistic detail the annotators chose to encode, and a small one can reflect the early stage of work.

Specialization was the largest category in the colour inventory. The authors had therefore devoted considerable rule-writing to distinctions within the field and contextual uses of colour. Correction rules formed another substantial part of the work and could repair properties supplied by earlier processing. The smaller recursive inventory shows how selectively the authors used repeated application. It says little by itself about the amount of processing involved. The cost of a group of rules also depends on where its patterns can match and how many passes its edits induce.

The change logs count several things that can happen in one run. The authors report rule firings, word occurrences changed, word types changed, individual attribute changes, newly marked multiword expressions and changes to existing multiword expressions. A single edited occurrence can receive more than one attribute change. A word type can appear in multiple changed occurrences. A span can have its label revised while keeping the same boundaries, and the creation of a span records a different operation from that kind of revision. The separate columns let the reader see which aspects of the corpus representation were affected.

Word occurrences changed by corte-e-costura across selected AC/DC corpora CHAVE records the largest number of changed word occurrences among the collections shown.

**The numbers**

| System or setting | Word occurrences changed |
| --- | --- |
| AmostRA | 312 |
| ANCIB | 388 |
| Avante! | 4237 |
| CoNE | 393 |
| DiaCLAV | 7513 |
| Natura/Minho | 1388 |
| Vercial | 50,246 |
| CHAVE (this paper) | 132,244 |

CHAVE had 19,965 reported rule firings, 1998 word types changed and 242,486 attribute changes. The logs also show 2796 new multiword expressions and changes to 700 existing ones. Vercial had 2921 reported rule firings and 93,831 attribute changes, with 546 new multiword expressions and 99 existing expressions changed. The corpus description identifies CHAVE as a news collection and Vercial as material that includes Portuguese fiction, poetry and drama. The operations occur in collections with different compositions and different amounts of text.

The smaller entries convey some of the same distinctions. CoNE had 27 reported rule firings, 642 attribute changes, 1 new multiword expression and 0 changes to existing multiword expressions. DiaCLAV, a collection of regional newspapers, had 1973 reported rule firings, 13,116 attribute changes, 444 new multiword expressions and 25 changes to existing ones. The figures show that the implementation was doing more in production than adding domain tags to isolated words. It was also creating and repairing the structure used to represent phrases.

The counts are absolute. The paper does not give a common denominator of eligible colour or clothing occurrences for this comparison. A greater number of edited positions can reflect a larger collection, different vocabulary, different starting markup or broader rule coverage. The star on CHAVE identifies the largest displayed count under a measure of activity. It carries no claim that CHAVE ended up with the most accurate annotations. Similarly, the attribute totals show how extensive the interventions were, while the correctness of the resulting labels still depends on inspection.

The authors' account of using the program is positive about the ease of getting linguists into the cycle of writing a rule and checking its effects. The production runs support a narrower observation about scale. A rule system small enough for the project to put into service could make substantial recorded changes to existing corpora, including the creation of spans that corpus users could subsequently query. The paper reports that corpus creation slowed when the stages were added. The time taken by the computer and the time required from the linguist remain different quantities, and the experiments give numerical measurements for neither.

### What the ablations show

The paper reports no formal ablation in which a rule group is removed and the remaining system is scored under matched conditions. Its analyses instead explain why the annotators needed different kinds of rules, which patterns depended on earlier changes and where a broad rule needed a narrower scope. The inventories reveal where the work accumulated, while examples show how particular edits are meant to resolve a linguistic problem.

#### Defaults and exceptions follow the available clues

The discussion of *branqueamento* examines the decision to use a positive or negative pattern. A broad colour default can be followed by exclusions for a financial sense. Alternatively, a writer could begin by looking for contexts that positively identify whitening. The authors chose the exclusion strategy because the use connected with money supplied contexts they found easier to recognize. Their observation bears on rule construction. The search for an economical condition can favour identifying a frequent sense for removal when a different sense motivated the initial label.

The case qualifies how the paper's frequency motivation should be read. A default-plus-exceptions workflow can take advantage of skewed frequencies, and the annotators' actual choices also depend on how compactly context can be expressed. Counting the expected size of an exception set would leave out the work of identifying its members. The example demonstrates a reason to choose a negative pattern even where the sense removed is common. It gives no measured error count for the corresponding positive strategy.

Specialization addresses a different issue. A use can stay related to a broad domain and still require a separate label for a useful corpus search. A soccer mention of a yellow card is one example of how colour can acquire a specific function. A specialist label can preserve that information for users who want to count or inspect such cases. The large number of colour specialization rules documents the breadth of contextual distinctions being encoded. The paper provides no runs with that group removed from which to estimate its independent effect on the finished annotation.

#### A shared rule can need a local condition

The comparison between the clothing readings of *fato* and *terno* gives the rule writer evidence about geographic scope. Broadly transferring a clothing decision for *fato* from texts from Portugal into Brazilian material would expose a systematic competing reading. The example for *terno* has the other geographic direction. Both belong to corpora that the project represents in a shared query format. The contrast illustrates why interoperability at the level of processing makes contextual knowledge easier to reuse but cannot settle how a word should be read in each variety.

Subject matter creates a similar practical decision, even within corpora that can be compared directly. A pattern written around the uses of a colour word in fashion may encounter references with a conventional role in soccer. The authors initially distinguished general rules and corpus-specific rules, then found scope at the level of subject and variety useful as well. They also acknowledge that the appropriate scope can be unclear. When a condition works in one corpus, it might express a pattern shared more widely or exploit a local habit of writing. The paper illustrates the distinction with particular senses and leaves the question of transfer open for rules beyond those examples.

The CONDIV comparison provides corpus evidence of variation in the labelled field. Its genres differ in the frequency and range of colour vocabulary, and the ranking depends on which measure is used. Those differences reflect the texts as processed by the available annotation. The paper offers no paired CONDIV runs comparing domain-specific rules with a general-only configuration. Thus the comparison describes the resulting data and gives a reason for inspecting scope. It cannot isolate how much of any subject difference follows from rule choice.

#### Later patterns can use an earlier result

The examples involving coordination explain why the system makes edits visible immediately and allows another pass. The shade reading of *pérola* in the eyeshadow example is supported by its coordination with a colour term. After a rule has established the colour status of a neighbouring word, a dependent rule can use that status. Timing matters. If the relevant rule has already been tried at a position, another scan may discover the match made possible by the new label. If the annotation is already available when the rule is tried, the same reading can be installed in the current pass.

This is an analysis of the conditions that create a dependency between edits. It accounts for the decision to invoke recursive rules towards the end, when the surrounding classifications are in place. It also accounts for the authors' caution about the expense of these rules. Repeatedly revisiting positions adds work, and the stage serves patterns for which that extra inspection can change what the system recognizes. The paper reports neither a run restricted to a single pass for those sentences nor a score quantifying how many correct interpretations successive passes recover.

The examples of grammatical revision reveal a related dependency. The pattern for *cor de laranja* uses the grammatical tag of a preceding token to determine how to retag an existing expression, then changes semantic and grammatical information together. The pattern for *camisa salmão* uses the starting noun label for *salmão* as a condition of the repair. These examples explain why the ability to inspect previous markup and edit it in place matters to the method. The corpus logs combine changes from such operations and give no independent measurement of the contribution of grammatical repair to semantic coverage.

### Limitations

#### Limits reported by the authors

The authors describe the annotation and its counts as preliminary. The CONDIV material was still undergoing human revision. The clothing project was considerably less advanced than the colour work, and the clothing inventory contained very few implemented rules. The detailed clothing classes, discussions of garment verbs and decisions about figurative uses show the scope of the linguistic investigation. They cannot stand in for evidence of a mature annotation applied and checked across the corpora.

The implementation was slow, and its integration added time to creating a CWB corpus. The authors traded that time for separate, inspectable stages with logs. They also describe gaps between their rule language and more expressive CWB patterns. For example, their program could not use the CWB construction that restricts a query to a region identified by a structural attribute, such as a sentence, as a general pattern operator. This is compatible with the application's own sentence-by-sentence execution. The limitation concerns what the rule writer can express in a pattern. The paper also identifies missing support for forms of negation and regular expressions over attribute values or token sequences.

The authors caution that the colour indices were computed for collections of very different sizes. Scaling occurrence counts helps express text coverage, but the occurrence and discovery of distinct types still depend on the material sampled. They mention equal-sized random samples and theoretical estimates adjusted for size as possible ways to pursue more comparable estimates. The comparisons reported describe the counts they had at the time.

Decisions at the boundaries of the domains also remained open. The authors describe clothing terms that are too vague in isolation to receive a single fine-grained class, along with hard decisions about accessories, garment parts and materials. They document conventions for borderline cases, including decisions made where more than one analysis seemed defensible. A convention supports consistent annotation within the project. Its adoption does not establish that the same category boundary would suit a different investigation.

#### Limits of the evaluation and processing design

The paper demonstrates that rules were written, run and used to change the corpora. It leaves the accuracy of the released annotations undetermined by those measurements. The change logs cannot show how many changes an independent annotator would accept or how many relevant occurrences the rules missed. The study gives no independently reviewed test set, agreement measurement or comparison of final annotations against an established reference. The examples explain why selected edits make sense, while broader precision and coverage remain unmeasured.

The paper's judgment that linguists could work with the system after little learning comes from the authors' experience with the workflow. There are no timed annotation sessions comparing equivalent amounts of reviewed output. Rule writing can concentrate effort in reusable decisions, though time still goes into finding the pattern, testing it and resolving unexpected matches. The data describe computer operations and corpus changes. They leave open how the human effort compares with direct correction or with work in one of the other environments the authors considered.

Likewise, the rule inventory cannot test the frequency expectation attributed to Halliday. Validating that expectation in this workflow would require observing the pool of cases at each step and assessing which ones really needed correction. Counts of written rules describe what the team chose to formalize, and counts of edits describe what the resulting rules did. Neither includes all the judgments needed to establish an exception proportion.

Rules depend on the annotation state they receive. A pattern may rely on a noun tag or an existing span, so an error in either can affect whether the pattern activates. An edit to that tag may also affect other rules that use it. Reapplying rules after an upstream improvement preserves the rule writer's intervention in executable form. It does not itself confirm that the new set of matches is equivalent or that its new results are correct. The algorithm also gives rule order practical consequences, and its repeated mode depends on reaching an unchanged sentence. The paper supplies no general analysis of conflicting edits or convergence across arbitrary rules.

Finally, the results depend on the grammatical information, vocabulary and genre coverage of the Portuguese collections used. Newspaper text is particularly prominent in the corpus holdings described, and the available data by variety are uneven. A reusable rule language helps transfer decisions between collections, while the authors' own examples show why transferring a given rule needs judgment. The invitations to annotate further fields describe an opportunity to try the procedure under new conditions. The experiments furnish direct evidence for a developed colour effort and a much earlier stage of work on clothing.

### What came after

The authors identified two directions for developing the annotation process. They could continue refining corte-e-costura for AC/DC, or retain a simple way for linguists to write rules while using a more expressive system underneath. They also invited researchers working on other Portuguese semantic domains to supply their own lexicons and rules for application to the corpora. That proposal retained the division of work demonstrated in the paper. The researcher defines and documents the domain and its contextual cues, while the corpus infrastructure applies the rules and makes the annotations available for study.

The ReadingFood project is a later citing work concerned with food and drink in Portuguese and Brazilian literature. Its subject gives another instance of the research problem that motivates the earlier experiments. Studying a semantic field in collected texts starts with deciding what counts as a reference to the field and how to treat words whose interpretation depends on context. The citation establishes a connection between the works. Whether ReadingFood used corte-e-costura, inherited any of its rules or followed the same procedure for inspecting changes remains unspecified. [Comida e bebida nas literaturas portuguesa e brasileira: o projeto ReadingFood (2026)](https://md.research.elamur.ai/free/en/papers/santos-2026-comida-e-bebida-nas-literaturas/)

## Cite

Cite as Diana Santos and Cristina Mota. 2010. Experiments in Human-computer Cooperation for the Semantic Annotation of Portuguese Corpora. Proceedings of the Seventh International Conference on Language Resources and Evaluation (LREC'10).

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

```bibtex
@inproceedings{santos2010experiments,
  title = {{Experiments in Human-computer Cooperation for the Semantic Annotation of Portuguese Corpora}},
  author = {Diana Santos and Cristina Mota},
  booktitle = {Proceedings of the Seventh International Conference on Language Resources and Evaluation (LREC'10)},
  year = {2010},
  url = {https://aclanthology.org/L10-1318/}
}
```

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