Elamur Research

Leveraging Lexical Resources and Constraint Grammar for Rule-Based Part-of-Speech Tagging in Welsh

Paper · 2018 · Steven Neale, Kevin Donnelly, Gareth Watkins et al.

Summary

A dictionary can tell you that the Welsh word yn can be a preposition or a grammatical particle. To label an occurrence of yn in a sentence, you still have to decide what it is doing there. That decision is the central problem in part-of-speech tagging. A tagger assigns grammatical categories to words as they occur in text. The authors built CyTag for Welsh, where they describe a shortage of manually tagged sentences for training a statistical tagger. Their approach uses a resource that was already available at substantial scale, the open Welsh dictionary Eurfa, together with rules that use the surrounding words to resolve ambiguity.

CyTag starts by giving each word token a set of possible analyses. Eurfa supplies word forms, dictionary headwords and grammatical features such as number, gender and tense. CyTag also proposes analyses for words whose initial sounds or letters have changed through mutation, and for shortened forms that could come from different full words. The tagger passes these possibilities to Constraint Grammar, which can retain or discard an analysis when its conditions are met. A rule can, for example, use evidence of mutation on the following word to help decide how to tag the current one. Further checks handle some cases where the grammar leaves several readings.

The evaluation uses 611 manually checked sentences drawn from sources that include legislative proceedings, software instructions, Wikipedia and speech. On this corpus, the paper reports an F1 of 96.44 for the basic grammatical categories and 95.06 for the enriched tags, which distinguish finer features within those categories. When evaluation is restricted to the 5,198 tokens that had competing readings before the grammar ran, the corresponding F1 scores are 94.50 and 93.58. This subset matters because many tokens start with a single reading. It shows how the full pipeline fares on the cases for which the dictionary alone leaves a choice.

The analysis also shows where CyTag still struggles. The grammar is usually correct on the tokens it resolves to a single reading, while choosing the most frequent tag for a word is much less reliable among the cases sent to that fallback. The frequency lookup and a separate lookup of neighboring tag patterns were built from the same checked corpus used for evaluation, so the reported pipeline scores do not establish performance on an independent test set. The study demonstrates how a Welsh lexicon and contextual rules can work together while identifying ambiguities, including recurring errors on yn, that the combination still leaves to resolve.

Deep dive: Leveraging Lexical Resources and Constraint Grammar for Rule-Based Part-of-Speech Tagging in Welsh

CyTag uses a Welsh dictionary and Constraint Grammar to tag words in context, including forms changed by mutation or shortened by elision. · about 33 minutes to read

The problem and its context

Why a word needs a tag in context

A part-of-speech tag describes the grammatical role of a particular occurrence of a word. The unit to be labeled is a token, an occurrence at a position in a text. A dictionary may group many forms under the same lemma, the headword used to represent them, or list quite different analyses for the same written form. A tagger has to connect that word-level information with what happens at a particular point in a sentence. The CorCenCC project also wanted its tags to record selected features of Welsh morphology, the structure and variation of word forms. Identifying the word as a verb, for instance, could still leave decisions about tense, person and number.

The distinction between a written form and its analysis is especially important in the Welsh examples the paper discusses. Mutation can change a word at its beginning in a context where the unaltered form would be the more obvious dictionary entry. A shortened form can attach to a neighboring word and can have several possible sources. Both phenomena affect what it means to look a word up. The form visible in the text may be an uncertain guide to the headword, and knowing the headword may still leave more than one possible tag. The task therefore includes making plausible analyses available as well as deciding among them.

These distinctions had an immediate use in the project that commissioned the tagger. CorCenCC, the National Corpus of Contemporary Welsh, was planned as a 10 million-word collection of language from speech, writing and electronic communication. The project also envisaged contributions from Welsh speakers through crowdsourcing. A tagger for that collection had to produce linguistic annotation compatible with the project's own inventory and the transcription conventions for spoken material. A tagger that used a different set of labels might still identify verbs and nouns, but that alone would leave the project with work to do before it could use the output.

Where the supervision comes from

The paper describes statistical tagging as a way to estimate which label is likely for a word in context. A system can learn from such evidence as capitalization, recurring beginnings or endings, and the categories of neighboring words. It obtains the relationship between those clues and the intended tags from annotated examples. The authors use TreeTagger and the Stanford tagger to illustrate how established approaches made use of that kind of supervision. They cite Feature-Rich Part-of-Speech Tagging as an example of tagging that exploits information about words and their context.

For the authors, the availability of suitable annotations is what makes that approach difficult to apply to Welsh. A collection of untagged sentences can show what spellings occur or which words tend to appear together. To estimate from labeled examples when yn acts as a preposition and when it acts as a particle, the training material has to distinguish those uses. The authors argue that creating enough reliably labeled Welsh text to train a competitive statistical tagger would require substantial effort. The tagset requirement sharpens the problem because useful annotations have to make the distinctions that the corpus project intends to preserve.

