Elamur Research

Data-Driven Part-of-Speech Tagging of Kiswahili

Paper · 2006 · Guy De Pauw, Gilles-Maurice de Schryver and Peter Waiganjo Wagacha

Summary

A familiar spelling can still leave a reader with a grammatical choice. The Kiswahili form paka, for instance, has both noun and verb readings in the paper’s illustration. A program doing part-of-speech tagging has to choose a label for that particular occurrence. A spelling the program has never encountered poses a different problem, since there is no entry to consult in the first place. Guy De Pauw, Gilles-Maurice de Schryver and Peter Waiganjo Wagacha compare ways of handling both situations. They use the Helsinki Corpus of Swahili, whose grammatical labels give them examples to learn from and a reference for scoring predictions on separate sentences. They frame the comparison as an early benchmark for data-driven tagging in both Kiswahili and the broader Bantu language family.

The authors test MXPOST, TnT, SVMTool and MBT against a baseline built from word and tag frequencies. The baseline achieves 97.01% accuracy on blind-test words whose forms occur in training by using the usual label for each form. Its fixed fallback gets 18.59% right on words outside that vocabulary. Every individual tagger greatly improves on the fallback. MXPOST leads the individual systems at 98.44% accuracy across the blind test and 93.32% on words outside the training vocabulary. The systems also differ in the cost of getting those results. TnT is the quickest contextual tagger to train and apply in the comparison, while SVMTool takes considerably longer to fit and tags quickly once trained.

Pooling the predictions helps only with some decision rules. Equal voting and voting weighted by validation accuracy both finish below MXPOST overall. A manual allocation that gives MXPOST the largest vote brings overall blind-test accuracy to 98.56%. The highest overall result, 98.61%, comes from using a lexicon for a narrower job. If a form had a single recorded tag in training, the hybrid returns that tag. For forms with several recorded tags and forms missing from the lexicon, it uses MXPOST. The hybrid’s accuracy on unseen forms consequently stays at 93.32%.

The authors also ask how frequently the panel has the answer somewhere among its suggestions. An oracle that can consult the reference label would achieve 99.44% overall by accepting a correct proposal whenever one is available. The tested rules recover some of that opportunity, with different results on familiar and unfamiliar forms. The paper leaves open how much better the taggers could do with direct information about Kiswahili word structure. As tested, they use patterns in the written form as clues to affixation. The authors propose evaluating a step that analyzes the affixes before the program assigns a word-class label.

Deep dive: Data-Driven Part-of-Speech Tagging of Kiswahili

A comparison of Kiswahili part-of-speech taggers shows when context helps and why pairing MXPOST with a dictionary improves accuracy. · about 34 minutes to read

The problem and its context

A category belongs to an occurrence

The grammatical label one assigns to a word depends on what the word is doing in its sentence. A lexicon can record the categories a spelling has taken before. The tagger must turn that collection of possibilities into a decision at each position in the text. The resulting labels make grammatical information available to other language-processing components, which is why the authors treat tagging as a basic capability for work on a language.

The paper illustrates the problem with a short Kiswahili sentence that begins with paka and alianguka. The display gives paka both a nominal and a verbal possibility and presents alianguka as a verb. Read as a tagging exercise, the example shows two different kinds of information. The first spelling supplies candidate categories. The presence of a verb beside it supplies context for choosing a category in this instance. The paper uses the example to show why even a language with comparatively modest lexical ambiguity still presents decisions that a list of possible labels leaves unresolved.

Lexical ambiguity has a specific meaning here. It concerns the range of grammatical categories associated with a written form under the annotation scheme. The same spelling could have different senses within a category while posing no choice of POS tag. Conversely, a choice among POS tags can arise even when the reader has little trouble making sense of the sentence. What the tagger has to reproduce is the distinction drawn by the corpus’s labeling scheme.

It helps to distinguish the evidence available for different occurrences. A spelling that repeatedly takes the same tag gives a learner a strong lexical cue. A spelling with multiple recorded uses gives several cues whose relative value can depend on the sentence. A spelling absent from training offers no direct history of its tags, although the learner can still examine its letters and its neighbors. These conditions are observable before a system has to predict the answer. The experiments use them both to diagnose performance and to decide when different procedures should take responsibility for a prediction.

Why Kiswahili called for its own comparison

The paper describes data-driven tagging as a field with established results and reusable software for major Indo-European languages, including English, Dutch and German. Its account of work on Bantu languages emphasizes the stages that precede a large comparative evaluation. That work included deciding which grammatical categories to record and developing ways to analyze the internal structure of words. A tagset provides a set of allowable answers. An analyzer identifies possible structures. A comparative tagging experiment also needs enough labeled occurrences to fit the systems and judge the choices they make on new sentences.

Bantu morphology is part of the reason that word form matters in this comparison. The authors characterize the languages as generally agglutinating, so multiple grammatical elements can be joined in a written word. They also point to noun classes and concordial agreement. With agreement, grammatical marking on one word can reflect the class of another. A tagger may therefore find evidence both in the target spelling and in the surrounding sentence. A learner that relies on complete spellings can also encounter unfamiliar combinations of elements whose shorter pieces recur elsewhere in training. This gives a reason to distinguish access to a word entry from access to clues about word class.

