Elamur Research

Open Resources and Tools for the Shallow Processing of Portuguese: The TagShare Project

Paper · 2006 · Florbela Barreto, António Branco, Eduardo Ferreira et al.

Summary

A space is an imperfect guide to where a word begins and ends. In Portuguese, a form written as deste can be a verb, in which case it stays together, or a contraction, in which case an analysis separates the preposition de from the demonstrative este. A tool that makes the wrong choice changes the units every subsequent tool will examine. TagShare addresses this problem and others like it by developing a hand-checked Portuguese corpus alongside a set of programs that turn raw text into linguistically annotated text. The project concentrates on shallow processing, which uses the structure of words and their immediate surroundings to identify basic properties such as grammatical category and inflection.

The corpus contains 1,029,728 tokens. Transcribed speech accounts for about a third, with material ranging from informal conversation and phone calls to broadcasts and formal speech. The written portion includes newspapers, books, magazines, and miscellaneous publications. Trained linguists checked the analyses, which record boundaries, grammatical categories, inflection, dictionary forms, and named entities. The annotation distinguishes such things as a fragment in a transcript, a verb acting as an auxiliary, and a word occupying a particular position in a fixed expression. Initial versions of the tools helped annotate the corpus, and the corrected corpus then helped the authors evaluate and improve the tools.

The software divides the work among specialists. A segmenter finds sentence and paragraph boundaries, and a tokenizer identifies the units to be tagged. The part-of-speech tagger assigns a grammatical category to each token. Separate tools analyze nominal and verbal inflection and recover dictionary forms, known as lemmas. A recognizer finds structured expressions such as dates, and separate generators produce inflected nominal and verbal forms. The reported results concern individual tools under different evaluation conditions. On a 12,000 sentence corpus, the segmenter achieved 99.94% recall and 99.93% precision. The tokenizer achieved 99.44% precision on ambiguous strings in its test corpus, and the grammatical tagger achieved 96.87% accuracy on the 10% held out from its training corpus.

Some analyses can stay unresolved even when the text has been segmented and tagged correctly. A noun can take different genders in different contexts, and a verb form can fit several combinations of lemma and inflection. In the nominal feature evaluation, rules based on endings and local agreement attained 99.05% precision with roughly 95% recall. A statistical approach attained full recall at 98.38% precision. The authors also report an analysis that retains several possible readings for a verb and a separate tool that chooses among readings. These choices illustrate what the project makes measurable: where a written form gives enough evidence for an analysis, what a nearby word can settle, and which decisions require further information.

Deep dive: Open Resources and Tools for the Shallow Processing of Portuguese: The TagShare Project

TagShare pairs a hand-checked Portuguese corpus with tools for finding sentence boundaries, tagging words, and analyzing their inflection. · about 31 minutes to read

The problem and its context

The units of analysis have to be established first

A computer receives a text as a sequence of characters. A linguistic analysis requires decisions about what those characters represent before it can attach a grammatical category to a word. A line break can occur in the middle of a sentence. A written contraction can contain elements that have different grammatical functions. A pronoun can be attached to a verb by a hyphen or occur inside its written form. For TagShare, decisions about such cases belong to tokenization.

What counts as a token depends on what the next stage needs to analyze. If a contracted preposition and article are left together, there is a single unit available to the tagger where the corpus convention calls for separate units. Conversely, if a verb is split because it happens to look like a contraction, the tagger has lost the verb it was supposed to classify. The case matters even if the inventory of ambiguous spellings is short. A small set of spellings can recur often enough for the issue to affect a substantial part of ordinary text.

Segmentation also creates a problem of representation. The corpus needs to show the units that the analysis has identified while retaining relevant information about the source text. TagShare records whether spaces surround punctuation in the original. This allows the annotation to display token boundaries consistently without making its inserted spaces stand in for the writer’s formatting. At another scale, the sentence segmenter joins lines belonging to the same sentence and can use paragraph boundaries to distinguish successive speakers in written dialogue. The source’s layout, the sentence, and the speaker’s turn each convey a different kind of information.

Once these units are available, an analyst can attach grammatical labels. These labels serve as common targets for human annotators and automatic tools. The label for a common noun answers a different question from the label for its gender or number. The distinction matters for both the representation and the accuracy of part-of-speech tagging.

More grammatical detail means more distinctions to learn

The paper describes a familiar approach to inflection in which a tagger chooses a grammatical label already extended with feature values. Under that approach, the tag for a noun also specifies the noun’s gender and number. This allows one tagging decision to deliver several pieces of information at once. It also divides the available examples among more tags. The authors identify data sparseness as the resulting difficulty. A distinction can be valuable to a linguist even when the training corpus supplies relatively few examples of a particular combination.

