Elamur Research

The Best of Two Worlds: Cooperation of Statistical and Rule-Based Taggers for Czech

Paper · 2007 · Drahomíra “johanka” Spoustová, Jan Hajič, Jan Votrubec et al.

Summary

A Czech word can have several plausible grammatical readings before anyone considers the sentence around it. Choosing the right reading requires more than identifying the word as a noun, verb, or another broad category. The answer may also specify case, number, gender, or other details. In this study of Czech part-of-speech tagging, the authors ask how a system can use both examples from annotated text and grammatical constraints written by linguists to make that choice. They use the Prague Dependency Treebank to train and evaluate the taggers, and give every system the same starting point: the readings proposed by a Czech analyzer.

The authors test several ways to divide the work. In the simplest arrangement, rules remove readings before a statistical tagger makes the final choice. Another arrangement lets a tagger settle the detailed part of speech first, so that rules can act on cases where uncertainty about the category would otherwise block them. In the strongest arrangement, the feature-based tagger and Morče each propose a complete reading for each word. The system keeps the union of their proposals, applies the full grammar to those shortlisted readings, and uses a hidden Markov tagger to finish. The rules can exploit what the first taggers have already resolved, and the final tagger can use sentence context when more than one proposal survives.

On the Prague Dependency Treebank evaluation-test set, Morče scores 95.12 % in complete-tag accuracy, the best result among the standalone taggers. The parallel combination reaches 95.52 % without the rules and 95.68 % with them. The last figure represents a relative error reduction of 11.48 % against standalone Morče and 3.57 % against the parallel combination without rules. A separate development-test analysis shows that case is the hardest tag position for the systems compared there and that its error falls when the full grammar is added to the parallel combination.

The rule-only experiments help explain why the arrangement matters. Rules make the candidate sets more precise, but they also sometimes remove the annotated reading, including in the set designated as safe. Their overall contribution depends on the alternatives they receive and the tagger that acts on the survivors. There is a practical tradeoff as well: the best-scoring hybrid was slower than the parallel statistical combination. The experiments establish an accuracy gain for Czech on this treebank, while leaving open how much rule writing would cost or help in another language.

Deep dive: The Best of Two Worlds: Cooperation of Statistical and Rule-Based Taggers for Czech

How Czech part-of-speech tagging improved when statistical taggers and handwritten grammar rules shared the job of resolving ambiguity. · about 38 minutes to read

The problem and its context

What the tagger has to decide

A tagging system receives tokens in a sentence and assigns a grammatical label to each one. The unit of success in this paper is the full label. A system that correctly identifies a token as a noun can still make a tagging error if it assigns the wrong case. Even when speakers can interpret a sentence readily, the information needed to determine its grammatical labels may be spread across several words. A computational system must find and use enough of that information to choose among readings that are plausible for the individual words. The paper concerns this detailed form of morphology, in which the analysis of a word describes grammatical properties expressed by its form and use.

The size of the label inventory is part of the challenge. The authors give a range of 1,000–2,000 distinct tags for a typical inventory in this setting, with several thousand combinations possible and linguistically plausible. A broad category such as adjective groups together many forms. A full Czech tag can distinguish those forms by properties such as gender, number, case, and degree of comparison. A tagger therefore learns with the granularity of the full distinctions it is expected to produce. Many distinct labels and combinations of nearby labels can compete for observations in the training data.

The authors identify inflection and relatively free word order as separate sources of difficulty. Inflection contributes to sparse data: a corpus can contain many examples of a broad grammatical category while offering few examples of a particular form in a particular tag context. Word order poses a different problem. A fixed window around a token may capture useful regularities, but the grammatical relationship that resolves a reading can extend beyond that window. In an n-gram approach, a transition is estimated from a fixed number of adjacent tags. The authors argue that such a fixed context fits Czech less readily than it fits English. A hand-written condition can instead say what to look for across a stretch of the sentence and where to stop looking.

The positional tag notation makes the distinction between a broad category and a full answer concrete. The Czech tags used here have 15 positions. POS identifies the broad category and SUBPOS refines it. Other positions describe gender, number, case, possessor gender and number, person, tense, degree of comparison, negation, and voice. The format also has reserved positions and a position for a variant. Some positions describe properties that are relevant only to particular categories. A comparison that asks whether the whole tag matches and a comparison that looks at case alone answer different questions about the same output.

These distinctions matter to the combination strategy. A tagger may be reliable enough at identifying a detailed category to make that decision useful as an intermediate step, even when it still makes mistakes on complete tags. A rule may be able to discard a case reading without identifying the final case, or exclude a verbal reading while leaving several other possibilities. The paper treats such partial progress as something the next component can use. Its central design problem is how to pass that progress forward while preserving the readings a later component may need.

What earlier taggers contributed

The paper situates its experiments among efforts to tag Slovenian and other highly inflected European languages, as well as earlier systems for Czech. It cites the memory-based approach of MBT and uses Ratnaparkhi’s maximum-entropy tagger as a point of reference when discussing English. That comparison motivates attention to the Czech problem. Because the languages and their tagging setups differ, the English work serves as context for the task. The experiments that answer the paper’s research question use Czech data and compare systems under a shared evaluation.

One line of earlier Czech work supplied the starting hidden Markov tagger. It scores a sequence of tags using both the likelihood of the sequence and the likelihood of the words given those tags. The authors also draw on a feature-based tagger distributed with the Prague Dependency Treebank and on Morče, which uses an averaged perceptron to learn weights for contextual features. These systems all produce complete tag sequences. Their scoring mechanisms differ in the information they can express easily, a distinction that gives the authors a reason to test whether their proposals complement one another.