A conventional rule-based approach places the supervision elsewhere. A specialist can specify which grammatical categories are plausible in a given environment and direct a tagger to apply that knowledge. The paper emphasizes the cost of designing and refining a large collection of such rules. It also discusses the Brill tagger as a way to acquire tagging rules from annotated text. Under that approach, automatic rule induction eases some of the burden of writing rules by hand, while the annotations remain a prerequisite. The paper treats the quantity of Welsh annotations as an obstacle to that option too. Brill’s rule-based tagger

CyTag shifts much of the specification to a lexicon. A word-level resource can already record that a spelling belongs to a particular headword and that the form has certain features. The authors argue that dictionaries of this kind are more readily available for lesser-resourced languages than fully tagged sentences. Their design lets the lexicon provide the range of grammatical possibilities for each form and gives rules the job of narrowing those possibilities in context. A rule can then refer to a category shared by many words. It can act, for example, on a following noun regardless of which noun the lexicon has identified.

The Welsh precedents

The paper describes the Welsh Natural Language Toolkit, or WNLT, as an earlier lexical and rule-based approach. It was built as a plugin for the GATE text processing platform. It searches a pre-defined lexicon and uses handwritten rules to reduce ambiguity. The paper gives examples in which word endings are treated as clues to noun gender. WNLT accordingly provides a Welsh precedent for combining lexical information with rules, even though the particular rules and annotation requirements discussed for CyTag are different.

The authors also mention the Welsh Parts-of-Speech Tagger API from Bangor University. It is described as a web service that supplies parts of speech and mutation information for Welsh sentences. Its presence matters to the history of the task because it shows that mutation had already been recognized as information a Welsh tagging tool should track. The paper gives the service a brief description. Its account of earlier methods concentrates on WNLT and the Bangor Autoglosser.

The Autoglosser is CyTag's closest methodological precedent. It was developed for conversational material involving Welsh, English and Spanish. It obtains possible readings from dictionaries and uses Constraint Grammar to prune those readings in context. Constraint Grammar is a framework for parsing that can express conditions on visible forms and grammatical analyses. As used by the Autoglosser and CyTag, its starting point is a collection of alternatives associated with each occurrence in the text. Those alternatives make it possible to ask both what the current word could be and what neighboring words could be. Karlsson’s Constraint Grammar framework

CyTag brings that design to the contemporary Welsh corpus project. Its immediate aim is to produce the project's labels with lexical information from Eurfa and a grammar for Welsh. This is a narrower engineering problem than learning an unrestricted mapping from sentences to tags. The lexicon and tagset determine much of what a reading can contain, and the grammar works on that representation. The resulting division of work explains why the authors devote as much attention to how a candidate reading gets into the system as to the rules that remove it.

The method, step by step

What CyTag is choosing

The CorCenCC inventory contains 145 enriched tags that map to 13 basic categories. The basic categories follow EAGLES conventions and cover major classes such as nouns, verbs, adjectives, pronouns and prepositions. They also include punctuation, Welsh particles and a category for other forms, including symbols and abbreviations. The enriched tags encode distinctions relevant within a category. A noun tag can record feminine gender and singular number, and a verb tag can specify a tense together with person and number. A relative pronoun and a dependent pronoun can have different enriched tags while sharing the basic pronoun label.

The relationship is visible in the tag names. E identifies a noun at the basic level, while Ebu specifies a feminine singular noun. B identifies a verb and Be identifies a verb noun, the form the authors relate to an infinitive. The name of an enriched tag can therefore represent a bundle of features that belongs to a recognizable grammatical class. The tagger's choice can be read at either level. A reader interested primarily in the broad distribution of nouns and verbs can use the basic categories. An analysis that relies on noun gender or verb tense needs the finer labels.

CyTag works with readings, which carry more information than the ultimate tag. A reading can include the lemma, the grammatical analysis, a language code, the position of the token and an English gloss from the lexicon. It can also carry a flag for a hypothesized mutation. The constraint engine receives the readings for a token together as a cohort. A cohort can contain multiple dictionary interpretations even if those interpretations carry the same grammatical label. This distinction becomes important after the grammar runs, when CyTag can sometimes deliver a tag despite lingering uncertainty about the meaning.

How CyTag assigns a Welsh part-of-speech tag

The steps in order.

How CyTag assigns a Welsh part-of-speech tagStep 1: Recognize punctuation, numbers, symbols and listed abbreviations1. Recognize punctuation, numbers, symbols and listed abbreviationsStep 2: Look up word forms and possible lexical sources2. Look up word forms and possible lexical sourcesStep 3: Assemble candidate readings with grammatical features3. Assemble candidate readings with grammatical featuresStep 4: Apply contextual rules to select or remove readings4. Apply contextual rules to select or remove readingsStep 5: Resolve remaining choices with lists and lookups5. Resolve remaining choices with lists and lookupsStep 6: Return tags or retain unresolved cases6. Return tags or retain unresolved cases

Recognizing forms with directly assignable tags