TagShare had to decide which distinctions belong directly in the grammatical inventory and which can be assigned by a dedicated tool. The tagset distinguishes auxiliaries from other verbs and gives different labels to several nonfinite verb forms. At the same time, the authors treat nominal inflection as a task that can use evidence other than the evidence available to a general tagger. A noun ending can suggest a default gender or number. A known determiner can supply the values for a noun that has the same shape in masculine and feminine uses. These are regularities of Portuguese morphology.

The same division of information is useful for identifying dictionary entries. Knowing that a word is an adjective may help establish the kind of entry to look for. Recovering the entry itself requires working out which changes produced the observed form. Several adjectives with different values for gender, number, or degree can share a single entry. The corpus records both the observed form and that shared form, allowing a reader to see how the word occurred and how its inflection was interpreted. The shared form is the lemma.

Verbs bring a different problem. The authors regard Portuguese verbal inflection as sufficiently complex to handle separately. A single spelling can be consistent with several persons or with several combinations of grammatical values. It can even be consistent with more than one infinitive if the system allows for possible verbs outside its dictionary. Enumerating these readings and choosing the reading that applies to an occurrence are distinct operations, even when both contribute to the same annotation.

Existing collections and annotation conventions

TagShare drew on material already collected at the University of Lisbon’s Center of Linguistics. CORALROM and Português Fundamental supplied spoken material, including transcripts of everyday interaction and more formal language use. The written portion incorporated material from PAROLE. The source corpora mattered because the project needed a substantial body of Portuguese before it could establish, check, and test a common analysis. TagShare’s contribution was to bring these materials into a collection with the annotation needed for its processing tasks.

The range of material also affects what the annotation can express. A collection with speech transcripts needs ways to mark unfinished or interrupted forms, sounds, and expressions used to manage conversation. Treating all of these as ordinary vocabulary would lose distinctions useful to someone studying talk. Written material, in turn, includes conventions such as line breaks and punctuation around dialogue that a segmenter needs to interpret. The corpus combines these demands within one scheme while preserving categories specific to speech.

For named entities, TagShare adopted an existing convention in which each token is marked according to whether it begins an entity, continues one, or falls outside one. The entity type is added to the boundary marking when appropriate. This lets a sequence of token-level tags specify both the extent of a name and the kind of thing it names. A different layer can give a grammatical tag to each of its words. The paper uses these layers to distinguish ordinary grammatical analysis from named entity recognition.

The tasks fit together because each produces information the next can use. The authors call the processing shallow because it works mainly from word structure and limited context. A shallow analysis can establish that a sequence is a date, or that an article and a noun agree, using evidence close to the expression. Other decisions may depend on a grammatical relation farther from the word or on what the word means in its sentence. The project’s modular design gives those decisions a place to enter when a task needs them.

The method, step by step

Building the annotated corpus and the tools together

TagShare presents the software in the order a raw text meets it. The opening stages establish the text’s boundaries and grammatical categories. Later stages add features, lemmas, and information about identifiable expressions. An output from one stage becomes the input to a following stage, so a component can use distinctions already made upstream. The flow describes the annotation workflow. The project also built generators that take an analysis or a dictionary form as input and produce inflected words.

From raw Portuguese text to layered annotation

The steps in order.

From raw Portuguese text to layered annotationStep 1: Mark sentence and paragraph boundaries1. Mark sentence and paragraph boundariesStep 2: Resolve contractions and detach clitics2. Resolve contractions and detach cliticsStep 3: Assign a grammatical category to each token3. Assign a grammatical category to each tokenStep 4: Add nominal inflection features4. Add nominal inflection featuresStep 5: Recover nominal dictionary forms5. Recover nominal dictionary formsStep 6: Analyze verbal features and dictionary forms6. Analyze verbal features and dictionary formsStep 7: Recognize and normalize structured named entities7. Recognize and normalize structured named entities

Corpus construction follows a related process with a human check. Early versions of the tools supplied an initial analysis, and trained linguists checked that analysis. The corrected material served as an evaluation resource and informed later improvements to the software. Thus the automatic annotation and the checked corpus have different roles. One supplies candidate analyses at scale. The other records linguistic decisions that can be used to assess those analyses.

The annotation is layered even where several values appear together in the printed form of a token. Slashes separate the written form, the lemma where applicable, and the grammatical label. A hash introduces inflectional information attached to the label. This gives a corpus reader access to the original word form and its analysis without conflating the two. For the nominal classes, the lemma usually follows the dictionary convention of using the masculine singular where that form exists. For verbs, the lemma is the infinitive.