The other line of work uses constraints written by linguists. The authors trace this style of tagging to Constraint Grammar and point to applications for languages including English, French, Brazilian Portuguese, Finnish, and Turkish. The Czech grammar in this study belongs to that tradition: a rule describes a recognizable context and names readings that can be eliminated in it. The grammar focuses on recurring facts of Czech syntax and morphology. Its evidence comes from what a rule writer can express about a construction, including relationships that may be awkward to capture in a short sequence of adjacent tags.

The authors had a precedent for combining these lines of work. An earlier Czech system applied rules before a statistical tagger, and the paper reports a similar ordering in earlier English work. The present study revisits that arrangement with an improved grammar and several statistical components. It also tests giving the statistical tagger an earlier role so that it can supply information the grammar needs. This possibility arises because a rule can be highly specific about the evidence required to act. If that evidence is hidden among several possible readings of a nearby word, the rule may wait even when the appropriate reading looks clear to a statistical tagger.

Earlier work on combining taggers also motivated the parallel configuration. As described by the authors, previous systems for English, German, and inflective languages used forms of voting to select a tagger’s answer for each token. The Czech study takes a set of proposals from the participating taggers and presents it to a further tagger. That last component sees a partially disambiguated sentence and can assess an available reading in relation to decisions elsewhere in the sequence. The candidate set is the common interface across the experiments: morphological analysis creates it, rules or tagger decisions can narrow it, and the last statistical pass resolves what remains.

The method, step by step

Start with the readings the analyzer allows

All configurations begin with a Czech morphological processor available with the Prague Dependency Treebank. It proposes tags that are plausible for each token on its own. The processor contains a guesser for tokens it does not recognize. The guesser therefore contributes candidate readings as part of the same initial analysis, before any component decides among them in sentence context. Every statistical tagger in the experiments works within these candidate sets. A reading left out by the processor is already unavailable to the combinations described in the paper.

It helps to picture a sentence as a row of sets, one at each token position. Before disambiguation, a set may contain tags from several grammatical categories or retain several full readings within the same category. The grammar consumes and returns sets. A statistical tagger normally consumes sets and returns a sequence that gives one full tag to each token. The experiments change how that sequence is used: it can be the final output, a source of information about categories, or one contributor to a new set of full readings.

The strongest configuration uses the following path. It gives each initial tagger the same analyzed sentence and merges their decisions at the token level before the grammar runs.

The parallel Czech tagging system with rules

The steps in order.

The parallel Czech tagging system with rulesStep 1: Generate plausible tags for each token1. Generate plausible tags for each tokenStep 2: Run Morče and the feature-based tagger independently2. Run Morče and the feature-based tagger independentlyStep 3: Unite their chosen tags at each token3. Unite their chosen tags at each tokenStep 4: Prune candidates with safe and heuristic rules4. Prune candidates with safe and heuristic rulesStep 5: Choose the final sequence with the HMM tagger5. Choose the final sequence with the HMM tagger

The other configurations change when the grammar receives a narrowed set of readings. In the simplest serial system it gets the analyzer’s output directly. In the serial system with category preprocessing it receives sets restricted by a tagger’s judgment of SUBPOS. These different inputs matter because the grammar bases its decisions on the readings still available in the current sentence, including at tokens other than the one whose tags it is considering.

Let grammatical constraints remove readings

A grammar rule specifies a context and a deletion. The context describes a sequence of tokens and the grammatical conditions that make the rule applicable. The deletion identifies the readings to discard when those conditions hold. Rules can inspect a span of whatever length the match requires within a sentence. The design favors rules whose deletions are reliable because a reading lost here will also be absent when the final tagger makes its decision. The intended outcome of a rule pass is a sentence with fewer plausible tags, with further work still possible wherever several tags survive.

The paper illustrates the approach using finite verbs. The rule looks for an unambiguous finite verb and a token that might itself be a finite verb or might have a different interpretation. It can look in either direction from the ambiguous token. It also checks the intervening material for a comma or a coordinating conjunction. When it finds the unambiguous verb and the intervening tokens meet the condition, the rule removes the finite-verb readings from the ambiguous token. The linguistic motivation is the authors’ observation about the occurrence of finite verbs within a Czech clause. The operational rule uses punctuation, conjunctions, and the current candidate sets to decide when that observation licenses a deletion.

The condition illustrates why the grammar works through repeated passes. Suppose the sentence contains competing finite-verb readings and neither token is yet unambiguously verbal. The example rule lacks its trigger. If another rule removes the alternative readings at one of the tokens, the first rule now has an unambiguous verb to look for. It can then remove the competing reading at the other token. So a deletion can affect the remainder of the sentence as well as the token whose set changes. It strengthens the evidence available to other rules.

The grammar repeats the process until no applicable rule can delete another tag. Each change reduces a finite supply of candidates, and the grammar adds no candidates during this loop. The process therefore terminates. The paper describes this in terms of reapplying the rules after deletions and points to earlier work on implementing such application efficiently. The rules are written in fast LanGR, a subset of a formalism developed specifically to express and execute disambiguation rules.

The authors classify 1,727 of the grammar’s rules as safe and 504 as heuristic. The safe class expresses general syntactic constraints judged reliable by the rule writers. The paper gives the example of excluding nominative for a form following an unambiguous preposition. The heuristic class includes judgments about difficult agreement patterns, where exceptions can occur. The labels describe the authors’ reliability classification. The evaluation measures separately how often the annotated reading survives the resulting procedure.

In safe-only operation, the system repeats applications from the safe set until they stabilize. Operation with all rules begins with the same safe phase and then allows the heuristics to act. Whenever a heuristic deletes a reading, the system runs the safe set to stability again. It then resumes checking heuristics. This ordering makes new consequences of a heuristic decision available to the rest of the grammar promptly. It also means that the effect of allowing heuristics can include safe deletions made possible by earlier changes to the sentence’s candidate sets.