CyTag first identifies tokens that the authors consider straightforward to classify without consulting the main lexicon. Regular expressions recognize such forms as punctuation marks, digits and symbols. Curated lists called gazetteers identify known acronyms and abbreviations. The Welsh acronym GIG and abbreviations such as Cyf. illustrate the kinds of items those lists handle. A recognized item can receive the appropriate tag immediately. Its category is then available when the grammar considers the surroundings of another token.

This stage separates a surface recognition decision from a lexical one. The shape of a digit sequence can be enough to assign its category, while the shape of a Welsh form such as a leaves several grammatical possibilities. Recognizing the more determinate cases early also means that a small or unusual token does not necessarily have to find its way into Eurfa to be handled. A lookup miss later in the process has significance only after these available paths to a tag have been considered.

Getting lexical candidates from Eurfa

For the remaining tokens, CyTag looks up the written form in a lexicon extracted from Eurfa v3.0. The paper gives the derived lexicon a size of 210,438 Welsh word forms. It describes Eurfa itself as containing approximately 211,000 forms derived from 10,393 Welsh lemmas. These counts are for different objects. The smaller written inventory belongs to the lexicon CyTag uses, while the estimate and headword count describe Eurfa. Forms and lemmas also serve different purposes. Many forms can give access to the same lemma, with grammatical features establishing how each form differs.

Eurfa records lexical categories and features such as gender, number, person and tense. CyTag maps those descriptions into the CorCenCC inventory. When there are several matching entries for the written form, it builds readings for the alternatives. For a, the authors show a coordinating conjunction corresponding to and, a relative pronoun with a use comparable to who, and an interrogative particle used in forming questions. These analyses are all plausible at lookup time. The lookup is deliberately a way of retrieving the possible labels, since the sense in which the word is used belongs to its occurrence in the sentence.

The mapping puts dictionary-derived analysis and context in a shared representation. A rule concerned with nouns can refer to the general noun category even when the lexicon has supplied a more detailed noun reading. The specific features remain available to rules that need them, and the enriched label can be returned once the reading is selected. This is how the same lexical description can support a general decision about a neighboring word and a detailed output tag for the noun itself.

Keeping analyses for mutated forms

CyTag also checks whether a token could have a changed beginning because of mutation. The paper distinguishes aspirate, nasal, soft and added-h mutations. Examples such as car becoming char in ei char or nghar in fy nghar show why an exact match on the surface form gives an incomplete view of the possibilities. A form beginning in ch or ngh can lead the tagger to test a candidate beginning in c. If the candidate form is present in the lexicon, CyTag adds readings for it and records the kind of mutation that could explain the spelling.

The process treats the changed beginning as a hypothesis. A surface form can be an ordinary dictionary match in its own right and be compatible with a mutation analysis of a different lexical form. The paper's example is mae. A direct lookup yields the present-tense reading from bod, corresponding to an occurrence of be. The initial m also permits a nasal mutation analysis linked to bae, meaning bay. The two readings differ in both lexical identity and grammatical category. Selecting the noun just because an initial mutation is possible would make the spelling carry more information than it actually does. CyTag passes both analyses on, and the mutation flag is attached to the reading that depends on it.

The soft mutation involving initial g exposes a detail in the paper's description. The worked example presents wlad as a soft-mutated form of gwlad. The surrounding description of the special lookup procedure says it removes an initial g from tokens that have one. The example establishes the intended grammatical relationship and shows a soft-mutation flag in the analysis of wlad. The two accounts give different directions for the character change, leaving the exact lookup operation for that case unclear.

Mutation information can affect decisions about either the mutated token or its neighbor. For the mutated token, it restores a lexical possibility that might otherwise be missing. For the neighbor, the kind of mutation represented in a reading can be evidence of what grammatical environment the neighbor creates. The method can therefore use the same information both to expand the set of analyses early and to prune it later. The two operations have distinct triggers. An initial letter pattern can justify considering a reading, and a contextual rule can justify choosing a reading when the relevant conditions are met.

Expanding shortened forms

The authors also handle elision, where a shortened form can be attached at the beginning or end of another word. The surviving letters do not always identify their source. A final ’n can represent yn or ein, and those full forms themselves lead to different grammatical analyses. In this case CyTag looks up both sources. The lexicon contributes readings for yn as an uninflected preposition, a predicative particle and a verbal particle. The reading from ein is a dependent pronoun corresponding to our.

The aim is to preserve the relevant choices after the spelling has lost some of its information. This differs from recognizing an abbreviation on a list with a directly assigned category. The expansion of an elision can reveal additional ambiguity, including ambiguity in the tag of an individual full form. A lookup that settled on yn at once would drop the possible pronoun. A lookup that returned only the prepositional interpretation of yn would also lose readings that matter in typical Welsh constructions described by the paper.

As with mutation, the original token still has a place in the sentence and the alternative analyses travel with it. The words around that position supply the evidence the next stage needs. CyTag thus avoids requiring a separate final decision on what the shortened form came from before its possible grammatical roles are available. The paper explains this multiple-lookup procedure through examples of shortened forms. Its focus is the assignment of readings once such a form is treated as a token.

Applying the contextual grammar