The grammatical label can also identify a word’s role in a fixed expression. The scheme gives components of an expression a common category prefix and records each component’s position. In a pé, meaning “on foot,” the words stay separately visible while their tags indicate that they form an adverbial expression. For a multiword preposition, the same principle identifies the sequence as a preposition while preserving the boundaries of its components. This is a form of linguistic annotation.

Nominal features include values for gender and number. The corpus also records degree where appropriate, such as a superlative for an adjective or a diminutive for an adjective or noun. A feature value can be underspecified, so the representation has a way to signal that the value is unsettled. Verbal annotation includes mood, tense, person, and number. The grammatical inventory distinguishes an auxiliary in its finite form from an infinitive or gerund auxiliary, and distinguishes participles used in compound tenses from other participial uses. These decisions preserve grammatical differences while keeping feature values separately visible.

Speech receives its own distinctions at the token level. The paper includes labels for discourse markers, fragments, paralinguistic material, and extralinguistic material. A truncated attempt at a word can therefore be marked as a fragment even if a recognizable full word follows it. A sound rendered in a transcript can carry a different label from a word in the surrounding sentence. A transcript may need both kinds of marking in the span of a single turn.

Finding text boundaries and lexical tokens

The first software component marks sentences and paragraphs. It uses rules represented as a finite-state automaton. A finite-state procedure keeps track of a current state and uses the incoming material to determine what state follows. Here that arrangement allows the authors to encode decisions about sentence and paragraph boundaries, including conventions of Portuguese orthography. A sentence that crosses a line break can be kept together. Paragraph markings can indicate a switch of speakers in dialogue.

The tokenizer takes the resulting text and finds units for lexical analysis. It uses whitespace for straightforward boundaries, with rules for cases where the written spaces give an incomplete account. A contraction such as pela yields por and a. In a form such as viu-o, the attached pronoun is separated from the verb. A pronoun attached after the verb is enclitic. The paper also treats mesoclisis, in which the attached pronoun occurs within the written verb form.

An ambiguous contraction requires a choice about the whole occurrence. In a verbal use, deste is a single token. In its contracted use, it represents de followed by este. The fact that a spelling belongs to a list of possible contractions only establishes that the split is available. The occurrence has to be assigned one interpretation before downstream grammatical labels have the right number of places to attach. The paper identifies this as an important task of the tokenizer and refers to the authors’ more detailed work for its treatment.

The corpus conventions reach beyond deciding where to insert a boundary. Punctuation is marked with information about its original spacing, and words belonging to a fixed expression can remain distinct tokens while carrying labels that link them. Together these conventions make tokenization a choice about the representation of text. A unit for grammatical tagging can be separated from its neighbor even if the original spelling joins them, and separate units can participate in one lexical expression.

Assigning a grammatical category

The part-of-speech tool supplies a single category to each token. It was trained with TnT. The authors describe the package as using second-order hidden Markov tagging with backoff and suffix analysis. The sequence of categories matters in this approach. A category decision can use the preceding tag context rather than treating every token as a separate classification problem. “Second-order” refers to the use of the preceding pair of tag positions in that sequence. Backoff provides a way to use simpler evidence when a more specific pattern has too little support. Suffix analysis supplies information from the ending of a word.

The training material was a corpus of 260,000 tokens checked by hand for this task. Its training tagset had roughly 60 tags. This scale refers to the data used for the tagger described in the paper. The corpus assembled by the project is larger and contains additional layers. Likewise, the tagger’s single-category output is an early step toward the full analysis. Dedicated stages use it to determine which inflection or lemma procedure applies.

That routing matters when the same letters suggest different analyses. A nominal ending can be informative within the nominal classes. The verbal analyzer is concerned with combinations of tense, mood, person, and number that follow a different system. Once the token is classified, a specialist can consider only the kinds of information appropriate to that class. The following stages also benefit when distinctions such as auxiliary use or participial type are already visible in the categories.

Using endings and agreement to analyze nominals

The nominal featurizer works on common nouns, adjectives, and past participles. Its task is to recover gender and number, with masculine and feminine as the gender values and singular and plural as the number values considered in the tool’s description. The authors start from patterns in word endings. A reverse dictionary makes words with a shared ending easy to find together. From such groups they establish defaults, then consult machine-readable dictionaries for words whose recorded values differ from the default.

For the ending -são, for example, the rule gives feminine singular. Artesão, meaning a craftsperson, and brasão, meaning a crest, are masculine singular and are handled as exceptions. The rule lets a single regularity cover many words, while the exception entries preserve information about particular words. This is a dictionary construction procedure as well as an analysis procedure. The usefulness of the rule depends on how well the defaults and their exceptions represent the available vocabulary.