The earlier Bantu work described in the paper took several forms. For Setswana, researchers adapted the EAGLES inventory of tags. For isiXhosa, researchers proposed a tagset and suggested exploring transformation-based tagging, in which learned rules revise earlier labeling decisions. The work on Sesotho sa Leboa combined symbolic rules with statistical tagging for corpus processing. For isiZulu, the paper describes a finite-state morphological analyzer at the prototype stage. Each effort addresses a different part of moving from running text to a grammatical analysis. The authors cite these projects to situate the Kiswahili comparison, whose starting point was a collection with POS labels already in place.

What the Helsinki corpus made possible

The Helsinki Corpus of Swahili, or HCS, was the product of a sustained effort to analyze written Kiswahili. In the authors’ description, its construction used a two-level finite-state formalism to describe word structure. A Constraint Grammar Parser helped choose among competing morphological analyses. The outcome included linguistic annotation with tags for word class. These are the labels the study takes as its reference.

The linguistic work that produced those labels and the learning experiment that uses them have distinct roles. Corpus construction establishes such matters as which distinctions should be recorded and which analyses fit particular occurrences. In the experiment, already labeled sentences become examples for supervised machine learning. The programs encounter instances of the corpus’s decisions during training and are evaluated on whether they can make corresponding decisions on held-out text. This gives a common target to systems that represent words and sentences differently.

By the authors’ account, the availability of reusable taggers made this transfer feasible once annotated data existed. There was evidence in earlier work that maximum entropy tagging worked well in direct comparisons. TnT represented a developed statistical approach with special handling for cases such as unfamiliar spellings and sentence boundaries. SVMTool had previously been compared favorably with TnT on English, and the authors describe its evaluation across other datasets and approaches as relatively limited at the time. These precedents explain the choice of programs. HCS gives the authors a way to see how they behave when the language and annotation change.

A second line of earlier work motivates testing combinations. According to the paper, extensive searches over settings and input features can reduce the effects of an algorithm’s particular preferences. In practice, taggers fitted to identical data still disagree. That disagreement creates a testable opportunity. A correct answer supplied by a dissenting system may be usable if a rule can recognize when to trust it. The Kiswahili study first establishes how well the taggers perform separately, then examines whether their different judgments help when they are available together.

The method, step by step

Giving each partition a job

The starting material is the POS-annotated portion of HCS. The authors clean the data, discard duplicate sections and retain 3,656,821 words in 169,702 sentences. They randomize the order of sentences before partitioning the corpus. Their aim is to distribute different kinds of usage across the data available to the experiment. The words within each sentence stay in sequence, preserving the local context that the taggers need. The paper describes the material and how it was divided and identifies the existing tagger implementations used for the runs.

The training portion, described as 80% of the corpus, contains 2,927,846 words. This is where the individual taggers acquire their labeled examples and where the lexical procedures obtain the word-to-tag associations on which they rely. The authors give the validation and blind test portions as 10% apiece, with 362,866 words for validation and 366,109 words for blind testing. The validation examples inform choices about what clues the programs should use and how their algorithms should be configured. The blind test supplies the final sentences on which they compare accuracy.

A validation decision and a test prediction answer different questions. During validation, the researcher can try alternatives and consult reference labels to judge whether the change helped. During blind testing, the selected configuration has to assign its tags to separate sentences. The researchers then calculate how often the output matches the reference. The authors judge full 10-fold cross-validation impractical at the scale of HCS and keep the same partition throughout. Every system therefore has the same training opportunity in terms of available words, and the test differences concern exactly the same occurrences.

Validation takes on an additional purpose after the base systems are fitted. Their predictions on validation text give the authors evidence about how reliable their answers are and how they can be combined. That evidence can be used directly to set votes or supplied to another learner as labeled examples. The procedures that result are applied to the test predictions. The reference tags for those predictions are available for scoring, and they have a special purpose in the oracle analysis.

Training and combining taggers on the Helsinki Corpus of Swahili

The steps in order.

Training and combining taggers on the Helsinki Corpus of SwahiliStep 1: Clean the corpus and remove duplicate sections1. Clean the corpus and remove duplicate sectionsStep 2: Shuffle sentences and create the data partitions2. Shuffle sentences and create the data partitionsStep 3: Fit the taggers on annotated training sentences3. Fit the taggers on annotated training sentencesStep 4: Use validation to choose configurations4. Use validation to choose configurationsStep 5: Align validation and test predictions by word5. Align validation and test predictions by wordStep 6: Combine predictions or choose tags by lexical status6. Combine predictions or choose tags by lexical statusStep 7: Compare test tags with the corpus reference7. Compare test tags with the corpus reference

Defining what a lexicon can tell the tagger

The simplest system uses counts rather than sentence context. For a form that occurs in training, the researchers can tally how frequently the corpus assigns each tag to that form. When it reappears, the baseline returns whichever tag was most frequent. The paper calls this a unigram baseline. In this usage, the immediate decision depends on the individual spelling and its history, regardless of the surrounding sequence.

Once a form is absent from that history, the baseline needs another source for its prediction. The authors look at the validation occurrences whose spellings are absent from training and find the tag most often assigned to them. That tag is PROPNAME, the label for a proper name. The baseline returns it for every unknown form in the blind test. The procedure learns a fallback from validation and applies it uniformly, without considering how the unknown word is spelled or how it is used in its sentence.