CyTag passes the cohorts to VISL CG-3, supplied with a Welsh grammar file containing 243 rules. Rules can select a reading or remove it based on the parts of speech, morphological features or mutation types associated with nearby tokens. The general rule form in the paper is:

action (reading) if (neighbour (features))

action is the operation the rule performs, such as selecting or removing a candidate. reading is the analysis it acts on at the current token. if makes the operation conditional. neighbour specifies the relative position of the token to inspect, with 1 for the next token and -1 for the previous one. features gives the test on that token, which can refer to a grammatical category, morphology or a mutation flag. The parentheses group the target of the action and the context the rule tests.

The authors illustrate selection with yn in a clause saying that Wales is a Celtic country. In this context, the candidates for yn include a preposition, a verbal particle and a predicative particle. The next word, wlad, has a noun reading linked to gwlad. The grammar reaches the following rule if earlier rules have left the relevant choice open:

SELECT (“yn” U tra) if (1 (E));

SELECT retains the specified reading and discards its competitors. “yn” identifies the word in the target reading, and U tra denotes the predicative particle, written Utra as an enriched output tag. if introduces the condition, 1 points to the following token, and E is the basic noun category that the rule looks for there. The parentheses group the target and the condition, and the final punctuation terminates the rule. With the noun reading of wlad available, the condition applies and the rule retains the particle analysis of yn.

This example distinguishes the full linguistic explanation from the implementation of the decision. The authors explain the particle as connecting the subject with its description. The illustrated rule tests a local clue, the noun immediately after yn. It does not need to match every other element of the clause. The paper also makes the example conditional on what earlier rules have done. The local rule helps decide among the alternatives still available at this point in the grammar, so the illustration should be read as part of a sequence of decisions.

In a second example, the passage refers to cooperative companies in Wales. The form yng has competing readings in the cohort, and the following Nghymru carries a possible nasal mutation analysis of Cymru. The grammar can use that evidence to prefer the preposition:

SELECT (Ar) IF (1 (nm));

SELECT again keeps the targeted reading. Ar is the preposition category. IF introduces the condition, 1 points to the following token, and nm is the flag for a nasal mutation reading. Parentheses delimit the target and the contextual test, and the final punctuation closes the rule. In this passage, the test can be met by the cohort for Nghymru, and the prepositional reading of yng is selected over the competing pronoun reading.

The two rules show why the grammar receives more than a flat list of coarse tags. In the first case, a basic noun category is enough for the condition. In the second, the relevant information is a feature of how a neighboring form relates to its dictionary entry. The initial lookup stage had to preserve that relationship for the rule to use it. The spelling change serves as contextual evidence because the lexicon and the mutation procedure have represented it in a form the grammar can test.

Resolving choices left by the grammar

When different readings agree on the same enriched tag, CyTag can take the tag they share. The paper gives ceisio and its soft-mutated form geisio as examples. The dictionary includes glosses corresponding to try and seek, and both entries use Be. It is possible to output the verb-noun tag while leaving the distinction between those meanings unresolved. Agreement on the output label is enough for this step. The system is being evaluated on that label, with the glosses retained as part of the lexical information.

CyTag makes a distinct assumption for capitalized forms with no lexical reading. It can assign them provisional masculine and feminine proper-noun readings. The authors use Eleanor to show how the process begins without having established either gender. After the grammar stage, remaining choices of this kind can be checked against lists of masculine given names, feminine given names, surnames and place names. The lists were built by querying DBpedia. A match in a single given-name list can support its gendered tag. The procedure uses the neutral proper-noun tag for forms found in both given-name lists, forms treated as surnames or place names, and forms absent from the lists.

Here the neutral tag expresses a choice at the level supported by the procedure. The system is still making an assumption that the capitalized form is a proper noun. Its decision about gender has a separate basis. In the case of a missing name-list match, a neutral proper-noun assignment preserves the broad assumption without specifying gender. The evaluation can then ask whether the broad assignment was right and whether it delivered the enriched tag expected by the annotation.

Building the fallback lookups

For ambiguity left after those checks, CyTag has two dictionaries derived from the 611-sentence reference corpus. The tag-token coverage dictionary records the tag most frequently assigned to each distinct token form in that corpus. The authors count the observed assignments of the CorCenCC tags to that form. A residual case can then be looked up by its spelling. For yn, the example entry is:

{“yn”: “Arsym”}

“yn” is the surface form used as the lookup key, and “Arsym” is the uninflected preposition tag used as the value. The braces enclose the example entry, and the colon pairs the key with the value. The entry records the leading label for that form in the reference material. It gives CyTag a default for remaining cases and does not encode the particular constructions that made the preposition appropriate in those sentences.

The second dictionary uses n-grams, contiguous sequences considered here in windows of 3 tokens. The authors go through the windows in a sentence, record the tags on either side of the center, and use the center's label as the value to recover. The center position is represented by a placeholder when the pattern is looked up. An example entry is:

{“[‘Bpres3u’, ‘find’, ‘Utra’]”: “Egu”}