A default and an exception list can handle words that have stable values, but ermita has masculine and feminine uses with the same form. The authors call words of this kind uniform. To decide between the uses, the tool takes advantage of agreement in a noun phrase, a group organized around a noun. The tool can list the members of closed classes such as articles, demonstratives, ordinals, and quantifiers, together with the features associated with their individual forms. Their features can then be carried over to a compatible nominal in the phrase.

With o ermita, the article o supplies masculine singular. With a ermita, the article a supplies feminine singular. The spelling of ermita stays the same. The analysis changes because the determiner reveals how the noun is being used. This procedure uses the feature of a particular neighboring word rather than the frequency of the noun in either gender. It also uses the phrase context established by the agreement procedure, since another word merely occurring nearby need not agree with the noun.

When the tool has exhausted its local evidence, it can leave a feature underspecified. The paper describes two ways to carry the work further. One uses statistical disambiguation to provide an answer for the remaining cases. The other consults an analyzer that can find agreement outside the noun phrase. A nominal with no informative determiner in its own phrase may still participate in a grammatical relationship that supplies a feature. This broader use of agreement is relevant to syntax and grammar.

Recovering nominal dictionary forms

Nominal lemmatization uses word endings for a different task. TagShare’s feature tool asks what values a word has in its occurrence. The lemmatizer asks which canonical form should represent it in a dictionary. An ending that signals inflection can frequently be rewritten to recover the canonical form. The paper illustrates this with adjectives whose feminine forms end in -ta. In the appropriate entries, changing that ending to -to gives the masculine form. The same rule accounts for pairs such as aberta and aberto, and alta and alto.

The rewrite has a condition on its applicability. Carta, meaning a letter, and porta, meaning a door, have dictionary forms that already match those spellings. Both are exceptions to the rewrite. The purpose of the exception list here is to preserve the correct headword. In nominal featurization, by comparison, an exception supplies a different gender or number from the default. The same strategy of pairing rules with exceptions serves two separate decisions within lemmatization.

A lemma can bring together forms with more than simple gender differences. The paper takes alto, “tall,” as the shared lemma for a masculine plural, a feminine singular diminutive, and a feminine plural superlative. These forms contribute different information in the sentences where they occur. Recording the common lemma supports looking across those uses, while the remaining annotation preserves the particular inflection of each occurrence.

Another kind of ambiguity remains when the same form can belong to different entries. Copas can denote the suit of hearts or be the plural of copa, meaning a cupboard. The endings alone remain the same under either interpretation. The relevant choice is which word the author or speaker means. A procedure that makes that choice from the use of the word would need word sense disambiguation.

Enumerating verbal readings and selecting among them

The verbal analyzer assigns the infinitive and an associated inflection tag. For every proposed analysis, a lemma is given along with the corresponding mood, tense, person, and number values. The exhaustive version returns all the pairs it finds. Returning pairs is important: the features have to go with the infinitive that produces the observed form under those features. An inventory of lemmas and a separate inventory of possible feature values would leave that relationship implicit.

For diria, meaning “would say,” the paper gives two readings with the lemma dizer. The form can be conditional first-person singular or conditional third-person singular. The result already contains ambiguity even if the lemma is known. The same spelling also fits the present indicative third-person singular or affirmative imperative second-person singular of a possible infinitive, diriar. The authors use this example to distinguish an analysis supported by a conjugation pattern from an analysis of an established verb.

A list of approximately 16,500 known infinitive forms allows the tool to identify possible neologisms. If a proposed infinitive is absent from the list, the tool treats it as a candidate new word. Using the list as a filter limits the results to known verbs. In the diria example, such a filter would suppress the readings involving diriar, while leaving the distinct conditional readings of dizer. Dictionary status and contextual ambiguity therefore remain separate pieces of information. The authors built an additional tool for disambiguating the output of exhaustive lemmatization.

The project’s conjugator performs the complementary operation. Given a verbal infinitive, it generates forms from the conjugation paradigm. Its scope includes pronominal forms, compound tenses, regular and irregular past participles, and inflected participles. It also covers negative imperatives and courtesy forms for the second person. The authors used the conjugator while developing the exhaustive analyzer and made it available as a standalone service. The nominal generator likewise takes a word and requested feature values and produces the corresponding inflected form.

These generators belong to the project even though they serve a different direction of analysis. The pipeline begins with a form encountered in a text and asks how to describe it. A generator begins with a lexical item or intended properties and asks what form expresses them. Generation can help check that a proposed verbal reading yields the expected form. A form verified that way can still have several legitimate readings in analysis.

Finding and normalizing structured expressions

The named entity annotation uses the IOB convention. B marks the first token of a span, I marks a subsequent token within it, and O marks a token outside the spans being annotated. A suffix such as PER supplies the entity type on tokens belonging to that span. The paper lists person, organization, location, work, event, and miscellaneous among these types. It also describes grammatical labels that can identify components of expressions, such as a social title or part of an address. A component label describes the token, while the span annotation describes what it belongs to.