Rule development followed two routes. Linguists could begin with a syntactic judgment, check that judgment against corpus examples, implement it, and test the implemented rule on a corpus. They could also begin by inspecting corpus material and derive a rule from a pattern observed there. The authors distinguish both routes from writing rules in response to errors made by the statistical taggers. This matters for understanding cooperation in the reported system. The grammar contributes a body of constraints developed as a Czech disambiguation component, and the experiments change the quality and specificity of the input it receives.

Score tag sequences with the hidden Markov tagger

The hidden Markov tagger balances two questions. How plausible is a sequence of tags for a sentence? And how plausible are the observed words if that sequence is assumed? The baseline criterion combines the two scores multiplicatively.

T̂ = arg maxₜ P(T) P(W | T)

Here T is a candidate sequence of tags for the sentence and W is the observed word sequence. P(T) is the probability assigned to the tag sequence, and P(W | T) is the conditional probability assigned to the words given that sequence. The subscript under arg max means that the search ranges over candidate tag sequences T. T̂ is a sequence attaining the highest value of the product. The vertical bar in a probability means “given.”

The baseline approximates the word-sequence term by multiplying local contributions along the sentence.

P(W | T) ≈ ∏ᵢ₌₁ⁿ P(wᵢ | tᵢ, tᵢ₋₁)

W and T again stand for the whole word and tag sequences. The symbol ≈ marks an approximation. The product sign ∏ multiplies one term for each token position i, from the first position to n, the length of the sentence. The word at position i is wᵢ. Its candidate tag in the sequence is tᵢ, and tᵢ₋₁ is the tag at the preceding position. P(wᵢ | tᵢ, tᵢ₋₁) is the conditional probability of that word given those two tags. The inclusion of the preceding tag gives the word score more context than an estimate conditioned on the current tag alone.

The sequence term uses a second decomposition.

P(T) ≈ ∏ᵢ₌₁ⁿ P(tᵢ | tᵢ₋₁, tᵢ₋₂)

P(T) is the probability of the candidate tag sequence. The product again ranges over token positions i in a sentence of length n. The factors condition the tag tᵢ on tᵢ₋₁ and tᵢ₋₂, the tags at the preceding positions. The commas inside the condition indicate that both tags are used together. The approximation keeps the history local, making the estimate depend on a limited sequence of tags even though it contributes to a score for the entire sentence.

The paper describes the subsequent enhancements beginning with a scaling factor. In the scaled criterion, the sequence and word scores are expressed in logarithms and added.

T̂ = arg maxₜ (λₜ × log P(T) + log P(W | T))

T̂ remains the chosen tag sequence and T is the candidate sequence ranged over by arg max. W is the word sequence. The symbol log denotes the logarithm, and × denotes multiplication. The factor λₜ adjusts the importance of the tag-sequence term P(T) relative to the word term P(W | T). The authors tune that factor on held-out data. In the fine-tuned tagger, the additional components also have scaling factors computed on held-out data.

Another enhancement reverses the direction used for tagging. In the right-to-left procedure, the word term shown below uses the tag at the token to the right of the current one.

P(wᵢ | tᵢ, tᵢ₊₁)

P is a conditional probability, i indexes the current token, wᵢ is its word, and tᵢ is its proposed tag. The tag tᵢ₊₁ belongs to the following token in reading order, which lies on the side already traversed by the right-to-left procedure. The authors identify this word term and the tag transition estimates as especially susceptible to sparse observations.

They add a word-ending component to share some evidence across forms.

P(endingᵢ | tᵢ, tᵢ₊₁)

The variable endingᵢ denotes the last three characters of the word at position i. The probability P conditions that ending on tᵢ, the current tag, and tᵢ₊₁, the tag to its right. An ending can recur across word forms, so this component supplies a cue at a different level of detail from an exact word observation. It supplements the score for the whole word.

The authors also add a transition component using a reduced tag inventory.

P(tᵢ* | tᵢ₊₁*, tᵢ₊₂*)

Each starred t is a reduced tag that retains POS, gender, number, and case. The subscript i marks the current position, while i + 1 and i + 2 refer to the next positions in the written sentence. P is the probability of the current reduced tag given the reduced tags at those positions. The reduction pools information from full tags that agree in the retained positions. It leaves the final task unchanged: the tagger still has to choose complete tags from the available candidates.

Finally, the authors extend the trigram components to fourgrams and use a smoothing method called history-based bucketing. Smoothing addresses the problem of estimating scores when particular contexts have sparse evidence. The paper reports the combined effect of the enhancements against the original hidden Markov baseline on development data. The formulas for the intermediate components show the types of evidence the authors add. The paper describes the complete fine-tuned setup as using all the enhancements and their individual scaling factors.

Score contextual features with Morče

Morče also chooses a tag sequence for a sentence. It uses the Viterbi algorithm to find the best sequence under its scoring scheme. In this role, the algorithm compares paths through the possible tags and uses intermediate scores to find the best complete path. Morče supplies weights learned by an averaged perceptron, a method for assigning coefficients to features based on training examples. Those weights function as scores for choices in context. The computation depends on which features are active for a candidate tag at the current position.

w(C, T) = ∑ᵢ₌₁ⁿ αᵢ φᵢ(C, T)

The quantity w(C, T) is the transition weight assigned to candidate tag T in context C. T here names a tag, in contrast to its use for a whole tag sequence in the hidden Markov formulas. The index i identifies a feature, and n is the number of features. The summation sign ∑ adds the contribution of each feature. The coefficient αᵢ is its learned weight, and φᵢ(C, T) indicates whether that feature is true in context C for tag T. Juxtaposing the coefficient and the indicator means multiplying them. A true feature contributes its coefficient, while a false one contributes nothing.