Bpres3u is the tag for the third-person singular present verb immediately before the unresolved token. find marks the center whose tag is sought. Utra is the tag for the predicative particle immediately afterward. Egu is the masculine singular noun tag stored as the value. The square brackets group the ordered pattern, the commas divide its positions, the braces enclose the dictionary entry, and the colon maps the pattern to the proposed center tag. When the flanking tags match, the stored tag can be considered for the unresolved position.

These lookups use different information. The first can make a proposal when the token's spelling has a known default under the annotated distribution. The second can make a proposal based on the immediate grammatical context, regardless of the center word in the example from which that pattern was stored. The paper describes the sequence lookup as a final possibility when ambiguity persists. It leaves details such as competing center tags for the same neighboring pattern unspecified. The evaluation furthermore gives a separate outcome count for the coverage lookup, while the sequence lookup has no separately identified result.

Experiments and results

How the reference corpus was made

The authors use a corpus of 611 sentences and 14,876 tokens for evaluation. The material comes from eight example input files distributed with CyTag. The files draw on Kynulliad3 for Welsh Assembly proceedings, Meddalwedd for translations of software instructions, Kwici for Welsh Wikipedia articles and LER-BIML for spoken material across domains. The collection also includes short abstracts from additional Welsh Wikipedia articles. This gives the tagger a mixture of text originating under different conditions, including transcription and translation as well as writing for an encyclopedia.

The procedure was to run CyTag over the sentences and then have a Welsh speaker check each token's output. Where the system had assigned an incorrect label, the checker recorded the intended tag using the CorCenCC inventory. The checked corpus is what the paper calls its gold standard, meaning the reference against which CyTag's tags are assessed. The tagged output used as a starting point and the checked labels used for scoring have different roles. The first provides an annotation draft. The latter incorporates the human corrections and is used for the fallback dictionaries as well as for evaluation.

The evaluation looks at the same output at different levels of detail. At the basic level, the question is whether the grammatical category agrees with the reference. At the enriched level, the label has to include the correct finer distinctions too. The study also identifies the tokens for which there was more than one reading before Constraint Grammar ran and reports scores for that group. This is a subset defined by CyTag's input to the grammar, rather than by what annotators judged linguistically ambiguous.

What the comparisons measure

The paper reports precision, recall and F1. Precision concerns correctness among assignments made. Recall concerns how much of the target annotation the system recovers, and F1 combines precision and recall. The paper also gives counts of correct assignments and distinguishes assigned tags from cases that are still ambiguous or remain unknown. These counts matter because the pipeline can finish without an answer for some tokens. A token with competing readings at the end poses a different problem for the tagger from one for which the lookup and recognition steps have furnished no reading.

The exact denominator for recall is left unspecified in the account of the evaluation. The printed precision, recall and F1 should accordingly be read as reported measures, together with the explicit corpus and outcome counts. In particular, the recall figure and the number of tokens receiving a tag are separately reported quantities. The counts provide a direct description of the output even where the prose leaves the details of scoring underdetermined.

The paper compares its results with previously published figures, instead of running alternative Welsh taggers over the same checked sentences. WNLT had reported 81% precision, 82% recall and 81% F1. The Bangor Autoglosser had reported accuracy of 98% on Siarad, a Welsh-English corpus, and 99% on Patagonia, a Welsh-Spanish corpus. CyTag's authors interpret their F1 results as an improvement over the earlier WNLT figures and as approaching the Autoglosser's reported accuracy. Those are comparisons with the literature. The datasets differ, and accuracy and F1 are distinct measures.

The authors also use earlier work to give a sense of the amount of annotated material statistical tagging can require. For TreeTagger they cite reported accuracy of 82-84% with 10,000 training words, 91-93% with 100,000, and 94-96% with a training corpus of 1 million words. The Stanford tagger is described as reaching over 97% accuracy. These figures illustrate why the authors sought an approach that could reuse dictionary entries without requiring a large annotated Welsh training corpus. They describe the other systems' evaluations and cannot serve as matched measurements of CyTag's relative accuracy.

Results for all tokens and for initially ambiguous tokens

Across the 14,876-token corpus, CyTag assigned a tag to 14,403 tokens. It left 216 ambiguous and 257 unknown. Of the tokens evaluated, 13,866 received the correct basic tag and 13,488 received the correct enriched tag. For the basic categories, the paper reports precision of 96.27, recall of 96.61 and F1 of 96.44. For the enriched labels, it reports precision of 93.64, recall of 96.52 and F1 of 95.06. The enriched values are lower, as would be expected when an output has to agree with the reference on finer points as well as the broad category.

CyTag F1 on all tokens and initially ambiguous tokens in the Welsh gold corpus

Basic tags score above enriched tags in both groups, and the initially ambiguous group is harder at either level.