In this experiment, “known” describes the relation between a complete written form and the training data. A familiar base or a familiar set of letters can be part of an unknown word. At the same time, a form that counts as known can appear in a use with little or no precedent in training. Vocabulary membership determines whether the learner can retrieve a record for an exact spelling. It leaves open how informative the record will be for the current occurrence.

That difference matters when the researchers later use a lexicon as part of a tagger. The unigram baseline always needs an answer, so it uses the most frequent tag even when several labels are recorded for a form. The lookup in the hybrid has a more restricted job. It offers an answer only if the form had a single tag in training. Where the lexical record is absent or gives competing choices, another procedure is available to use the context. Both approaches exploit training frequencies in a broad sense, but the hybrid’s routing criterion is the presence of competing categories in the entry.

Scoring words together with their context

TnT follows the hidden Markov approach to tagging. The sequence of words is visible, while the sequence of tags has to be inferred. The method relates the plausibility of a label to the observed word and to the tags around it. A category that has been seen with the spelling can be less plausible when it would produce an unusual tag sequence. The tagger draws on both kinds of evidence in choosing the sequence.

The “Trigrams’n’Tags” name points to tag trigrams, a kind of n-gram that treats nearby tags as a sequence. The authors emphasize TnT’s use of smoothing and its handling of unknown words, capitalization and sentence boundaries. Smoothing makes estimates less dependent on whether a particular pattern had enough opportunities to be counted directly. In a system that relies on sequences, the beginning and end of a sentence also change the context available at a word position. These provisions are part of the original tagger. The Kiswahili experiments try alternative settings on validation and retain TnT’s defaults.

MXPOST brings several kinds of information into a maximum entropy approach. The evidence described in the paper includes the identity of the target word, tags in the surrounding context and character sequences at the beginning or end of the word. Fitting on labeled examples lets the classifier use associations between such clues and possible categories. A candidate tag can be supported by the spelling and weakened by the context, or the context can make a decision possible even when the exact spelling is new. The purpose of fitting is to make these clues contribute to the choice in ways that reflect the examples.

Validation supports MXPOST’s settings with an exception for the number of fitting iterations. An iteration is another pass through a repeated step of the training procedure. The authors select 500 training iterations in place of the default 200. The test result belongs to that selected setup. A reader can tell what was changed for the evaluation, while the paper supplies no separate blind-test result for MXPOST trained for the default number of iterations.

The paper’s description of MXPOST features also clarifies what it means for a tagger to use information about word structure. A prefix or suffix feature can simply be a run of letters at an edge of the spelling. Those letters sometimes correspond to an affix with a grammatical function. They can also cover part of such an affix or extend beyond it. The classifier can learn a useful association from either kind of pattern. A prior morphological analysis would give it a different input, one that makes a claim about which elements the word contains. The taggers in the comparison learn from clues at the level of the writing.

Learning from comparable cases

The Memory-Based Tagger, MBT, treats tagging as a problem of finding relevant similarities to retained examples. Its input describes the occurrence to be labeled, and the learner can compare it with previously labeled cases. MBT builds separate procedures for known and unknown forms. The known-word procedure uses contextual information. The unknown-word procedure also looks at orthography, the observable properties of the spelling. Separate procedures let the learner attend to attributes that remain available when there is no exact match for the target word in training.

In the default setup, the word has two disambiguated tags on its left and one ambiguous tag position on its right. Here “disambiguated” means that a category has already been selected. On the right, the tag information is still ambiguous. This gives the learner context from both directions, with different levels of commitment about the labels at those positions. It also illustrates that adding a context position can mean adding a different kind of input, since a decided tag and an unresolved choice supply different information.

The authors explore changes to the input and learning settings on validation. In the optimized configuration, the context extends to three tag positions before the word and three after it, whether the word is known or unknown. The unknown-word features use five prefix and suffix letters and indicate properties such as capitalization, hyphenation and the presence of numerals. These spelling clues can recur across written forms that would otherwise lack a direct connection in the lexicon. The comparison retains both the default and the optimized MBT runs, so the reader can see how the selected changes work as a package.

SVMTool uses support vector machines through scripts that prepare the tagging input and handle output from SVM-Light. In general terms, a support vector classifier uses the training cases to define a decision boundary in a representation of the inputs. Its kernel determines how relationships among cases enter that representation. The Kiswahili run uses the default radial basis kernel. Fitting is expensive enough in the experiment that the authors set aside the more extensive search they would otherwise have conducted. This leaves the outputs of a default SVMTool configuration beside taggers for which the validation process could examine more alternatives.

The descriptions of the four programs indicate what the comparison varies. The systems use the same labeled sentences and agree on the label inventory. They differ in how they encode useful evidence and in the learning procedure that turns that evidence into a decision. The paper describes those methods and settings in prose and gives no equations for the taggers’ objectives. Its experimental emphasis is on how the available implementations behave with the same Kiswahili annotation.

Giving a committee the same predictions