The authors estimate the coefficients on annotated training data and refer to earlier work for the detailed training procedure. A feature can describe a property of the text that is available to the tagger together with the proposed tag and its context. The paper emphasizes that training is quick enough to try different feature sets. In the combination experiments, Morče serves both as a strong standalone comparison and as a component whose full-tag decisions can be used in several different ways. It finishes the best reported serial system, supplies the category decisions in the best serial system with SUBPOS preprocessing, and proposes readings in the best parallel system.

The tag scores make sense within a sequence search. A good score for a choice at one position contributes to an overall path, and the choice of surrounding tags affects the context in which other moves are scored. Once a search finishes, the serial and parallel combinations take decisions from the resulting sequence. At the interface between components, the output can be treated as one chosen tag per token. The hybrid operations described by the paper use those choices as candidates or as evidence about SUBPOS, without requiring a conversion of perceptron scores into probabilities.

Estimate tag preferences with the feature-based tagger

The feature-based tagger also uses indicators of properties of a proposed label and its context. Its starting formulation puts a weighted sum of these indicators inside an exponential and normalizes the resulting scores into probabilities.

p_AC(y | x) = exp(∑ᵢ₌₁ⁿ λᵢ fᵢ(y, x)) / Z(x)

Here p_AC(y | x) is the conditional probability for the predicted event value y in context x. AC refers to the tagger’s use of ambiguity classes. The symbol exp denotes the exponential function. The sum ranges over features indexed by i, with n the number of features. The indicator fᵢ(y, x) is true or false for the proposed event value and context, and λᵢ is its weight. Multiplication of the weight and the indicator gives a contribution when the feature is active. Z(x) is the normalizing factor for context x, and the slash denotes division. Normalization puts the scores for possible values of y on a common probability scale.

The paper characterizes the implementation as an approximation to the full log-linear formulation. The large feature inventory makes the usual maximum-entropy estimation infeasible in this setup. The tagger instead estimates weights using the occurrence counts of features relative to their contexts. The authors describe the resulting approximation as essentially Naive Bayes. This distinction matters when comparing the tagger with the other systems. The equation defines the form of the score, while the counting approximation explains how this tagger obtains weights in practice.

An ambiguity class represents the options available in one grammatical category. The authors illustrate it with a token whose possible major parts of speech are adjective, noun, and verb. That token receives the class ANV for that category. The representation is useful even before a context has selected one of those readings. A feature can refer to an ambiguity class on either side of the current token because the class can be constructed from the possible readings without waiting for the tagger’s intermediate choices. The feature-based tagger thus brings a kind of contextual evidence that is compatible with considering words to the left and right of the current position.

Decide when the statistical and rule-based passes should run

In the basic serial configuration, the morphological analyzer first establishes the full candidate sets. The rules then reduce them using the conditions available in the sentence. A tagger finally chooses a complete sequence from the surviving readings. The benefit of this order is straightforward: every deletion removes a possible wrong decision from the statistical search if the deleted reading was indeed incorrect. As long as the annotated reading remains available, the search has a smaller set over which to decide. This configuration needs only one statistical pass and may leave some useful constraints inactive because the grammar is working with the analyzer’s original ambiguity.

The serial configuration with SUBPOS preprocessing addresses a particular reason for that inactivity. A rule can depend on a reading in its context having become unambiguous. If a second rule could make it unambiguous but needs a consequence of the first rule, both can remain blocked. The authors found such dependencies when examining rule output on development data. They highlight uncertainty about whether a word is a finite verb as one way multiple ambiguous tokens can prevent the grammar from obtaining a reliable starting point.

The preprocessing pass first asks a tagger to determine the full sequence in its usual way. At each token, the system takes the SUBPOS of the chosen tag. It then restores every original candidate for that token with the same SUBPOS. The paper states that SUBPOS determines POS in this tagset, so this selects both the detailed and broad part of speech. Readings within the selected category can still differ in attributes such as case or number. The rules operate on those restored sets, and a final run of the same tagger chooses the remaining details in the reported single-tagger configuration.

The restoration step is essential to what the configuration tests. Suppose the first pass has identified the right detailed category but assigned the wrong case. If the appropriate full reading was in the morphological analysis and shares the selected SUBPOS, it returns to the candidate set. A rule or the final tagger can then favor it. If the category itself was chosen incorrectly, the restoration step cannot recover an analysis from another category. The authors are motivated to take that risk because they observed that each of the three taggers disambiguates SUBPOS with over 99% accuracy. The paper also notes experiments with different taggers for the first and last passes, although its main serial comparison uses the same one.

The parallel configuration narrows the candidate sets through a different route. It runs several taggers independently on the analyzed input. Each one assigns a full tag to each token. The system gathers the proposed tags into their union at each position. Agreement leaves a single candidate, while disagreement leaves the distinct readings available for a later decision. The union is token by token, so the eventual sequence can contain choices from different initial sequences. The paper’s best parallel arrangement uses Morče and the feature-based tagger to make the proposals.

The grammar can be inserted after the union. In this position it sees much more specific contexts than it does immediately after morphological analysis. An agreement between the initial taggers can give a rule an unambiguous reading to work with. A disagreement can leave several alternatives for a rule to inspect. The best configuration applies the safe and heuristic rules at this stage, then uses the hidden Markov tagger to resolve any remaining ambiguity. The resulting choice is guided by the final tagger’s sequence score. The architecture specifies no tally in which the most frequently proposed reading automatically wins.

There is a corresponding tradeoff in this procedure. If the two taggers choose different full readings and one is correct, the union preserves a distinction the final pass can resolve. If neither proposes the annotated reading, that reading is gone before the grammar starts. The reason for using different taggers is the expectation that some errors will be complementary. The experiment asks whether the useful cases of preserved alternatives, together with later contextual decisions, are frequent enough to improve the final score.

Experiments and results

Corpus, test splits, and what is counted