CyTag F1 on all tokens and initially ambiguous tokens in the Welsh gold corpusAll tokens, basic tags (this paper): 96.44All tokens, basic tags (this paper)96.44All tokens, enriched tags: 95.06All tokens, enriched tags95.06Initially ambiguous tokens, basic tags: 94.50Initially ambiguous tokens, basic tags94.50Initially ambiguous tokens, enriched tags: 93.58Initially ambiguous tokens, enrichedtags93.58
The numbers
System or settingF1
All tokens, basic tags (this paper)96.44
All tokens, enriched tags95.06
Initially ambiguous tokens, basic tags94.50
Initially ambiguous tokens, enriched tags93.58

The restricted evaluation covers 5,198 tokens with multiple readings before the grammar. Of these, 4,885 received the correct basic tag and 4,800 received the correct enriched tag. The basic results for this group are precision of 93.70, recall of 95.31 and F1 of 94.50. The enriched results are precision of 91.99, recall of 95.23 and F1 of 93.58. The reported scores show that the tagger typically reached the appropriate label even in a group where it had been presented with more than one lexical reading. They also show a harder evaluation condition than the one obtained by including the readily assigned cases.

The full-corpus and restricted results answer related questions. The former describes the practical output of the pipeline on the sampled material, including many forms whose readings were easy to supply. The latter asks how it fares with the alternatives it actually generated. It can include tokens whose readings differ in sense but share a tag, and it excludes unknown forms with no initial reading. Consequently, it is a useful view of candidate competition rather than an exhaustive test of difficult Welsh words.

Where the assignments happened

Before the grammar and further disambiguation, the paper reports that 761 tokens had no reading. For 504 of these, capitalization prompted the assumption that the item was a proper noun. The paper gives slightly different counts for tokens with a single initial reading. Its stage table lists 8,917, while the accompanying prose gives 8,916. The count of 5,198 with multiple readings is consistent across the overall account and the restricted evaluation.

After the disambiguation steps, the stage table records 13,461 tokens in the row for cases resolved to one reading by the grammar. The prose later gives 13,361 for that count. The paper's component results separately report 13,101 correct basic assignments in this group, at 97.33%, and 12,772 correct enriched assignments, at 94.88%. The disagreement in the stage total makes it important to distinguish the table's count from the prose count and to report the success rates as printed.

The remaining paths illustrate the tradeoffs in obtaining a single tag. The paper counts 65 cases with two readings sharing a tag. It gives 406 correct basic and 359 correct enriched assignments for the provisional proper-noun route, and reports a single successful case from the name gazetteers. The coverage dictionary provided a tag for 372 tokens. Of those, 153 assignments agreed with the reference at the basic level, and the paper reports 153 correct at the enriched level as well. The corresponding success rate is 41.13% at either level. These are outcomes for the cases sent through each path. Their interpretation depends on what had already happened to those cases earlier in the pipeline.

What the ablations show

The paper contains no component-removal ablation. It instead compares evaluation conditions and reports outcomes by the route through which CyTag settled on a tag. These comparisons reveal which kinds of decisions were reliable in the corpus. They leave open how the complete system would behave if a rule class, a lexical resource or a fallback were removed.

Testing the cases that start with a choice

The initially ambiguous subset addresses a natural concern about the full-corpus result. If many tokens begin with a single reading, a high overall score could coexist with a grammar that struggles to choose between alternatives. The restricted analysis shows that CyTag also scores well among the 5,198 tokens that begin with several readings. The comparison narrows the claim from success at labeling ordinary input to success when the system's own candidates leave a choice. It gives direct evidence about that condition without needing to treat all tokens as equally difficult.

The subset evaluation still includes the full design downstream of candidate generation. A token in that group can reach the correct result through a contextual rule, agreement among surviving readings or a lookup. The analysis establishes how well the pipeline handles competing readings as a group. To see what happened specifically when the grammar resolved a token, the paper provides the separate path breakdown. This distinction matters when reading the subset scores as evidence about the handwritten rules.

Comparing routes to a single tag

The component breakdown reports 97.33% basic and 94.88% enriched correctness for the cases the paper attributes to Constraint Grammar. When two surviving readings shared a tag, the corresponding rates were 100% and 98.46%. The latter result has a straightforward rationale. A choice of English gloss typically contributes little to a POS decision when the readings already agree on the label. The remaining enriched error shows that agreement among candidates is only agreement about what the system has proposed. The agreed label can still differ from the reference.

Enriched tag accuracy by assignment route on the Welsh gold corpus

Agreement between surviving readings is highly reliable, while the most frequent tag is a weak fallback for the remaining ambiguous cases.

Enriched tag accuracy by assignment route on the Welsh gold corpusSurviving readings share a tag (this paper): 98.46Surviving readings share a tag (thispaper)98.46Constraint Grammar leaves a single reading: 94.88Constraint Grammar leaves a singlereading94.88Capitalization-based proper noun assignment: 71.23Capitalization-based proper nounassignment71.23Most frequent tag from the coverage dictionary: 41.13Most frequent tag from the coveragedictionary41.13
The numbers
System or settingAccuracy %
Surviving readings share a tag (this paper)98.46
Constraint Grammar leaves a single reading94.88
Capitalization-based proper noun assignment71.23
Most frequent tag from the coverage dictionary41.13