The available recognition tool uses rules to find patterned expressions. Its coverage includes numbers, dates, addresses, and measures. These expressions offer internal clues about their structure. A date, for instance, can have positions for values separated by punctuation, or it can contain a written month name. Pattern matching lets the tool identify the expression and assign a representation with explicit fields.

The paper demonstrates this normalization with 05-10-2005 and 5 de Outubro de 2005. The strings differ in how they present the month and how they join the date’s parts. The recognizer classifies both as dates and gives them matching year, month, and day values. Finding the boundaries would let a reader locate the date in the original. Assigning canonical values also makes the information in it directly accessible, a shallow form of information extraction.

The hand-checked corpus supplies span annotations for entities whose names can have less predictable internal structure. The authors describe plans to train a statistical recognizer from the IOB annotations to cover people, institutions, and locations. In the work reported, the structured-expression recognizer serves the classes for which the authors use patterns. The paper mentions online services for the pipeline through grammatical tagging, the verbal lemmatizer, and the conjugator.

Experiments and results

Corpus composition and the scope of the evaluations

The corpus contains 318,593 spoken tokens and 711,135 written tokens, for a total of 1,029,728. The counts describe the full annotated resource. The individual component evaluations use material chosen for their respective tasks, including a sentence boundary corpus, a hand-tagged corpus for grammatical tagging, a vocabulary list, and conjugated verb forms. Their results therefore refer to different units of analysis.

In the spoken portion, informal material accounts for 52.1%, comprising 165,838 tokens. Formal speech makes up 20.8%, or 66,274 tokens, and broadcast or other media speech accounts for 19.5%, or 62,116 tokens. Telephone material accounts for 7.6%, with 24,365 tokens. The paper describes communicative settings that include monologues, conversations, and formal exposition. These categories give an account of the material available for annotation. They describe corpus composition, with each percentage referring to the spoken portion.

In the written portion, newspaper material makes up 60.8%, or 432,232 tokens. Books account for 25.7%, or 182,890 tokens, and magazines account for 8.5%, or 60,482 tokens. Miscellaneous writing makes up 5.0%, with 35,531 tokens. The authors include material such as pamphlets and dissertations when describing this collection. Material previously gathered through PAROLE contributes approximately 260,000 tokens to the written subcorpus.

The evaluations use precision, recall, and accuracy where appropriate to the task. In boundary detection, precision asks how many boundaries proposed by the tool are correct, and recall asks how many boundaries in the checked annotation it finds. In single-label grammatical tagging, accuracy asks how often the assigned category matches the checked category. The authors also report precision and recall for tools that may leave a decision open. Reading those results requires knowing what counted as covering a case, particularly when a verbal analyzer returns several candidates.

Sentence segmentation, tokenization, and grammatical tagging

The sentence and paragraph segmenter was evaluated on a corpus of 12,000 sentences, with both kinds of boundaries checked by hand. The paper reports 99.94% recall and 99.93% precision for the chunker. The reference is human annotation of boundaries. The paper describes the rules for written dialogue, but gives the measurements as aggregate results for the tool. Those scores give the frequency of correct detection under that setup without assigning a separate rate to speaker changes or to line breaks inside sentences.

For tokenization, the test corpus contained 260,000 tokens. The paper identifies 13 Portuguese strings with the kind of ambiguity illustrated by deste. Occurrences of the ambiguous strings account for 2% of the test corpus. The tokenizer attained 99.44% precision on this class and full precision in the remaining cases. Reporting the classes separately makes the context-sensitive decision visible. If the evaluation gave only a single score spanning all cases, the many straightforward boundaries would also contribute to that number.

The tokenizer result evaluates the decisions about tokens. An incorrect split can also change the inputs seen by the part-of-speech tagger, but the paper does not assign a numerical downstream effect to these errors. Similarly, a high precision on the contraction class concerns the cases as represented in the test corpus. The paper emphasizes their frequency to explain why the ambiguity deserves explicit treatment in spite of the small inventory of spellings.

For grammatical tagging, the authors trained on 90% of a hand-tagged corpus of 260,000 tokens using a tagset with roughly 60 tags. On a single run over the remaining 10%, the tagger achieved 96.87% accuracy. This score measures the grammatical category decision. Gender, number, lemma, and entity type are additional pieces of annotation whose correctness would require separate checks. The benchmark described for this tagger is agreement with the labels on its held-out portion. The paper gives no competing tagger score under the same split.

Nominal features and the cost of supplying a value