The experiments use the Prague Dependency Treebank, a Czech treebank that provides manual linguistic annotation. The authors describe the resource as containing about 1.8 million hand-annotated tokens. All reported training and testing for the tagging methods uses PDT 2.0. The training set has 1,539,241 tokens. The main results use its evaluation-test set of 219,765 tokens. The comparison broken down by tag position instead uses the development-test set of 201,651 tokens. The split matters when associating the detailed error analysis with the headline accuracy figures.

The morphological processor and the taggers used in the experiments are from April 2006, and the rule component is from September 2006. The PDT distribution supplies the morphological processor and feature-based tagger. The authors describe training the statistical components from the training set and tuning parameters of the hidden Markov tagger on held-out data. They describe development of the separate grammar through linguistic judgments and corpus inspection. These procedures provide each component with different kinds of evidence before the experiment evaluates how they behave together.

The metrics have to accommodate both partial and complete answers. An analyzer or a rule pass can keep several tags at a token. A final tagger chooses a single tag, so it can be judged directly by exact match. For the partial systems, the authors count the total number of output candidates as well as the tokens at which the manual tag remains available. Precision measures how much of the output consists of that annotated reading. Recall measures how widely the annotated readings are preserved across the input.

p = h / c

Here p is precision. The count h is the number of tokens whose output includes the manually assigned tag. The count c is the total number of candidate tags output across all tokens. The slash denotes division. A token with several surviving tags adds several candidates to c, even when its annotated reading supplies a hit to h.

r = h / t

The symbol r is recall, h is the count of tokens retaining the manually assigned tag, and t is the number of tokens in the test set. This fraction asks whether the correct reading remains available at each token. A rule that removes another reading from a set can improve precision while leaving recall unchanged. If the rule removes the reference reading, the token ceases to contribute to h.

f = 2pr / (p + r)

The symbol f denotes the F-measure. The letters p and r stand for precision and recall. The numerator multiplies the constant 2 by p and r, and the denominator adds p and r. This is the harmonic mean of the two measures. It gives a combined view of how narrow the output is and how well it retains the annotated readings.

The final taggers output exactly one tag per token, so the count of candidates equals the count of tokens. In that case the measures coincide.

p = r = f = h / t

The symbols p, r, and f again stand for precision, recall, and F-measure. The numerator h now counts tokens where the single output matches the annotation, and t counts all evaluated tokens. The authors call this common value accuracy. Exact match requires agreement with the annotated full tag. The paper also reports error as the complement of accuracy and uses relative error reduction for comparisons against named baselines. That comparison describes the reduction in the baseline’s errors relative to the baseline’s own error rate.

What morphology and rules achieve on their own

On the evaluation-test set, the morphological processor has 25.72 % precision and 99.39 % recall, with an F-measure of 40.87 %. These numbers characterize a deliberately permissive starting point. Across the test set many candidate readings are offered, and the reference tag is available at most tokens. That high recall matters because every subsequent process starts with these sets. If the reference reading is absent, subsequent selection within that set cannot yield an exact match to it.

Applying the safe rules produces 57.90 % precision, 98.83 % recall, and 73.02 % F-measure on the same split. With all rules, precision reaches 66.35 %, recall is 98.03 %, and F-measure is 79.14 %. The precision increase means that the rule pass has removed many alternatives in relation to the number of retained hits. The decline in recall shows the cost of some of those deletions. In particular, the safe-only result shows that the retention goal attached to the safe category is stronger than its observed agreement with the treebank annotation.

Candidate precision for morphology and rules on the PDT 2.0 evaluation-test set

Each rule configuration produces more precise candidate sets than morphological analysis alone.

Candidate precision for morphology and rules on the PDT 2.0 evaluation-test setMorphological processor: 25.72Morphological processor25.72Safe rules: 57.90Safe rules57.90All rules (this paper): 66.35All rules (this paper)66.35
The numbers
System or settingprecision %
Morphological processor25.72
Safe rules57.90
All rules (this paper)66.35

The precision score also explains why a rule-only result cannot be read as complete tagging accuracy. In a partially disambiguated sentence, retaining an annotated tag qualifies as a hit even if other readings still accompany it. The output is useful because a later pass has fewer alternatives to consider. It still leaves decisions to that pass. To find out whether the tighter candidate sets improve complete tagging, the authors compare the completed serial and parallel combinations against standalone statistical taggers.

Complete tags from standalone and combined systems

The standalone results establish the accuracy of each statistical tagger working from morphological analysis. On the evaluation-test set, the feature-based tagger reaches 94.04 %, the improved hidden Markov tagger reaches 94.82 %, and Morče reaches 95.12 %. These are full-tag scores. The feature-based tagger’s lower standalone score does not settle whether it will supply useful readings in a combination. A proposal from it can be valuable specifically at tokens where Morče’s proposal is wrong.

The hidden Markov tagger also has a separate baseline comparison within its own development. Against the starting HMM, the package of changes produces a relative error reduction of 13.98 % on development data. This result refers to the development comparison between versions of that tagger. The standalone 94.82 % figure refers to its complete-tag accuracy in the evaluation-test comparison with the other systems. The two numbers therefore describe improvement at different levels of the experiment.

Full-tag accuracy of standalone and hybrid taggers on the PDT 2.0 evaluation-test set

The parallel combination with the full grammar has the highest complete-tag accuracy.

Full-tag accuracy of standalone and hybrid taggers on the PDT 2.0 evaluation-test setFeature-based tagger: 94.04Feature-based tagger94.04HMM: 94.82HMM94.82Morče: 95.12Morče95.12Safe rules then Morče: 95.34Safe rules then Morče95.34Morče SUBPOS then safe rules then Morče: 95.44Morče SUBPOS then safe rules then Morče95.44Parallel without rules: 95.52Parallel without rules95.52Parallel with all rules (this paper): 95.68Parallel with all rules (this paper)95.68
The numbers
System or settingaccuracy %
Feature-based tagger94.04
HMM94.82
Morče95.12
Safe rules then Morče95.34
Morče SUBPOS then safe rules then Morče95.44
Parallel without rules95.52
Parallel with all rules (this paper)95.68