To compare combination rules, the authors run the individual taggers on validation and test sentences. For each occurrence, they build a record with 6 columns. One holds the word, the taggers each contribute a prediction, and the last column holds the reference category. Aligning the records by occurrence is essential. Agreement has meaning only if all the predictions concern the same position in the same sentence. The records also let the authors examine disagreements without refitting the taggers for each new voting procedure.

In majority voting, each system has the same influence. The winning category is whichever appears most often among the submitted tags. It only needs more votes than the other candidate categories. The paper specifies random resolution of ties for this rule. The rule expresses a simple hypothesis about disagreement: a category becomes more credible when more members predict it.

Weighted voting treats the systems as having different levels of reliability. A prediction carries a weight equal to the tagger’s accuracy on validation. The votes for any candidate label are added, and support from a more accurate system has greater influence. The weight is a single summary of validation performance for the whole tagger. It stays the same across occurrences whose forms and contexts can offer very different advantages to different members of the panel.

The authors call their manually weighted rule plural voting. MXPOST casts four votes, SVMTool and MBT cast three each, and TnT casts two. The authors choose the allocation in light of validation performance. The largest vote goes to MXPOST, and the total support for a label still depends on which systems agree. The comparison with direct accuracy weighting therefore tests two ways of expressing trust. Both use validation evidence, while the manual rule gives the authors latitude in the spacing between the weights. The paper describes the allocation without providing a full account of every weighted tie scenario.

The cascade turns the choice of a final tag into another classification task. The first stage produces the individual tags. The second stage uses a memory-based classifier trained on the records from validation, with the reference tag as the class to predict. The fitted classifier is then applied to the records drawn from the blind test, and its predicted category becomes the committee’s answer. This allows patterns of agreement and dissent to carry different implications if the validation examples support those distinctions. A voting rule expresses preferences through fixed values. The cascade learns a decision from examples of how the base outputs relate to the reference.

Routing by lexical ambiguity and counting available answers

One combination requires a different kind of evidence. Before deciding which tag to return, the system consults the training lexicon and asks how many labels are recorded for the target form. With a sole recorded category, it can select that category directly. With competing categories, it uses MXPOST’s answer. With no entry at all, it also uses MXPOST. The hybrid appears as MXPOST+LLU in the paper, where the added component is a simple lexicon lookup.

The routing works because ambiguity in the lexicon is available before evaluation. The system can determine whether a spelling had multiple labels without seeing the category assigned by an HCS annotator to the new occurrence. In this setup, a single recorded category is an empirical reason to trust an entry. The question for the experiment is whether that reason is strong enough that the lookup corrects more of MXPOST’s decisions than it spoils. Ambiguous and unseen forms still have access to the contextual decision under the rule.

The oracle uses the aligned records for a diagnostic. For each word occurrence, the researchers check whether any base prediction matches the reference tag. If so, the oracle can return it and receive credit. If no proposal matches, there is no correct answer among the options. The procedure measures the availability of a correct label within a fixed panel. A real selector faces the further task of deciding which suggestion to follow without access to the reference.

Experiments and results

Reading the three accuracy columns

The experiment uses word-level agreement with HCS as its metric. Each test occurrence contributes a comparison between the proposed category and the corpus label, so repeated appearances of a form can contribute multiple decisions. Overall accuracy describes the share of correct assignments across the blind test. Separate scores for known and unknown words show how frequently the systems succeed when a form can be found in the training data and when it cannot.

The paper reports an average of 1.3 possible tags per word in the Kiswahili dataset. The authors treat that figure as a sign that lexical ambiguity is limited under the HCS inventory. They describe approximately 3% of words in validation and test as unknown, or about 12,000 words in each partition. This is a smaller portion of the evaluation whose difficulties can be obscured by performance elsewhere. A rule could assign many more correct tags to unknown forms while producing a modest change in total accuracy. A smaller gain on familiar forms could also have considerable influence on the total because there are so many of them.

The baseline illustrates both points. It achieves 94.50% across the blind test. Among known words, its accuracy is 97.01%, a measure of how frequently the dominant training label is suitable for another occurrence. On unknown words, the fixed PROPNAME decision produces 18.59% accuracy. The two subsets put the trained taggers up against very different starting points. On known words the most frequent category already explains much of the reference annotation. On words absent from training, the systems have a chance to do better by using cues that the baseline ignores.

The individual taggers

Overall tagging accuracy of individual systems on the HCS blind test

MXPOST scores highest among the individual systems, and every contextual tagger improves on the unigram baseline.

Overall tagging accuracy of individual systems on the HCS blind testUnigram baseline: 94.50Unigram baseline94.50TnT: 97.79TnT97.79MBT with default settings: 98.14MBT with default settings98.14MBT with optimized settings: 98.25MBT with optimized settings98.25SVMTool: 98.24SVMTool98.24MXPOST (this paper): 98.44MXPOST (this paper)98.44
The numbers
System or settingaccuracy %
Unigram baseline94.50
TnT97.79
MBT with default settings98.14
MBT with optimized settings98.25
SVMTool98.24
MXPOST (this paper)98.44

TnT obtains 97.79% overall accuracy on the blind test. It tags known words correctly at 98.00% and unknown words at 91.66%. TnT’s total is the lowest among the contextual taggers, even though its unknown-word score is ahead of both MBT configurations and SVMTool. The different ordering shows why the paper reports the subsets. Overall accuracy reflects the combined effect of strengths in different parts of the test data, weighted by how frequently those cases occur.