The rows describe different groups of tokens. Agreement between surviving readings is already a strong condition, and the group was small. The coverage dictionary receives unresolved cases for which earlier evidence has proved insufficient. Its low conditional success says something about relying on the common tag at that point in the pipeline. It does not establish that the lookup would be equally weak if applied to ordinary occurrences of those word forms or that skipping it would improve F1. Skipping it could leave some of the same tokens without a tag. The study does not report that experiment.

Capitalization supports the basic proper-noun tag more frequently than the enriched tag. The paper reports 80.56% accuracy at the basic level for these assignments and 71.23% at the enriched level. According to the authors, one source of difficulty is that the surface form and the context at hand may fail to indicate gender. The single successful gazetteer case is excluded from the chart because its result has little bearing on performance across names. The authors make this point explicitly even though the paper reports 100% for that case. The observation shows that the lookup can make a correct decision in this sample.

The sequence dictionary cannot be assessed in the same way. Though the method describes it as a final contextual lookup, the evaluation omits a separate success count for it. The coverage dictionary's rate therefore applies to the spelling-based method that the authors count in the results. It provides no quantitative basis for choosing between the two dictionary designs. Such a comparison would require observing their decisions on comparable unresolved tokens or measuring the complete pipeline with each in use.

What the tag hierarchy reveals

The basic and enriched evaluations use the same hierarchy of output labels. An incorrect choice of a fine feature can still preserve the grammatical class. In contrast, a preposition confused with a particle shows up at the basic level as well. Comparing the two levels lets the reader see whether adding the requirement to get the finer label right changes the overall picture substantially. The authors emphasize that the full and restricted evaluations both give relatively close F1 scores across the two levels despite the finer inventory containing many more labels.

In the discussion, they point to confusions between the predicative particle and uninflected preposition readings of yn. The same word serves as a successful example in the method and an error source in the results. These observations are compatible because the rule example illustrates a context with a usable clue. Around other instances of yn, the available clues and earlier rule decisions can leave the wrong interpretation. The authors see such recurring cross-category errors as candidates for targeted changes to the grammar.

The analysis does not tabulate how frequently each kind of confusion occurs. The distance between the basic and enriched scores therefore supports a general reading of performance across levels without locating most errors in a particular construction. The observations about yn give a plausible place to examine the grammar. The proper-noun breakdown also shows that fine distinctions can be difficult for a particular group even when the aggregate difference looks modest. Taken together, the analyses point to several sources of error whose effects are visible at different levels of the tagset.

Limitations

Limits and open problems identified by the authors

The authors highlight weaknesses among the cases left for post-grammar processing. Their frequency lookup has relatively low success on the remaining ambiguous tokens. They suggest revising the coverage dictionary and developing additional disambiguation procedures. The type of error they identify for yn helps explain how a default can go wrong. If the preposition is the most common analysis for the form, the dictionary can keep preferring it in constructions that require the predicative particle. A better overall default would still have to contend with the fact that the correct analysis depends on context.

The authors also identify unresolved proper-noun gender as a weakness and call for better ways to handle it. Capitalization supplies evidence for a broad category, and a name list can sometimes refine the analysis. Capitalization alone has limited information about the enriched label, and the evaluation contains too few gazetteer-resolved cases to establish how well that refinement works. The authors explicitly caution that a correct result for the single observed case cannot show whether other names will be tagged correctly.

The conclusion sets out additional work on differences between grammatical form and use. A noun may function adjectivally, and a plural form may be used to address someone respectfully in the singular. The authors propose adding auxiliary annotations for such cases. They also intend to recognize multiword expressions such as ar agor, which can function together like the adjective open. Token-level POS tagging supplies information about the pieces of such an expression. The expression's shared category or use calls for a further analysis that the authors place in future work.

How the evaluation constrains the claims

The reported results use the corpus that also supplies the coverage and tag-sequence dictionaries. Both lookups use annotations from material included in scoring. A token whose tag contributed to a dictionary can be evaluated in conditions where that dictionary is available to the tagger. The reference labels remain useful for describing performance on this collection, particularly for seeing which stages succeed or return unresolved cases. An independently checked collection, with its labels withheld from those dictionary-building steps, would answer the separate question of how the complete pipeline performs on unseen material. The experiment gives no such split.

There is also a difference between checking proposed tags and obtaining an independent annotation of the sentences. The authors describe a Welsh speaker correcting CyTag's initial output. This is a practical way to create a reference for the project's tagset. It leaves unanswered how consistently different annotators would choose the same labels, especially for the less clear distinctions. The paper gives no agreement study. The procedure consequently establishes agreement with the checked annotations while leaving the reproducibility of the human choices unmeasured.

The mix of sources broadens the evaluation relative to a sample confined to one kind of edited text. The authors take this variety as grounds for expecting strong performance across domains. The evaluation pools the sources, however, and does not report separate scores on legislative proceedings, software instructions, Wikipedia and speech. A high pooled score can coexist with less favorable performance on a particular source. The study also gives no matched experiment testing a new domain kept apart from the material used to make the lookups. Its evidence about domain coverage is the composition of the sample, not a direct measurement of cross-domain generalization.