The strongest basic serial combination puts the safe rules before Morče and reaches 95.34 %. In the version that resolves SUBPOS first, the highest reported score again uses Morče and the safe grammar. It reaches 95.44 %. This is the comparison that most directly addresses the authors’ diagnosis of blocked rules: both best serial results use the safe grammar and finish with Morče, while the preprocessing configuration has an earlier Morče pass that supplies the detailed category. The gain belongs to the full pipeline, including the effect of restricting the final tagger to candidates in the category that the earlier pass selected.

The parallel system reaches 95.52 % without applying rules. The paper reports this as a relative error reduction of 8.20 % against standalone Morče. The result supports the idea that using a candidate union and then selecting a new sequence can be worthwhile even when one of the proposal taggers is weaker on its own. On the evaluation-test set, the combined process makes fewer exact-tag errors than the strongest standalone tagger. That aggregate result does not require the two taggers to be equally strong or equally useful at every token.

Inserting the full grammar after the parallel candidate union raises accuracy to 95.68 %. The relative reduction in errors is 11.48 % against standalone Morče and 3.57 % against the parallel system without rules. Both baselines matter. The comparison with Morče describes the benefit of moving from the strongest individual system to the strongest whole configuration. The comparison within the parallel architecture estimates the contribution of running the grammar on the candidates that the statistical passes already supplied. The second comparison is the closer match for a reader interested in the incremental contribution of the rules.

The best serial configurations use safe rules, whereas the best parallel result uses all rules. The paper reports these as the strongest configurations the authors found for their respective arrangements. The difference is consistent with the input to the grammar changing from one arrangement to another. Operating on analyzer output, on SUBPOS-filtered output, and on the union of a pair of full-tag predictions presents the rules with different ambiguity. A ranking among those complete pipelines combines the quality of the candidate sets with the effects of whatever grammar and final tagger are used.

Where the remaining errors occur

The development-test analysis measures matches separately for the tag positions. This lets the authors see whether a stronger complete tagger improves every grammatical property or whether differences cluster in particular attributes. The comparison omits the two reserved positions. It includes standalone results and the two parallel settings. Values in that analysis are error rates, so a lower value represents fewer mismatches in the specified grammatical position.

Case-position error on the PDT 2.0 development-test set

The parallel system reduces case error further when the full grammar is applied.

Case-position error on the PDT 2.0 development-test setFeature-based tagger: 4.03Feature-based tagger4.03HMM: 3.53HMM3.53Morče: 3.08Morče3.08Parallel without rules: 2.85Parallel without rules2.85Parallel with all rules (this paper): 2.62Parallel with all rules (this paper)2.62
The numbers
System or settingerror %
Feature-based tagger4.03
HMM3.53
Morče3.08
Parallel without rules2.85
Parallel with all rules (this paper)2.62

Case has the highest error in the reported position comparison. Its figures also show a clear ordering in the chart: the standalone taggers give way to the parallel system, with a further reduction when the grammar is included. This identifies case as an important place to observe the contribution of the strongest combination. It does not assign credit to a particular rule. A case decision can benefit indirectly from the narrowing of a neighboring token’s readings, and the table measures outputs rather than tracing the decisions that produced them.

The other positions give the case result context. Adding the full grammar to parallel tagging lowers gender error from 1.39 to 1.37 and number error from 1.18 to 1.15 in the development-test analysis. Both figures in each comparison are error percentages for that position. POS stays at 0.57 and SUBPOS at 0.64 in the two parallel settings. Degree of comparison goes from 0.26 to 0.27, and the variant position from 0.28 to 0.29. The improved complete-tag result therefore fits a pattern of changes concentrated in some attributes, with some unchanged and others slightly worse on this analysis.

Position-level error is an extra view of complete tagging, with its own denominator and split. A token with several wrong attributes can contribute an error to several positions, while a token with one wrong position already counts as a complete-tag error. The development-test figures help locate where tagging is difficult. For direct comparison of full annotation quality, the main evidence remains the exact-match evaluation-test result.

Speed as part of the comparison

The authors also report processing speed on a 2.2GHz Opteron processor. Each statistical tagger and the parallel system without rules process several hundreds of tokens per second in those tests. The standalone grammar processes about 40 tokens per second. With every rule enabled, the complete parallel system handles approximately 60 tokens per second. Those figures describe the tested software and hardware arrangement. They make clear that the additional accuracy of adding rules came with more processing time than the parallel statistical system required.

The parallel hybrid can nevertheless process more tokens per second than the standalone rule component. The authors attribute this to the state of the input when the grammar runs: the parallel proposals have already resolved much of the ambiguity. The rule cost therefore depends on where it is placed. Sequential execution of a grammar and tagger can have different performance characteristics when the tagger helps to prepare the input for the grammar. The reported timings give a practical counterpart to the accuracy comparison and help explain why the authors consider the most accurate system as a complete software suite.

What the ablations show

The rules have a measurable contribution inside the parallel system

The parallel comparison with and without the grammar is the paper’s closest test of the incremental value of a component. The rules occupy a distinct stage between merging the statistical proposals and selecting the final tag sequence. The displayed evaluation-test results compare the parallel combination in the rule-free setting with the same kind of combination using all rules. The reported 3.57 % relative error reduction against the rule-free parallel baseline measures the value of adding that stage under the reported configuration.