For default MBT, the blind-test results are 98.39% on known words, 90.59% on unknown words and 98.14% overall. With validation-selected inputs and settings, its known-word accuracy rises to 98.46%, its unknown-word accuracy to 91.61%, and its overall accuracy to 98.25%. The direction is consistent across the columns. In particular, MBT closes much of the gap to TnT on words absent from training, where its procedures have spelling features as well as context available.

SVMTool achieves 98.48% on familiar forms and 91.30% on unfamiliar forms for an overall blind-test accuracy of 98.24%. The comparison with optimized MBT is close overall. SVMTool has the higher result on known words, and optimized MBT has the higher result on unknown ones. The authors draw attention to the unknown-word result in explaining the slight overall advantage for MBT. They also consider SVMTool a candidate for further optimization because the training time constrained their exploration of its settings.

MXPOST leads every individual system on both parts of the test. Its accuracy for known words is 98.61%. For unknown words it is 93.32%, and for the full blind test it is 98.44%. The authors also report the comparison with the unigram baseline in terms of error reduction. MXPOST reduces the baseline’s errors by 72% overall, with reductions of 54% for known words and 92% for unknown words. Error reduction gives the improvement relative to the baseline’s mistakes. Accuracy gives the share of correct decisions relative to all occurrences in the subset. A strong baseline can consequently leave fewer mistakes to recover even when its accuracy appears very high.

The time to fit a tagger and the time to apply it

The authors report approximate CPU times for the training and tagging phases. The unigram procedure takes 4s in training and 1s in tagging. TnT takes 9s to train and 4s to tag, leading the contextual taggers on speed in both phases. Its timing gives a different perspective from its lower position in overall accuracy. A fitting run for a different configuration can be contemplated quickly under the benchmark conditions, and a fitted run adds little processing time on the comparison scale.

For MBT, the timings are especially sensitive to the selected settings. The default takes 3m to train and 20s for tagging. The optimized configuration takes 6m in training and 8m in tagging. The difference in tagging time accompanies the changes in context, orthographic input and learning settings. Both costs matter in the design of the experiment. The training cost is incurred when producing the tagger, and the tagging cost is incurred when it produces the labeled sequences on which the accuracy figures depend.

SVMTool incurs ± 80h for training and takes 15s to tag. MXPOST’s training time is listed as ± 5h, and its tagging time is 90s. SVMTool’s profile shows how expensive fitting can coexist with relatively quick prediction. The authors cite training as the obstacle to experimenting with its settings. MXPOST is also considerably more expensive to train than the faster options, while it delivers the strongest individual accuracies. These are measurements on the authors’ machine and reflect the implementations and configurations in the experiment.

Training time has a second bearing on how the accuracy results should be read. A validation search can require fitting another version of the system each time a training setting changes. The settings for the slower tools were consequently chosen under different practical constraints from those of the faster systems. The timings help explain why the benchmark reports some configurations after wider searches and others with defaults. It measures the usable taggers the authors were able to evaluate on the corpus.

How the combination rules perform

Overall accuracy of combination rules and MXPOST on the HCS blind test

The hybrid that consults the training lexicon gives the highest overall accuracy among the tested decision rules.

Overall accuracy of combination rules and MXPOST on the HCS blind testMXPOST alone: 98.44MXPOST alone98.44Majority voting: 98.36Majority voting98.36Voting weighted by validation accuracy: 98.42Voting weighted by validation accuracy98.42Plural voting: 98.56Plural voting98.56Cascaded classifier: 98.46Cascaded classifier98.46MXPOST with lexicon lookup (this paper): 98.61MXPOST with lexicon lookup (this paper)98.61
The numbers
System or settingaccuracy %
MXPOST alone98.44
Majority voting98.36
Voting weighted by validation accuracy98.42
Plural voting98.56
Cascaded classifier98.46
MXPOST with lexicon lookup (this paper)98.61

Majority voting reaches 98.36% overall accuracy on the blind test, with 98.53% on known words and 93.12% on unknown ones. The pooled result exceeds the overall accuracy of the individual systems other than MXPOST. The authors suggest a reason for the shortfall against the strongest tagger. Some correct MXPOST answers apparently lose when other systems support a different category. In such cases, the way an error is shared matters as much as how many correct answers each tagger supplies over the whole corpus.

Using validation accuracies as voting weights gives 98.42% overall. The corresponding known-word and unknown-word accuracies are 98.59% and 93.68%. That unknown-word figure is higher than MXPOST’s and leads the practical rules on that subset. The gain occurs on the smaller portion of the test, while the total remains below the individual MXPOST score. Voting weights based on whole-set accuracy can introduce a useful preference in some disagreements while producing a different balance of errors across the full test.

Plural voting, with the manually allocated weights, scores 98.56% overall. It gets 98.72% of known words and 92.72% of unknown words right. The strongest overall vote therefore pairs improved accuracy on familiar forms with weaker performance on unfamiliar ones, compared with MXPOST alone. It also trails both of the other voting rules on unknown forms. The experiment supports a claim about which vote produces the best overall figure on HCS, and the subset results show the cost that comes with that choice.