The authors evaluated the nominal feature tool over a 260,000 token corpus. The dedicated approach based on endings, exceptions, and agreement within the phrase achieved 99.05% precision. It left roughly 5% of tokens with underspecified feature values, giving approximately 95% recall as reported by the authors. The experiment is about feature assignment within the nominal classes. The corpus size describes the evaluation material in which those classes occur.

A statistical approach to the remaining ambiguity reached full recall at 98.38% precision. Both reported precision scores belong to the nominal feature task, but they come from settings with different coverage. The lower-coverage setting can retain an underspecified result. The setting with statistical disambiguation fills the remaining cases, including those on which the earlier stage had insufficient evidence.

Nominal feature precision on the 260,000 token evaluation corpus

The setting that retains underspecified values has higher precision than the setting that uses statistical disambiguation to obtain full recall.

Nominal feature precision on the 260,000 token evaluation corpusDedicated rules and local agreement (this paper): 99.05Dedicated rules and local agreement(this paper)99.05With statistical disambiguation: 98.38With statistical disambiguation98.38
The numbers
System or settingprecision %
Dedicated rules and local agreement (this paper)99.05
With statistical disambiguation98.38

The paper also considers a syntactic analyzer that can find agreement outside the noun phrase. From an extrapolation involving 113 underspecified cases, the authors estimate that the analyzer can resolve 84% of those cases. The percentage describes the subset considered for this extension. The authors report that the projected recall gain yields a better F-measure than the traditional stochastic strategy of combining grammatical category and features in the same tag. F-measure combines precision and recall, so a procedure can gain on it by resolving more cases while preserving sufficient precision. The paper gives the ordering of the strategies for that comparison without numerical F-measure scores.

The statistical disambiguation result and the comparison with feature-extended part-of-speech tags refer to different choices. The statistical extension starts from the dedicated tool’s unresolved cases. The traditional strategy makes the part-of-speech tag itself carry the feature information. The syntactic extension instead draws on agreement relations that exceed the context used by the local rules. Keeping these comparisons distinct shows which intervention the paper associates with each result.

Nominal lemmas and the evaluation of vocabulary

The nominal lemmatizer was evaluated on a list of roughly 10,500 common nouns and adjectives from the TagShare vocabulary. The authors identify 19 entries with lexical ambiguity affecting the lemma. Their procedure cannot resolve those items, and from these cases they infer a recall score of 99.82%. This recall estimate concerns coverage of the evaluated vocabulary given the ambiguous items. It does not show how often such ambiguity arises among the running tokens of a sentence corpus.

On the remaining vocabulary items, the tool achieved 94.90% precision. The authors attribute observed errors to missing entries in the exception list and to the treatment of compounds. A missing exception allows a default rewrite to act on a form that should be preserved or treated differently. A compound can require an analysis of its parts beyond a single rewrite at the end. These are problems within the cases the tool attempts to resolve. The sense ambiguity illustrated by copas is a separate source of difficulty because a choice between its readings requires evidence about an occurrence.

The two numbers express different properties of the vocabulary test. The recall estimate reflects the small number of listed items acknowledged as unresolvable by the procedure. Precision reflects the quality of the outputs on the remaining items. A procedure can offer an analysis for nearly every form while still making errors on forms to which it applies a default transformation.

Verbal analyses on conjugated forms

Evaluation of the exhaustive verb lemmatizer used a corpus containing the full conjugations of 12,000 verbs, which together yielded around 800,000 verb forms. The authors report 100% precision for that version and 50% recall. The explanation they give for the recall result is that half of the forms receive more than one lemma–feature pair. The precision and recall must be read in light of that explanation. The result concerns the availability of the correct analysis in an exhaustive procedure whose output can be ambiguous. It cannot be treated as evidence that the system selected a single correct reading for every form.

The paper reports 96.51% accuracy for the version with disambiguation. That score concerns a system which selects an analysis, while the exhaustive system can preserve alternatives. The overview gives the size and nature of the evaluation for the exhaustive tool and refers to a companion study for the disambiguating tool. It supplies no separate split description alongside the accuracy figure. The metrics describe different output requirements, so the figures should be interpreted within their own reported setups.

The remaining components receive descriptions of their behavior. For the named entity recognizer, the paper illustrates successful normalization of date formats, without supplying a collection-level precision or recall figure. For the generators, the descriptions concern the kinds of forms they can produce. The experiment record consequently supports detailed quantitative claims about segmentation, tagging, and morphological analysis, with examples of output and coverage for other parts of the project.

What the ablations show

The paper reports no formal ablation study that removes pipeline components one at a time. It offers narrower comparisons and error analyses that reveal how particular kinds of ambiguity affect performance.