The size of that gain is easier to interpret alongside the statistical baseline. The parallel arrangement already improves on Morče by 8.20 % in relative error before the grammar is introduced. A strong result from the full system therefore combines an improvement from the statistical proposal and selection procedure with a further improvement associated with rule pruning. Comparing the full system only with Morče would fold these effects together. The rule-free parallel result provides the intermediate comparison needed to see how much improvement is present before any explicit grammar has been applied.

Because full-tag accuracy measures the output of the final pass, the result includes the interaction between pruning and sequence selection. A deletion may directly force a different answer at the token where it applies. It may also change what the final tagger prefers elsewhere by changing the possible sequences through the sentence. The score gives the total effect of inserting the rules. The paper offers linguistic examples of how one deletion can enable others, but it does not identify an exact path from individual rules to each corrected token.

More aggressive pruning changes both sides of the partial-output evaluation

The comparison of morphology, safe rules, and all rules examines an earlier point in the pipeline. The reference for every setting is the same manually annotated tag per token in the evaluation-test data. The grammar removes alternatives that count against precision while it also risks removing an annotated tag that counts toward recall. The safe-only and all-rules outputs show that the broader grammar gains further precision at the cost of lower recall. The F-measure increases under the paper’s combined metric for partial disambiguation.

That result places a useful boundary on what should be inferred from the precision chart. The all-rules setting produces the highest precision when the rules are evaluated directly on analyzer output. The reported direct evaluation also shows the greatest loss of correct candidates in that setting. A final tagger benefits from a smaller candidate set only where the worthwhile alternatives survive. Consequently, the standalone comparison provides evidence about the behavior of pruning, while the full system comparison is needed to tell whether that behavior improves complete tagging.

There is also an interaction within the grammar. After each heuristic deletion, the safe rules run again until no further safe deletions apply. The gap between safe-only and all-rules operation therefore measures the result of enabling heuristics in the full rule procedure. It includes any subsequent changes produced by a safe rule that can now recognize a context. A separate account of how many tags each reliability class directly removed, or which rules triggered later decisions, would be needed to attribute the change in detail. The reported scores support a comparison between modes of operation.

Category preprocessing tests a specific obstacle

The two serial configurations examine the authors’ observation that ambiguity can block the application of a rule. In the setup with SUBPOS preprocessing, the first run of Morče supplies a detailed part of speech before the same safe grammar operates. The subsequent Morče run produces the full output. The evaluation-test result improves from the reported safe-rules-then-Morče setting to the configuration that includes this first pass. The procedure retains multiple readings within the chosen category, so the statistical pass that precedes the grammar and the pass that follows it have distinct jobs.

The comparison fits the authors’ explanation of a deadlock. The grammar can now start with contextual facts about categories even when it would have required a different rule to establish those facts from the initial sets. The experiment combines this effect with another immediate consequence: the preliminary category choice removes candidates outside the chosen SUBPOS. The final score therefore reflects both the change in evidence supplied to the grammar and the reduction in alternatives for final tagging. The paper reports no condition with the category restriction and the final pass but without rule application that would quantify those effects separately.

The authors also mention trying different taggers at the beginning and end of the serial procedure. They describe the results as slightly better than using the same tagger in both positions, while still below the other methods discussed subsequently. They give no exact figures for those variants. Their main serial results consequently show the effect of changing the order and adding category evidence in the best same-tagger setting, without providing a general ranking of all possible tagger assignments.

The position analysis and the HMM comparison answer narrower questions

The development-test position comparison helps distinguish the effect on case from the effect on category labels. Parallel tagging with rules has lower case error than parallel tagging without them, while the two settings report the same POS and SUBPOS errors. This is evidence that the observed gains extend to the detailed morphology the paper set out to address. Without inspecting paired outputs, equality in an aggregate position score cannot show whether the systems were right and wrong at the same tokens. Likewise, the case result measures the behavior of the whole system when rules are included, leaving the contribution of individual constraints unresolved.

The improved HMM’s development result is a comparison of packages. Its reported relative error reduction of 13.98 % is measured against the baseline HMM after changes to scaling, direction, sparse cues, and history length have been combined. The authors describe the motivation for each change, but the results do not give individual held-out scores for removing each enhancement. The evidence supports using the tuned HMM as a stronger component in the evaluated system. It leaves open how much each enhancement contributes and whether the same changes would have similar effects outside that component.

The paper also does not give the recall of the merged proposals by themselves in its principal results. Complementary mistakes motivate the parallel arrangement, and its better end-to-end score supports the practical decision to combine the taggers. A recall measurement on the union would answer a different question: how frequently the correct tag is available to the last stages, regardless of their decisions. The paper gives that kind of partial-output measurement for morphology and the standalone grammar, making it possible to distinguish a measured property of those stages from an assumption behind the proposal union.

Limitations

Limits the authors state

The authors warn against comparing historical scores for Czech directly across releases of the Prague Dependency Treebank. The training and testing sets changed between PDT 1.0 and PDT 2.0. The strongest comparison is among the systems whose results are measured on the same PDT 2.0 split under the conditions in this paper. The authors’ discussion of the best available performance for Czech belongs to that account of earlier systems and the systems tested here. The evaluation-test numbers supply the common comparison for the present experiment.

The authors see a possibility that handwritten constraints could contribute more in inflective languages with smaller annotated corpora. Their reasoning is that a grammar can encode general linguistic evidence even when a statistical tagger has few annotated examples from which to learn. This is a proposed implication of the approach. The paper reports Czech results and offers no experiment that varies the amount of annotated data or compares the same stages across languages. The Czech results can motivate the expectation, while its size in another setting remains an open question.

For the same reason, the authors leave unresolved whether additional annotation or grammar development would require less effort for a particular language. They point out that annotating rich morphology takes work and that unannotated corpus material can help refine and test rules. LanGR may support that development process, but the paper offers no measured cost comparison. The grammar in the experiment reflects substantial Czech-specific knowledge, and the authors identify that language dependence as a drawback. Applying the same architecture elsewhere would still require suitable resources and constraints for the target language.