The cascaded classifier yields 98.46% overall accuracy, with 98.63% for known words and 93.37% for unknown words. Those figures improve on MXPOST in the corresponding columns. The total places it above equal votes and accuracy-weighted votes, with plural voting and the lexicon hybrid ahead of it. This ordering gives a more specific account of the paper’s result about simple combination methods. Some simple rules outperform the learned cascade, and the cascade in turn outperforms the simplest vote.

For MXPOST with lexicon lookup, the blind-test scores are 98.79% on known words, 93.32% on unknown words and 98.61% overall. The exact match between the hybrid and MXPOST on unknown words follows from the use of the same prediction for these cases. The stronger known-word performance accounts for the overall lead. The authors describe the overall change as an error reduction of more than 11% relative to the best single tagger. The reference point for that error reduction is MXPOST, whereas the error reductions for MXPOST itself used the much simpler baseline.

Agreement and the oracle

Across the tagging decisions analyzed for system combination, the authors report that all the individual taggers propose the same answer 97.23% of the time. They agree on a correct category 96.75% of the time, and the paper gives 0.5% for unanimous agreement on a wrong category. The figures show how much routine agreement there is before a selector deals with the harder cases. On a unanimous error, voting can only reinforce the offered answer. Disagreement opens the possibility of a recovery if a correct suggestion is among the candidates.

Unknown-word accuracy of decision rules and the oracle on the HCS blind test

Accuracy-weighted voting leads the usable rules, while the oracle shows how often a correct answer appears somewhere in the panel.

Unknown-word accuracy of decision rules and the oracle on the HCS blind testMXPOST alone: 93.32MXPOST alone93.32Majority voting: 93.12Majority voting93.12Voting weighted by validation accuracy (this paper): 93.68Voting weighted by validation accuracy(this paper)93.68Plural voting: 92.72Plural voting92.72MXPOST with lexicon lookup: 93.32MXPOST with lexicon lookup93.32Cascaded classifier: 93.37Cascaded classifier93.37Oracle: 96.85Oracle96.85
The numbers
System or settingaccuracy %
MXPOST alone93.32
Majority voting93.12
Voting weighted by validation accuracy (this paper)93.68
Plural voting92.72
MXPOST with lexicon lookup93.32
Cascaded classifier93.37
Oracle96.85

The oracle reaches 99.52% on known words, 96.85% on unknown words and 99.44% across the blind test. Its success on a word means that at least one system offered the HCS label. This is an estimate of what a selector with perfect information could recover from those particular suggestions. The known-word result shows the panel’s high coverage on the portion where lexical evidence is most accessible. The unknown-word result shows that the systems can supply correct guesses for unfamiliar forms that the tested combinations have difficulty identifying. The star in the chart marks the highest accuracy among the decision rules that assign tags without consulting the reference.

What the ablations show

Tuning MBT changes both speed and accuracy

The paper reports no feature-by-feature ablation. It does compare two configurations of MBT, examine performance by lexical ambiguity, vary the way base predictions are combined and inspect frequent errors. These analyses answer different questions. The comparison of MBT setups shows what changes when a system is tuned. The ambiguity analysis looks for places where methods have different strengths. The combination runs test whether those differences can improve the final prediction.

MBT is the closest example of an intervention within a single tagger. The default and optimized configurations use the same corpus partitions and tag inventory. The wider tag context and the spelling features for unknown forms are part of the optimized setup, alongside changes to learning settings. Blind-test accuracy improves for both known and unknown forms, with the stronger effect on unknown words. Tagging time also rises substantially. The measured effect belongs to the full reconfiguration.

The result gives several plausible explanations that the comparison cannot distinguish. A more distant tag could help because the adjacent tags alone underspecify a word’s role. Prefix and suffix letters could help connect unseen words to familiar patterns. Other changes in how the learner uses its examples could influence which neighbors are judged informative. Measuring those effects individually would require runs that hold the rest of the configuration fixed. The evidence from this experiment supports keeping the package when accuracy is the objective and makes its cost visible when tagging time matters.

The other individual systems provide different amounts of evidence about tuning. TnT’s validation searches return the default settings. MXPOST’s searches lead the authors to train for longer while retaining the remaining defaults. The blind-test table compares their selected runs with the other systems. It does not show the test contribution of each setting considered on validation. With SVMTool, the default kernel reflects the higher cost of conducting such a search. Taken together, the tuning histories clarify how the tested configurations came to be chosen.

Lexical ambiguity exposes a difference hidden by the overall score

The authors also examine words according to how much ambiguity the lexicon assigns them. MXPOST exceeds 94% accuracy on ambiguous words in their analysis. On forms with a sole recorded category, TnT and MBT outperform it. This finding narrows the place to look for avoidable errors. High accuracy on all known words can accompany a relative weakness on forms for which the lexicon supplies a particularly strong cue.

The authors’ interpretation is that MXPOST treats lexical ambiguity more loosely. Where other taggers tend to follow a single recorded category, MXPOST appears readier to assign a different one. The authors suggest that this might help the system avoid adhering too closely to its training examples. Under that interpretation, the same freedom can be costly on predictable forms and useful when the context supports a less obvious answer. The subset results show the behavioral difference. They leave the explanation about the internal source of the difference as the authors’ interpretation.