The historical Welsh comparisons need similar care. CyTag was evaluated with the CorCenCC inventory and the checked sample assembled for this paper. The nearest reported figures for other Welsh taggers come from their own work, with differences in corpora and metrics. The results establish the performance of CyTag under its reported setup. They cannot rank the systems with other factors held constant, or isolate whether any advantage comes from the size of the lexicon, the treatment of mutation, the rules or the evaluation conditions.

What the method leaves uncertain

The candidate grammar can select among readings that reach it. If a normal form, a mutated form or an elision lacks a needed lexical analysis, the rules have a narrower set of options than the reference annotation calls for. Conversely, letting many plausible readings through gives the grammar more ambiguity to manage. The paper demonstrates candidate generation and pruning with concrete Welsh examples, but it does not score candidate coverage against the gold labels before pruning. As a consequence, a wrong final label cannot in general be attributed from these results to missing lexical evidence or to a later decision that discarded good evidence.

The component comparisons have the same limitation for questions about individual rule families. They do not measure the effect of turning off mutation recovery or removing elision handling. The examples show how both procedures can supply a needed reading and how a mutation flag can support a contextual rule. The size and distribution of their contribution across the corpus remain unmeasured. Likewise, the count of rules describes the grammar delivered by the authors. There is no measurement of how much specialist effort its development took or how well a writer could reproduce the approach for a language with a different kind of dictionary.

Finally, the reporting leaves a few details uncertain that matter to reproducing the analysis. The stage counts differ between the table and prose for single initial readings and for resolution by Constraint Grammar. The exact recall denominator is unspecified, and the sequence lookup is described without a distinct evaluation row. These issues chiefly limit how precisely one can audit the stages and reconstruct the calculations. The reported F1 values and the counts of tags correct at each level still describe the stated evaluation, with the corpus overlap and the annotation procedure defining the scope of that evidence.

What came after

The paper concludes by proposing that a single pipeline combine CyTag and a version of the UCREL Semantic Analysis System adapted for Welsh. In that plan, CyTag supplies syntactic tags and another stage contributes semantic tags for the contemporary Welsh corpus. The proposal extends the division of work within CyTag to a larger annotation task. A tagger can deliver grammatical information for a later analysis that concerns meaning. The authors present that combination as planned work, with no results for the combined pipeline in this study.

Later citing work includes a study in natural language processing for under-resourced languages. That is the setting in which CyTag's original question arose. The Welsh project had usable lexical resources and a need for annotation at corpus scale, while large quantities of tagged text were hard to obtain. The citation places the study in that broader discussion. The bibliographic description leaves the manner of its use unspecified. Cunliffe’s work on natural language processing for under-resourced languages

The work on Welsh text profiling presents a toolkit for studying Welsh texts. Its subject relates to the corpus motivation for CyTag, where grammatical labels were intended to support work across a collection of contemporary material. The citation connects that tooling effort with earlier Welsh annotation research. The title identifies the profiling task, while the particular features or software components it takes from CyTag remain unspecified. Proffiliadur

The study of unsupervised labeling of Welsh mutation triggers takes up a phenomenon that CyTag uses as evidence. In CyTag, a possible mutation can connect a written form with a lexical entry, and a neighboring word's mutation can help settle a grammatical choice. The later title focuses on labeling the triggers of mutation. It identifies a shift in the object being labeled, from the grammatical role of a word in CyTag to the trigger of a change in the later work. The citation alone leaves the relationship between their labeling procedures open. Unsupervised Labelling of Mutation Triggers in Welsh

PyMUSAS concerns multilingual semantic annotation, a direction that relates to the extension the CyTag authors envisaged. Its title describes a semantic tagger that uses rules alongside a neural network and draws on silver-standard data. That identifies its task and stated design. It does not establish that the framework implements the Welsh pipeline proposed in the CyTag paper, or which CyTag outputs it might use. The link between them that the citation supports is a connection in the literature on building annotation systems, with grammatical and semantic tagging serving different roles. PyMUSAS

Cite

Cite as Steven Neale, Kevin Donnelly, Gareth Watkins and Dawn Knight. 2018. Leveraging Lexical Resources and Constraint Grammar for Rule-Based Part-of-Speech Tagging in Welsh. Proceedings of the Eleventh International Conference on Language Resources and Evaluation (LREC 2018).

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

@inproceedings{neale2018leveraging,
  title = {{Leveraging Lexical Resources and Constraint Grammar for Rule-Based Part-of-Speech Tagging in Welsh}},
  author = {Steven Neale, Kevin Donnelly, Gareth Watkins and Dawn Knight},
  booktitle = {Proceedings of the Eleventh International Conference on Language Resources and Evaluation (LREC 2018)},
  year = {2018},
  url = {https://aclanthology.org/L18-1623/}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/neale-2018-leveraging-lexical-resources-constraint-grammar/