The tokenization analysis separates strings that admit competing splits from the rest of the test material. This identifies the class where extra linguistic work is required. For deste, the written characters are compatible with either a contraction or a verb. For an unambiguous contraction, expansion follows once the form has been identified. The reported results show that the tokenizer usually resolves the ambiguous class correctly, with the errors in the evaluation concentrated there. The paper does not report a baseline that always picks the same split, so the comparison characterizes the difficulty of the classes without measuring the gain over that policy.

The nominal feature experiment compares settings that handle unresolved cases differently. The dedicated featurizer exploits regular endings, dictionary exceptions, and local agreement. It can leave a value open after those sources of evidence have been used. Adding statistical disambiguation raises coverage to full recall, with lower overall precision. The two measurements describe a real choice about the output. A completed annotation supplies a value everywhere, while an underspecified annotation records where the dedicated procedure lacked evidence.

The additional look at agreement beyond the noun phrase asks how much of that missing evidence might be recoverable through syntax. An item like ermita can be resolved easily when it has an informative determiner. Cases still unresolved after the local method are a different population. The broader analyzer’s estimate concerns that population, and the resulting F-measure comparison suggests that syntax can help make dedicated feature assignment competitive with an approach that predicts enriched tags. The estimate gives no separate contribution for each kind of agreement relation.

The nominal lemma analysis distinguishes errors for which better lexical resources or word analysis could help from cases involving a choice of sense. If a required exception is absent, the default rewrite can be corrected by supplying the appropriate lexical entry. If an error comes from a compound, a procedure that analyzes compounds more effectively could address it. For an ambiguous item such as copas, a larger list of exceptions could store the different possibilities, but choosing among them still depends on the use. The paper’s error account therefore specifies where improvements to the existing method would help and where another kind of analysis is needed.

The comparison between exhaustive and disambiguated verbal analysis is about candidate generation and selection. The example diria confirms that a known infinitive can yield competing feature combinations, independently of the additional readings introduced by a possible neologism. An inventory of known verbs can restrict the candidate lemmas. It leaves the person ambiguity within dizer intact. The accuracy reported for the disambiguating tool addresses the selection task, although the paper gives no measurements that isolate the effect of filtering proposed neologisms.

Taken together, the analyses support distinctions among evidence from spelling, dictionaries, and grammatical context. They do not assign a numerical share of the pipeline’s success to each source. In particular, the nominal figures show how the complete dedicated approach behaves and how additional disambiguation changes its output. They leave open how much precision or recall each individual rule family contributes.

Limitations

Limits the authors state

The authors identify a limit of shallow nominal lemmatization when the relevant distinction is a distinction of meaning. The form copas can be interpreted as the playing-card suit or as a plural with the lemma copa. An ending-based rule sees the same characters in both uses. The authors identify prior sense disambiguation as necessary for resolving such cases. They also point to missing exceptions and difficulty with compounds as sources of errors in the current implementation. Those errors could be addressed within an improved morphological tool, whereas the choice of sense needs contextual evidence of a different kind.

The local feature analyzer also reaches a limit with nouns whose inflection is unresolved by their spelling and nearby agreeing words. Its underspecified tags represent that limit explicitly. The project examines broader syntax and statistical disambiguation as ways to handle the remainder, with different implications for coverage and precision. The discussion of syntactic agreement is an extrapolation from cases that local analysis had left unresolved.

The exhaustive verbal tool deliberately leaves ambiguity available in its output. A possible infinitive can produce the form according to the conjugation rules and still be unattested in the list of known verbs. Restricting analyses to that list would exclude potential new verbs. With or without that restriction, known verbs can generate the same spelling under more than one set of features. The separate disambiguator addresses that selection problem, while the exhaustive analyzer preserves what is possible under its rules.

The recognizer’s implemented coverage is limited to expressions whose internal structure can be matched by patterns. The authors mention people, institutions, and locations as targets for a later recognizer trained on span annotations. The corpus can already express these entity types. Its annotation coverage is therefore broader than the coverage the authors describe for the implemented recognizer. The paper also puts a noun chunker among the planned additions and describes a planned move to a more structured markup for the corpus.

Limits visible in the evaluation setup

The scores evaluate stages under their own conditions. The boundary result uses a corpus checked for boundaries, the grammatical accuracy comes from one held-out run, and the nominal lemma precision uses a vocabulary list. The verb evaluation for the exhaustive tool uses conjugated forms. An end-to-end assessment would need to follow the same stretch of raw text through each stage and check the resulting bundle of annotations. The paper provides no such aggregate measurement. A tokenizer decision can affect a tagger’s input, and a category decision can affect which inflection tool applies. The component figures therefore cannot be combined to infer the probability that a complete annotation is correct.