The hybrid turns this observation into a direct change at the decision stage. It accepts MXPOST’s prediction for ambiguous and absent forms and substitutes the training entry when there is a sole lexical choice. Its performance relative to MXPOST gives the net result of that substitution. The higher known-word accuracy means that, over the blind test, relying on the sole recorded tag recovers more correct answers than it displaces. The unchanged accuracy on unknown words follows from which decisions the intervention touches.

The baseline offers complementary evidence about lexical predictability. Its known-word score covers all familiar spellings, including ones with several tags. A high score there means that the frequent label is a strong default in much of the corpus. The hybrid uses the more restrictive condition revealed by the ambiguity analysis. It gives the contextual system control where the lexicon itself records a choice. That condition explains why the result supports a selective lookup rule even though the unrestricted frequency baseline is weaker than the contextual taggers.

A vote can amplify a shared error

The voting comparisons hold the individual guesses fixed. Equal voting, accuracy weighting and plural voting differ in what they do with that common evidence. When the panel agrees, changing the weights leaves the leading category unchanged. The rules have room to differ when several categories are proposed. The value of a vote therefore depends on the patterns of agreement among the systems, as well as on each system’s overall performance.

An individual accuracy summarizes decisions in many different contexts. Assigning a vote proportional to that accuracy plays down the possibility that a particular system is much stronger on a certain kind of word than its aggregate record suggests. The manually chosen allocation changes the influence of this global ranking without measuring separate reliability in each context. The fact that plural voting leads the other voting rules overall and trails them for unknown forms shows how a global choice can have uneven effects. It also makes the valid comparison precise. The paper evaluates the particular validation-based and manually chosen weights it tried.

The learned cascade offers a further point of comparison. Its training data pair the panel’s suggestions with the correct category. In principle, that allows the relationship among the suggestions to affect the decision, whereas a fixed vote assigns each member the same weight whenever it participates. The test performance shows that the cascade can produce a gain over the strongest member. The larger overall gain from the lexicon hybrid demonstrates that a readily available property of the word provides a useful basis for keeping or changing MXPOST’s answer in this corpus. The methods use different evidence, so their ranking cannot isolate the effect of learning versus hand design by itself.

The oracle and agreement figures expose the difference between the panel’s coverage and a usable selection procedure. On an occurrence with unanimous support for the right tag, choosing among the candidates is easy. On an occurrence with unanimous support for a wrong tag, there is no candidate worth selecting. When the systems disagree, a dissenting answer can be the only correct one or an additional error. The oracle identifies the cases with a possible recovery. The practical combinations show how much of that opportunity their own decision rules exploit.

Some grammatical distinctions repeatedly cause trouble

The most prominent recurring confusion is between PREP, the tag for a preposition, and AG-PART, the tag for an agentative particle. The systems make substitutions in both directions. According to the paper, almost one in five tagging errors can be attributed to this pair. The denominator is the set of errors. The figure identifies a recurring problem in the residual mistakes instead of describing the frequency of either category in the corpus.

The authors also mention noun occurrences labeled as verbs and proper names labeled as ordinary nouns. Those examples show that the missed decisions span different kinds of category boundaries. The paper does not trace the confusions back to particular positions, affixes or features. They identify where a closer analysis could start. For example, a detailed examination could establish whether the same spellings repeatedly trigger a category confusion or whether many different forms lead to superficially similar errors. The reported error counts alone give no such account.

There is a useful distinction between a recurring confusion and a shared prediction at a particular occurrence. Multiple taggers can struggle with the same pair of labels without making the same mistake on every token. The error analysis identifies the labels that are repeatedly confused. The agreement analysis identifies how frequently the panel reaches the same decision. An intervention tied to the category boundary and a procedure for choosing among dissenting tags would address different parts of what those analyses reveal.

Limitations

Limits identified by the authors

The authors consider full 10-fold cross-validation infeasible given the size of the corpus and use a fixed randomized split. The blind partition gives them a separate set on which to compare the selected configurations. The results consequently describe a single placement of sentences into the training, validation and test partitions. The paper does not measure how much the close standings would move under different splits. This matters particularly for comparisons such as optimized MBT and SVMTool, whose overall test scores are close.

The amount of annotated material required to obtain this level of accuracy is also open. The authors propose learning curves, which would relate the score to the quantity of labeled training data. Such an experiment would help determine when additional examples yield diminishing returns and where the performance of the methods begins to diverge as fewer examples are available. In the reported comparison, the systems have access to the large HCS training portion, so the benchmark supplies a result at that scale.

The expense of fitting SVMTool is an explicit restriction on its tuning. The authors expect that exploring the kernel and validating more settings could improve its performance. They also suggest trying additional members for the committee, including CRF++, WPDV and transformation-based tagging of the kind described in A Simple Rule-Based Part of Speech Tagger. These are proposals for extending the tested comparisons. A different setting or panel could change both the quality of individual predictions and the patterns of disagreement that a combination rule has available.