Runtime is the other explicit disadvantage they identify. Even with the fast LanGR implementation, rule application is slower in their tests than the statistical taggers. Presenting a partly disambiguated sentence to the grammar improves its speed relative to standalone rule use, but the full hybrid remains slower than the parallel setting without rules. The authors discuss offering the software to retag the 200 mil. word Czech National Corpus and anticipate benefits for search and subsequent language processing. Their report describes the offer and prospective benefits. It provides no outcome measurements for a retagged corpus or for the applications that could use it.

Limits of what the experiments establish

All the methods depend on what the initial analyzer proposes. Its 99.39 % recall on the evaluation-test split is high, but some annotated tags are missing at the starting point. The combination methods described here have no mechanism to introduce a reading outside those sets into the final search. The novel intermediate stages also narrow the available choices. SUBPOS preprocessing retains full tags only if they share the selected category, while the parallel union admits only whole tags proposed by the first taggers. These decisions can be helpful on average while placing different limits on recovery at individual tokens.

The safe-rule label merits particular care. It expresses how the authors classified their rules before evaluation. Safe-rule recall of 98.83 % is below the analyzer’s recall of 99.39 % on the evaluation-test set. Thus there are annotated readings present after morphology that fail to survive the safe-rule stage. The aggregate numbers establish that mismatch. They do not determine its cause in individual examples. A reading can have a standing in the grammar and a separate standing in the corpus’s annotation, and resolving the discrepancy would require inspecting the relevant sentences, rule firings, and annotated tags.

The comparisons also describe particular ways of assigning roles to a set of components. The hidden Markov tagger finishes the strongest parallel result even though it ranks below Morče as a standalone system. This shows that standalone and final-stage performance answer different questions. Once candidate sets have been narrowed, the distribution of decisions facing the last tagger has changed. The paper identifies the strongest arrangement it found and gives the scores of the main alternatives. It does not supply a complete matrix that would establish how candidate recall, rule class, and the identity of the final tagger interact in every arrangement.

The position analysis should be read on the development-test split on which it was made. Case contributes a conspicuous pattern there, but the paper supplies no corresponding breakdown for the evaluation-test scores that headline the study. The exact-tag metric also gives equal credit to each token that matches and does not distinguish the importance of different grammatical errors for another application. A search system or a parser could value particular attributes differently. The experiment measures the tagger’s agreement with the reference annotation, leaving downstream effects outside its evaluation.

Finally, the paper gives point estimates for the systems and the corresponding relative error reductions. It does not report uncertainty estimates or paired significance tests for the differences among the strongest combinations. The common test set and the rule-free comparison make the reported ranking interpretable for this benchmark. The magnitude of the differences under resampling, on new Czech corpora, or with differently constructed tag inventories remains beyond the study. The most specific supported claim is an improvement for the tested configurations on the reported Czech treebank splits.

What came after

The later citing work spans methods for estimating fine-grained tag probabilities, extension of tagging research to other languages, and a Czech resource concerned with word formation. These links indicate where researchers cited the study. The documented scope of each work supports a different kind of comparison with it, and the citation relationship alone leaves the details of any method transfer open.

Schmid’s decision-tree study of fine-grained tagging addresses the statistical side of detailed tag choice. Its stated subject is the estimation of conditional probabilities with decision trees and their application to fine-grained part-of-speech tagging. Spoustová and colleagues likewise need a way to score detailed alternatives in context, but study how statistical components cooperate with an independent rule stage. Schmid’s topic continues the question of how to estimate scores for fine-grained distinctions. The documented topic does not establish use of the Czech grammar or the parallel candidate union.

Gambäck’s study of Amharic tagging methods takes the tagging question to Amharic. Its relevance is that it cites the Czech study while considering tagging methods for another language, the kind of change in setting that Spoustová and colleagues discuss in their conclusion. The documented scope identifies language and task. It does not specify which Czech components, if any, were reused or provide a measurement of the benefits of rule-based pruning in Amharic.

Agic’s work on Croatian and Serbian tagging and lemmatization places morphosyntactic tagging alongside lemmatization, the assignment of a dictionary form to a token. This widens the task beyond the complete-tag decision evaluated in the Czech experiment. The connection is at the level of detailed analysis of word forms in context. The citing work’s documented scope establishes that it treats both labeling and lemma assignment for Croatian and Serbian, while leaving the implementation relationship to the Czech hybrid unspecified.

Sevcikova’s Czech word-formation network cites the tagging paper from another area of Czech morphology. A word-formation network concerns relationships among words, whereas the tagging study chooses the grammatical reading of each token in a sentence. The citation shows the tagging work being referenced in research on a different kind of Czech lexical resource. Its documented topic gives no basis for claiming that the network uses the hybrid’s output or adopts its rule procedure.

Cite

Cite as Drahomíra “johanka” Spoustová, Jan Hajič, Jan Votrubec, Pavel Krbec and Pavel Květoň. 2007. The Best of Two Worlds: Cooperation of Statistical and Rule-Based Taggers for Czech. Proceedings of the Workshop on Balto-Slavonic Natural Language Processing.

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

@inproceedings{spoustova2007best,
  title = {{The Best of Two Worlds: Cooperation of Statistical and Rule-Based Taggers for Czech}},
  author = {Drahomíra “johanka” Spoustová, Jan Hajič, Jan Votrubec, Pavel Krbec and Pavel Květoň},
  booktitle = {Proceedings of the Workshop on Balto-Slavonic Natural Language Processing},
  year = {2007},
  url = {https://aclanthology.org/W07-1709/}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/spoustova-2007-best-two-worlds-cooperation-statistical/