The written and spoken sections of the corpus are also unevenly distributed across styles. Newspapers account for the largest share of the written material, and informal material is the largest spoken category. The evaluation descriptions do not give scores broken down by these categories. The transcripts are a substantive part of the resource, but their presence alone does not establish that a tool performs equally well on spoken material and edited prose. A transcript can contain fragments and discourse markers whose treatment would be obscured by a score averaged across categories.

Several experiments use material of the same reported size, 260,000 tokens. The paper gives the division into training and held-out portions for grammatical tagging. The other results at that size have their own descriptions, and the recurring size is insufficient to establish that they share a split or evaluate on exactly the same material. Additionally, the paper gives no breakdown by known and unfamiliar vocabulary for the tagger. Its reported accuracy refers to the measured run, with no separate estimate for generalization to other sections or collections.

The nominal lemma test likewise supports conclusions about the listed vocabulary. A rare word and a frequent word can each occur once in a vocabulary list, with the test giving no account of how often readers would encounter either in running text. A few lexically ambiguous entries could differ greatly in frequency. Conversely, a problem affecting many rare entries could have a different practical impact in a token-level sample. The paper’s inferred recall and precision on the remaining items both need to be read against this vocabulary-based design.

The verb figures leave a different boundary on interpretation. Conjugated forms provide extensive coverage of what the analyzer ought to generate for the evaluated verbs. A generated paradigm does not provide a sentence context that tells the analyzer which person is intended for a shared form. The exhaustive tool’s scores are intelligible because the authors explain the effect of multiple answers on recall. The paper gives less detail about the data and split for the reported disambiguation accuracy, so that measurement has to stay with the task description the authors give it.

For the estimated syntactic improvement, the paper gives the number of cases examined and the percentage the analyzer could resolve. The comparison with enriched part-of-speech tags is reported as an ordering on F-measure, with no numerical values for that measure and no uncertainty estimate for the extrapolation. That evidence supports the authors’ claim that looking outside the phrase can recover information, while leaving the size of the gain in a wider evaluation unresolved.

Finally, the paper describes shallow processing as computationally efficient and the pipeline as extensible. Those descriptions explain why the system is organized around small, specialized stages. The evaluation figures are about the quality of selected analyses. They give no processing speed or resource-use measurements, and the discussion does not quantify what happens to downstream accuracy when a stage is replaced. The architectural advantages remain distinct from the accuracy evidence reported for particular tools.

What came after

A later work from 2022 addresses Portuguese grammatical dependencies using CINTIL data, LX Processing, and CLARIN support. Grammatical dependency annotation represents relationships among words, while the TagShare paper concentrates on the units and basic properties that can be identified through shallow processing. The later title places an annotated Portuguese data resource and processing tools alongside an account of grammatical relations. That establishes a connection in scope with TagShare’s pairing of corpus annotation and software. The citation alone leaves open which TagShare annotations, components, or conventions the later work inherited. Its stated subject is Portuguese Universal Dependencies in Universal Grammatical Dependencies for Portuguese with CINTIL Data, LX Processing and CLARIN support.

A later work from 2025 cites TagShare in a study framed around possible and impossible language learning across languages. That subject reaches beyond the Portuguese annotation tasks in TagShare. The title establishes a crosslinguistic study of learnability, and the citation establishes a connection to the TagShare paper. It leaves the role of the Portuguese corpus or processing tools unspecified. A claim that the later study used particular transcripts, grammatical labels, or lemmas would require details beyond the citation and title. The work is Anything Goes? A Crosslinguistic Study of (Im)possible Language Learning in LMs.

These later works place the citation in two research settings. One concerns how to represent Portuguese grammatical relations with corpus data and processing support. The other concerns learnability across languages. The paper’s own contribution remains the coupled development of checked Portuguese annotation and tools whose decisions can be examined at the level of boundaries, categories, and inflected forms.

Cite

Cite as Florbela Barreto, António Branco, Eduardo Ferreira, Amália Mendes, Maria Fernanda Bacelar do Nascimento, Filipe Nunes and João Ricardo Silva. 2006. Open Resources and Tools for the Shallow Processing of Portuguese: The TagShare Project. Proceedings of the Fifth International Conference on Language Resources and Evaluation (LREC'06).

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

@inproceedings{barreto2006open,
  title = {{Open Resources and Tools for the Shallow Processing of Portuguese: The TagShare Project}},
  author = {Florbela Barreto, António Branco, Eduardo Ferreira, Amália Mendes, Maria Fernanda Bacelar do Nascimento, Filipe Nunes and João Ricardo Silva},
  booktitle = {Proceedings of the Fifth International Conference on Language Resources and Evaluation (LREC'06)},
  year = {2006},
  url = {https://aclanthology.org/L06-1177/}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/barreto-2006-open-resources-tools-shallow-processing/