The authors ask for more analysis of how the programs handle word structure. They identify affixation as an important signal for Kiswahili word class and describe the experimental systems as reaching it indirectly through graphemes, the written units of the word. They propose morphological analysis as a preprocessing step. That would make analyses of the word’s constituent elements available before a POS tag is chosen. The experiments contain no comparison between such a preprocessing pipeline and the character-based cueing used by the taggers, leaving the accuracy effect unknown.

The oracle also gives the authors a reason to investigate combination further, particularly for unknown words. Its predictions describe the scope for recovering existing suggestions. A new combination method would still need features or decision rules that let it recognize when to accept one of those suggestions. The usefulness of additional taggers would likewise depend on what kinds of mistakes they make and what answers they contribute on cases where the current panel struggles.

Limits implied by the design

Randomizing sentences makes the results about held-out sentences drawn from the assembled HCS material. A test organized around whole sources or kinds of text would ask a different question about generalization. Sentences can be distinct and still draw on related vocabulary and usage. The authors clean the material and remove duplicate sections before splitting, but the design gives no separate measure of the effect of excluding a type of text or an entire source from training. The comparison concerns the distribution generated by their chosen split.

The HCS annotation supplies the criterion for a correct answer. The result therefore depends on the categories recorded by that resource and the way they are assigned to the text. The reported ambiguity is ambiguity under that inventory. A finer distinction between categories could create more competing tags for a form. Grouping categories could make some observed confusions disappear as disagreements under the scoring scheme. High agreement with HCS establishes success at reproducing its grammatical decisions, which is the aim of the evaluation.

The known-word subset also contains multiple kinds of familiarity. A form may have occurred rarely or many times. It may have appeared with several tags in quite different proportions. The paper separates forms by whether they occur in training and gives an analysis of lexical ambiguity, which helps interpret the overall score. It does not report accuracy across detailed frequency bands or show how frequency and ambiguity interact. Such a breakdown could show when a sole tag is supported by repeated occurrences and when that status rests on a sparse lexical record.

There is a parallel distinction for words absent from training. Some can contain character patterns that the tagger has repeatedly encountered in other forms. Others may offer much less recognizable material. The unknown-word scores pool these cases. They show the value of moving beyond a fixed fallback, and they cannot by themselves tell how well the systems generalize across particular patterns of affixation. That is one reason the authors’ call for morphological analysis concerns both method and evaluation. A higher total for unknown words would still leave a question about which unfamiliar forms became easier to predict.

The paper’s focus on token-level accuracy makes frequent cases influential. Each occurrence counts independently, so errors on a small group of categories can make little difference to the overall figure even if they are common within those categories. The analysis of frequent confusions offers a view of part of the residual error. It gives no complete table of reliability by tag. A reader interested in a specific grammatical distinction has a narrower evidential basis than a reader asking how often a tag is assigned correctly across running text.

The word and output records used for combination make the comparison feasible, but several implementation details of the decision stage remain underspecified. The authors identify the information collected, explain the majority tie policy and give the manual votes. They describe the cascade as a memory-based classifier trained on validation records. The paper gives less detail about the representation used inside that classifier and about how weighted ties are handled. These omissions matter to someone seeking to reproduce every individual prediction, especially where the systems are separated by close aggregate scores.

Finally, the lexicon hybrid and the oracle are evaluated under conditions specific to the material and the panel. The lookup has value because the sole recorded tag often remains appropriate when the form occurs again in HCS. The outcome could change on material in which apparently single-category words often acquire another use. The oracle’s upper bound applies to a selector restricted to the suggestions that were actually produced. A tagger with other evidence or a panel with other members could offer a correct category where no current member does. The benchmark supports a comparison on Kiswahili HCS data and gives later work on Kiswahili and other Bantu languages a reference point for conducting its own evaluations.

What came after

Methods for Amharic Part-of-Speech Tagging cites the Kiswahili study and takes up the choice of tagging methods for Amharic. The connection is at the level of the research question. Both works concern how to study the assignment of grammatical labels to running text in a particular language. For Kiswahili, De Pauw and colleagues address that question through comparison on a shared annotated corpus, with separate examinations of unfamiliar forms and of what a panel of taggers can contribute.

The citation establishes that the Kiswahili comparison entered the later discussion of tagging methods for another language. It leaves the specific role of the Kiswahili experiments in the Amharic study undetermined. In particular, the citation by itself supplies no evidence that the later study reused the manual vote allocation, adopted the lexicon lookup rule or evaluated its choices against the same kinds of vocabulary subsets. Those are distinct claims about methodological transfer and would require details about the later experiments.

Cite

Cite as Guy De Pauw, Gilles-Maurice de Schryver and Peter Waiganjo Wagacha. 2006. Data-Driven Part-of-Speech Tagging of Kiswahili. Lecture notes in computer science.

The paper itself, not this page. BibTeX from the library's record of the work. DOI 10.1007/11846406_25

@inproceedings{pauw2006data,
  title = {{Data-Driven Part-of-Speech Tagging of Kiswahili}},
  author = {Guy {De Pauw}, Gilles-Maurice {de Schryver} and Peter Waiganjo Wagacha},
  booktitle = {Lecture notes in computer science},
  year = {2006},
  doi = {10.1007/11846406\_25},
  url = {https://doi.org/10.1007/11846406_25}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/pauw-2006-data-driven-part-speech-tagging/