Elamur Research

Efficient Stochastic Part-of-Speech Tagging for Hungarian

Paper · 2002 · Csaba Oravecz and Péter Dienes

Summary

A Hungarian word can be entirely regular and still be unfamiliar to a tagger trained on hundreds of thousands of words. This is a problem for part-of-speech tagging, which assigns grammatical labels to words in context. The Hungarian task studied by Csaba Oravecz and Péter Dienes calls for labels that also encode distinctions in morphology, such as distinctions expressed by inflectional endings. With many possible forms for a given word, a training corpus supplies few examples of many of the exact forms that a tagger will encounter. The paper asks how far a relatively simple statistical tagger can go if a separate component supplies the possible analyses of each form.

The authors adapt the TnT tagger and pair it with a rule-based Hungarian morphological analyzer. The analyzer supplies a list of plausible tags for a word. That list defines the word’s ambiguity class, a group of forms that admit the same grammatical readings. The tagger learns how frequently each reading occurs within a class by pooling counts from its members in the annotated training corpus. A form absent from training can then inherit preferences from forms that admit the same readings. For familiar forms, the tagger can draw on counts for the form itself. It combines these preferences with evidence from neighboring tags to select an analysis in context.

The experiments show how much the choice of evidence matters. With ordinary TnT suffix guessing, accuracy on Hungarian test tokens whose word forms were absent from training was 67.07%. Using the analyzer to supply candidates with equal initial weights gave 95.50% accuracy on that subset in the adapted TnT system. Giving the candidates weights learned from their ambiguity classes brought accuracy on those tokens to 97.32%, with 98.08% accuracy overall. The variant that also blended word-specific and class statistics for rare familiar forms reached 98.11% overall. The authors describe the improvement from this last refinement as insignificant.

The strongest conclusion concerns the division of work between grammar and statistics. The analyzer can use morphological structure to narrow down the readings of an unfamiliar form, and the annotated data can tell the tagger which of those readings generally occur. A separate error analysis finds cases where local evidence receives too little weight and cases where a decision calls for information beyond the tagger’s local context. The reported accuracies come from corpora in which the analyzer could handle every word. Coverage of forms unfamiliar even to the analyzer remains an open part of the tagging problem.

Deep dive: Efficient Stochastic Part-of-Speech Tagging for Hungarian

A Hungarian tagger uses a morphological analyzer and shared tag frequencies to identify the grammatical roles of word forms absent from training. · about 33 minutes to read

The problem and its context

What the tagger has to decide

A tagging experiment begins with a choice about what a label should tell the reader. A label can identify a broad category such as noun or verb. It can also describe features that distinguish forms within one of those categories. The Hungarian experiments target detailed morphosyntactic descriptions, which combine grammatical category with information about the form. The resulting linguistic annotation provides a layer of description that can be used before more elaborate language processing. Its usefulness depends in part on the distinctions other processing stages will need.

Consider the difference between a word form and a token. A form is a particular realization of a word as it appears in the text. A token is an occurrence of a form at a particular position. A corpus can contain many tokens of a familiar form alongside other forms that occur just once. The tagger makes a decision for every token, and it can learn a frequency for a pairing of form and tag from all the tokens with that pairing. For an unfamiliar form, the familiar procedure of counting previous uses of that form yields no evidence.

The paper distinguishes this scarcity of examples for particular forms from scarcity caused by a large inventory of labels. A rich label inventory scatters evidence across more categories and across more possible sequences of categories. Earlier work discussed by the authors explored smaller tag inventories for the decisions made inside the tagger. The hard part of designing such an inventory is deciding which features carry evidence for disambiguation. Dropping a distinction can make the counts more useful, but it can also remove a cue or an output feature that the task requires.

The authors’ earlier Hungarian work had explored automatic reduction with recoverability. In that scheme, the tagger can use a smaller internal inventory while still distinguishing the original tags that compete for a given form. The smaller internal label can be interpreted in light of that form’s alternatives. The paper reports that this earlier reduction could be substantial without costing tagging accuracy. The work under discussion takes up a different source of scarcity. Even with a smaller internal inventory, a tagger that learns about forms exclusively from their previous occurrences has little to work with when a new form appears.

The scale of the label inventory also explains why the authors care about the precise prediction task. They put the usual number of labels for non-agglutinative languages between 50 and 200 and describe inventories for highly inflective or agglutinative languages as substantially larger. For a statistical tagger that counts short tag sequences, each extra distinction creates more possible sequence patterns. Some of those patterns will be poorly represented in training. At the same time, the authors describe annotated resources for the languages of interest as comparatively small. Collecting examples for each combination of tags and each form is consequently an unattractive basis for the architecture.

What counts as an ambiguity

The number of alternatives attached to a word depends on how an annotation scheme defines a grammatical reading. The authors give an example involving the Hungarian nominal endings -nak and -nek. A scheme might contemplate giving a form with one of those endings a genitive reading alongside its dative reading. One guideline described in the paper asks whether each proposed reading has an unambiguous substitute that could be used in the same environment. The authors say that the proposed genitive distinction fails that test in their example. Under that guideline, the annotation would give the tagger fewer alternatives to distinguish.

A separate guideline concerns what the tagger can reliably decide. A scheme can leave a feature unspecified at this stage and let subsequent processing resolve it. Conversely, it can preserve a distinction that the tagger handles well and that the output can use. These guidelines can lead to different label designs because one appeals to evidence for a linguistic distinction and the other to the practical division of work among processing stages. A count of possible readings therefore reflects choices about annotation as well as properties of the language.

The paper makes the same point through the distribution of ambiguity. Hungarian can appear easier than English if difficulty is described only by the proportion of tokens that have several tags or by the average number of tags available to a token. In the authors’ account, the decisions posed by those alternatives can still differ in the kind of evidence they require. Whether a distinction is written into a tag, left underspecified, or assigned to a later stage affects both the count and the meaning of an observed error.

This matters for the practical task of assigning a label to every token. An ambiguity statistic records how many possibilities the analysis exposes. A statistic about unseen forms records how frequently the training corpus has failed to provide examples for a particular input form. A token can have an easy decision under the first description, because its morphology permits one tag, and still be difficult under the second, because a corpus-based lexicon has never encountered it. The Hungarian system is designed to let the analyzer settle that kind of case before the tagger needs to weigh competing contextual interpretations.

Earlier approaches and the choice of TnT

The authors situate the study alongside several approaches already used for Western European languages. They cite Merialdo’s probabilistic work on English, Brill’s error-driven transformation approach, and the memory-based MBT system. They also point to work that combined taggers. Their account treats tagging as an established way to obtain an initial layer of useful annotations and asks how to adapt it to a setting where detailed morphology and frequent unfamiliar forms strain the usual sources of evidence. Merialdo’s probabilistic English tagger · Brill’s transformation-based tagger · MBT

One proposal the paper takes up is to make the set of possible tags for any given form available to the statistical tagger. In the work cited by the authors, this could involve preparing a separate morphological dictionary. For Hungarian, they favor computing the analyses as the forms arrive. An analyzer can apply general morphological knowledge to a new form and supply the resulting alternatives. This avoids the need to prepare a list containing all the full forms the language could produce. Morphological Tagging: Data vs. Dictionaries

TnT offered a straightforward way to combine these alternatives with local context. At its core is a trigram hidden Markov model. A trigram is an n-gram containing three consecutive items. Here, it is the tags that form the sequence. The history used to score the current tag consists of the preceding two tags. The tags are hidden in the sense that the sentence supplies the words, while the sequence of tags is what the system must infer. Each proposed tag is judged both by its fit with the observed form and by its fit in a possible sequence.

The design initially looks like an awkward match for Hungarian. The authors describe Hungarian constituent order as relatively free and shaped by information structure. A short tag history does not directly represent the reasons speakers arrange constituents in a given way. The research question is whether that fairly limited account of local context is sufficient for much of the tagging work once the forms themselves come with well-supported candidates. The authors’ aim is to test that architecture under Hungarian conditions, with the sources of morphological and statistical evidence made explicit.

The method, step by step

From a form to a set of readings

The analyzer used in the study is Humor, a rule-based system originally developed for Hungarian by Gábor Prószéky and László Tihanyi. It accepts a form and returns possible morphological analyses. At the interface to the tagger, the important output is which tags those analyses make available. If the analyzer gives a single possibility, the statistical component has a constrained choice. If it gives several, the tagger needs a way to express their relative plausibility and relate them to the rest of the sentence.

The authors explain why a suffix guesser has trouble supplying the same evidence. TnT’s original guesser uses a procedure attributed to Samuelsson that draws on endings learned from training. In Hungarian, relevant suffix sequences in the authors’ training corpus could be as long as 8 characters. A long ending may be informative, but the examples needed to estimate its tag preferences can be scarce. Shorter, more frequent endings can have the opposite problem. The surface sequence -ek, for example, can occur in inflectional patterns for nouns and for verbs. The stem of a particular form frequently determines which analysis is possible.

A form can also carry a grammatical distinction with no overt ending, through what the authors describe as a zero morph. Conversely, a single morpheme can have several surface realizations. These properties distribute information unevenly across the string of characters that a suffix guesser sees. An analyzer can consider which stem and inflectional pattern go together. This explains both the choice of a symbolic component and its narrow responsibility in the architecture. It supplies the legal readings, leaving their relative weight and contextual selection to the statistical tagger.

What an ambiguity class preserves

The possible tags for a form define its ambiguity class. Two forms are in the same class when their sets of possible tags are the same. It is the identity of the alternatives that matters, so two forms with equally many possible tags can belong to different classes. Likewise, sharing one possible tag does not make two forms members of the same class if their remaining alternatives differ. This representation preserves the grammatical choice facing the tagger and allows many different surface forms to share a statistical history.

The authors illustrate the idea with the English forms books and loves. In their example, both can take NNS, the plural-noun tag, or VBZ, the verb tag for the third-person singular present. If this pair is the complete candidate set, both forms can be represented by the same class. Annotated occurrences of either form can contribute evidence about which of those readings is used. A new form that has the same candidate set can draw on the evidence even if it was absent from the annotated training data.

Class membership guarantees that the alternatives are alike. Preferences are a separate question. The paper illustrates that issue through books and looks. In the authors’ Wall Street Journal example, books has no observed verbal occurrence, while looks typically receives the verbal tag. A single pooled distribution can describe how the class behaves in aggregate while giving a poor account of a frequent individual member. That difference motivates preserving word-specific counts even when a tagger has access to class counts.

The paper considers experiments in which the class appears as a substitute for the form, and experiments in which the form and its class are both available. Replacement gives the tagger a less varied input vocabulary. Keeping both gives it a choice of evidence at each token. The latter choice is central to the authors’ approach because it lets a familiar form retain its behavior and a new form borrow statistical evidence without first having to appear in the tagged corpus.

How the tagger learns and uses morphological evidence

The steps in order.

How the tagger learns and uses morphological evidenceStep 1: Analyze word forms to obtain candidate tags1. Analyze word forms to obtain candidate tagsStep 2: Group forms with the same candidate set2. Group forms with the same candidate setStep 3: Count annotated tags by word and class3. Count annotated tags by word and classStep 4: Build tag probabilities for each input token4. Build tag probabilities for each input tokenStep 5: Apply any supplied restrictions on candidate tags5. Apply any supplied restrictions on candidate tagsStep 6: Convert tag probabilities into lexical likelihoods6. Convert tag probabilities into lexical likelihoodsStep 7: Choose tags using lexical and sequence evidence7. Choose tags using lexical and sequence evidence

Preparing counts at both levels

Training starts with annotated occurrences, each with a selected reference tag. An analysis of the form supplies the set of possibilities used to identify its class. The word lexicon records how often each reference tag was observed with that exact form. The class lexicon records how frequently each reference tag was observed with any member of the class. A token thus provides evidence at both levels even when its word-specific preference is strong. The analyzer establishes the grouping, and the reference annotation determines which count in the group is incremented.

This distinction is important when reading the class distribution. Its values reflect occurrences labeled in training. They are not counts of the number of forms for which the analyzer says a tag is possible. A tag may be licensed for many forms and still contribute little to the distribution if it rarely occurs in the training sentences. Conversely, a frequent reading of a frequent member can contribute substantially to the total. Pooling trades some specificity for a larger body of observations.

The paper also tests an earlier style of representation where training and test forms are replaced by their ambiguity classes. It attributes the early use of this idea to Kupiec and describes its use by Tzoukermann and Radev. When every form is replaced, the resulting input consists of identifiers for sets of tags. The tagger still learns to predict the individual reference tags. It is the identity of the observed input that has changed. A new surface form with a familiar class now looks familiar in the input representation.

A second replacement experiment follows Kupiec’s later strategy of retaining frequent forms and mapping less frequent ones to their classes. To decide which forms to retain, the authors used an independent corpus of 80 million words. They prepared a frequency list for forms and used morphological analysis to obtain class frequencies as well. A form kept its identity if it occurred at least 500 times in that independent corpus. Forms below the threshold were represented by their classes. The tagger then trained and tested on corpora transformed according to that policy.

The independent frequency corpus serves a different purpose from the annotated Hungarian corpus. The 500-occurrence threshold determines how a form is represented in the partial replacement experiment. It does not determine how much confidence to place in a tag count for a rare form in the dual-lexicon approach. Keeping those roles separate helps explain the difference between the variants. The replacement strategy decides up front which kind of input the tagger will see. The dual-lexicon strategy can consult both kinds of counts for a token.

Building a distribution for a token

An elementary way to use the analyzer is to distribute probability evenly across the readings it returns. This is the uniform condition in the experiments. In that condition, any preference between candidates has to come from the other parts of the tagger’s scoring procedure, including the sequence evidence. Uniform weighting is especially informative as an experimental comparison because it gives the tagger the analyzer’s candidate list without giving it any learned preferences among the candidates at the initial weighting stage.

The class-based approach uses the annotated counts to supply those preferences. When the word is unseen in training and its class has been observed, the method normalizes the counts for the class to obtain a probability distribution. Normalizing turns counts into shares of the total count. A reading attested often in the class consequently receives more weight than a reading attested rarely. The unknown word can enter the sentence with a differentiated set of candidate weights even though it has no word-specific counts.

For a seen form, the method starts from the form’s own history. A possible tag can still have no recorded occurrence with that form. If it has occurred with the form’s class, the class evidence keeps it in consideration. The procedure in the paper gathers the tags present in either count distribution and uses their union to decide which entries to score. Tags already observed for the word retain their exact counts. Each remaining entry gets a small count determined by the number of entries in the union.

c̃(t) = c_w(t)  if t ∈ T_w, and  1 / |T_w ∪ T_a|  otherwise, for t ∈ T_w ∪ T_a

Here t is a candidate tag, w is the word form, and a is the form’s ambiguity class. T_w is the set of tags with counts for the word, and T_a is the set with counts for the class. The symbol ∈ means membership, ∪ forms the union of the sets, and the bars | | give the number of different tags in that union. c_w(t) is the observed count of the tag for the word, and c̃(t) is the count used to construct the new distribution. The 1 in the numerator produces the same small added count for each tag present only in the class distribution.

P(t | w, a) = c̃(t) / ∑_{u ∈ T_w ∪ T_a} c̃(u)

P(t | w, a) is the probability assigned to tag t given the word form w and class a in this seen-word procedure. The vertical bar inside P means “given.” The denominator sums the revised count c̃(u) over each tag u in the union T_w ∪ T_a, with ∑ indicating that sum. Dividing by the total puts the revised entries on a common probability scale.

This form of count adjustment treats a gap in a rare word’s history differently from a gap in a frequent word’s history. For a fixed set of tags, an added count makes up a larger share of a small total than of a large one. If the word has been observed many times with one reading, its established preference remains strong. If it has appeared only sparsely, a reading seen elsewhere in the same class receives a larger share of its distribution. The class counts supply the extra possibilities in this procedure. Their actual relative magnitudes come into play more directly in the smoothing variant.

Turning candidate probabilities into sequence evidence

The adapted TnT accepts probabilities in the direction just described, from a form to its possible tags. The hidden Markov scoring procedure needs lexical probabilities in the other direction, from a proposed tag to the form. The authors arranged for the modified tagger to accept the first kind of probability at its input and obtain the second by Bayesian inversion. For a fixed observation, the relationship is as follows.

P(w | t) = P(t | w) × P(w) / P(t)

Here w is the observed form and t is a proposed tag. P(w | t) is the lexical probability of the form given the tag. P(t | w) is the tag probability provided for the form, with the class information folded into it where the weighting procedure uses that information. P(w) is the marginal probability of the form and P(t) is the marginal probability of the tag. The multiplication sign × combines the two factors in the numerator and the slash denotes division. In comparing tags for the same observed form, the form’s marginal probability is common to the alternatives.

The inversion matters because a preference among tags for a word and a likelihood for a word under a tag answer different questions. The first asks which tag readings are plausible given the observed spelling. The second supplies the word evidence in a sequence score whose tag transitions have their own probabilities. The input distributions make it possible to insert class-based evidence into that existing scoring procedure without requiring a conventional word-form lexicon to hold a reliable lexical estimate for every unfamiliar form.

The sequence component considers the relative plausibility of short tag histories. A reading favored for the current form can compete with a reading that fits the surrounding tag sequence better. When several adjacent words are ambiguous, the choices interact. The tagger seeks a sequence whose word-level scores and tag transitions work together. The analyzer has already limited the set of grammatical readings it needs to consider, and the learned distributions provide useful starting preferences when several readings remain.

The architecture can also accept an explicit list of allowed tags alongside the form and class. When that list is supplied, the tagger restricts its calculation to the allowed tags. This lets an external component remove readings using information that the regular lexical and sequence estimates have difficulty capturing. The class can still serve as a source of statistics, while the explicit list controls which readings are available at this occurrence. The paper uses this facility in a separate error-analysis intervention with deterministic rules triggered by the surrounding context.

Combining word and class preferences for rare forms

The authors also test a more direct way to use the class distribution for a word that has appeared in training. The count adjustment described above preserves observed word-specific counts and gives class-only readings a small allowance. It does not carry across the full pattern of class preferences. If a rare word has very few observations, the authors consider using a weighted average of the probability from the word lexicon and the probability from the class lexicon.

P(t | w, a) = λ(w, a) P(t | w) + (1 − λ(w, a)) P(t | a)

P(t | w, a) is the combined probability of the tag t for word form w in its class a. P(t | w) is the probability estimated from word-specific counts, and P(t | a) is the probability estimated from pooled class counts. λ(w, a) is the mixing weight on the word distribution. The term 1 − λ(w, a) is the complementary weight on the class distribution. The plus sign adds the weighted probabilities, and juxtaposition of each weight and probability denotes multiplication.

The question is how much influence to give each source. The authors consider using a fixed weight and discuss the drawback of choosing it from relative token frequencies alone. A class generally occurs much more frequently than one of its members. A weight driven solely by those totals can make the pooled preference dominate. Their chosen weighting depends on the frequencies of the word and class as well as the number of different forms that belong to the class. Class size is therefore relevant alongside the accumulated number of class occurrences.

When a word appears in the training corpus more than five times, the authors stick with the count-adjustment algorithm’s earlier procedure. The more elaborate interpolation targets rare familiar forms, for which both distributions exist and the individual counts have relatively little support. Unfamiliar forms with no word distribution are the main beneficiaries of the earlier decision to learn from classes in the first place. These are distinct situations, and the experiments report separate results for them where the comparison allows it.

Experiments and results

The corpora and the coverage of lexical counts

The Hungarian corpus contained 270,830 tokens. The authors report using standard 10-fold cross-validation. Their English reference corpus is a comparably sized sample drawn from the Wall Street Journal’s first section and tagged with Penn Treebank tags. The default Hungarian inventory retained essentially all the morphological information of interest and contained more than 2000 possible tags. The corpus statistics report 571 Hungarian tags occurring in the training corpus. The English corpus comparison uses 50 tags. The English data help characterize lexical sparsity, while the tagging configurations evaluated for the proposed architecture are Hungarian. Treebanks

The corpus comparison gives the scale of the distributional difference. Its Hungarian word-form row reports 243,829 training tokens and 49,649 distinct training forms. The English row reports 245,714 training tokens and 19,021 distinct training forms. The Hungarian test data in that comparison have 27,001 tokens and 9994 distinct forms. The English test data have 27,319 tokens and 5701 distinct forms. The two training samples have similar numbers of occurrences, while the Hungarian sample spreads them across many more forms.

The unseen proportions distinguish vocabulary coverage from coverage of running text. Of the distinct Hungarian forms in the test data, 36.1% were absent from training, compared with 17.5% of the distinct English test forms. The corresponding shares of all test occurrences were 17.3% for Hungarian and 4.5% for English. A type contributes once to the first calculation and can contribute repeatedly to the second. For the tagger’s accuracy on running text, the second quantity specifies how much of the workload falls on the strategy for unfamiliar forms.

The cumulative frequency analysis gives another view of the same pressure. Forms with at most 5 occurrences account for 33% of Hungarian tokens, compared with 10% of English tokens in the paper’s comparison, which excludes numbers. Forms occurring only once account for 16% of Hungarian tokens and 4% of English tokens. A large training vocabulary is helpful only to the extent that it provides repeated, informative observations. The frequency analysis shows how much of the Hungarian sample is occupied by forms for which estimates based on exact previous occurrences have little evidence.

The ambiguity statistics point in a different direction. The paper reports that about 23% of Hungarian tokens are ambiguous by its chosen definition. It gives figures of 38.65% for English, 40% for Romanian, and 45.97% for Czech from the earlier work it discusses. Hungarian averages 1.33 tags per token. The paper gives English comparisons of 2.34 or 1.72 and Czech comparisons of 3.65 or 2.36, with the reported values sensitive to the corpus and tag inventory. These figures describe the alternatives made available by particular setups. They give little basis for predicting how frequently a lexical tagger will encounter an unfamiliar form in each language.

Replacing all Hungarian forms with their ambiguity classes changes the vocabulary statistics considerably. The class representation has 1914 distinct training items and 892 distinct test items in the corpus comparison, with the same token totals as the original Hungarian representation. Among distinct test classes, 7.2% were absent from training. Among test occurrences, 0.29% had an unseen class. The paper also reports that low-frequency items account for less than 1% of training tokens under this representation. A great many unfamiliar spellings can therefore be placed in groups for which there are already observations.

The class mapping leaves the reference tags in place. The corpus comparison reports 8.0% of distinct test tags unseen in training for the Hungarian analysis both with word forms and with classes. The counterpart for English is 1.6%. The Hungarian class representation improves coverage of the inputs that the tagger can associate with prior observations. It leaves the label inventory and the distribution of reference analyses in the corpus intact. This is why a reduction in unfamiliar inputs can coexist with remaining scarcity in the tag sequences that the system needs to learn.

Basic lexical and suffix baselines

Accuracy is the proportion of evaluated tokens assigned their reference tag. The basic experiments report it overall and for separate subsets of seen and unseen word forms. Punctuation is included. The authors explain that when the analyzer is used, punctuation can be handled as part of the ordinary stream of unambiguous tokens. In the basic comparisons, the unseen subset comprises 17.31% of test tokens. The corpus comparison reports the share as 17.3%, while the tagging results use 17.31%.

The simplest baseline chooses the most frequent training tag for each seen form. On an unseen form it supplies the most frequent nominal tag from training. This provides 97.97% accuracy for seen forms, 17.54% for unseen forms, and 84.06% overall. The seen score establishes how strong a form’s usual tag is when there is already a history of that form in the corpus. The unseen score shows the cost of extending one fixed category to all forms without such a history.

Adding suffix guessing to the baseline gives 98.00% accuracy on seen forms, 64.51% on unseen forms, and 92.18% overall. Standard trigram TnT with suffix guessing scores 98.32% for seen forms, 67.07% for unseen forms, and 92.88% overall. The trigram condition introduces local tag sequence evidence in a setup that still relies on suffix guessing for unfamiliar forms. It improves both subsets relative to the suffix-augmented baseline, and the unseen subset remains far more difficult than the seen one.

The basic condition that instead augments the baseline with the morphological analyzer has 97.97% accuracy on seen forms, 87.67% on unseen forms, and 96.19% overall. The authors associate the gain with the analyzer’s ability to give well-constrained options, including the many cases in which it returns only one analysis. The seen accuracy is the same as in the original frequency baseline. This comparison uses the analyzer within the basic baseline design. The later TnT experiments ask how much further the architecture can go by exploiting those candidates in a sequence tagger.

Accuracy on unseen Hungarian word forms in the basic tagging experiments

The baseline aided by the morphological analyzer has the highest accuracy on unseen forms in this comparison.

Accuracy on unseen Hungarian word forms in the basic tagging experimentsFrequency baseline: 17.54Frequency baseline17.54Baseline with suffix guessing: 64.51Baseline with suffix guessing64.51Trigram TnT with suffix guessing: 67.07Trigram TnT with suffix guessing67.07Baseline with morphological analyzer (this paper): 87.67Baseline with morphological analyzer(this paper)87.67
The numbers
System or settingaccuracy %
Frequency baseline17.54
Baseline with suffix guessing64.51
Trigram TnT with suffix guessing67.07
Baseline with morphological analyzer (this paper)87.67

The paper cites Brants’s reported TnT results of 85.5% for unseen words in English and 89% for unseen words in German while discussing the Hungarian suffix results. These are contextual figures from Brants’s work. The controlled Hungarian comparison is among the configurations tested on the Hungarian data. It is that comparison that shows how a Hungarian morphological analyzer changes the evidence available for unfamiliar forms.

Class replacement and analyzer-aided TnT

In the partial replacement experiment, where frequent forms retained their identity, 2.16% of test tokens had input representations unseen in training. Accuracy was 98.27% on seen inputs and 61.89% on unseen inputs, for 97.48% overall. Replacing all forms by classes reduced the unseen share to 0.29%. In that condition, the tagger was correct on 97.83% of seen inputs and 6.57% of unseen inputs, with 97.57% overall accuracy. The paper describes the difference between the overall results of these replacement methods as insignificant.

The meanings of “seen” and “unseen” change in these configurations. In the full replacement experiment an unfamiliar input is an unseen set of possible tags. Many test forms absent from the original word lexicon appear in the seen subset because another form already contributed evidence for their class. In the partial replacement experiment, the input vocabulary includes both classes and retained forms. These test subsets therefore differ from the unseen word-form subset of the baseline and dual-lexicon systems. The relevant practical benefit of mapping is that it moves many occurrences into a category the tagger has encountered.

In the uniform analyzer-aided TnT condition, 17.31% of tokens have unseen word forms. The system achieves 98.25% accuracy on seen forms, 95.50% on unseen forms, and 97.77% overall. Uniform candidate weights leave the tagger with morphological constraints and local sequence scoring. This condition separates much of the value of getting the candidate set from the additional value of learning how to weight its members.

With the class-based weighting and the two lexicons, the unseen share is again 17.31%. The tagger scores 98.25% for seen forms, 97.32% for unseen forms, and 98.08% overall. The unchanged reported score on seen forms and the higher unseen score locate the observed gain. For test forms with no word-specific history, the class statistics give the tagger a preference among permitted tags that the uniform condition leaves equal at the weighting stage.

Adding the frequency-dependent mixture for rare familiar forms gives 98.28% on seen forms, 97.32% on unseen forms, and 98.11% overall. The unseen share remains 17.31%. The highest reported overall accuracy in the main series belongs to this condition. The authors describe the gain from the additional smoothing as insignificant, and the identical reported accuracy for unseen forms is consistent with the refinement’s intended target among forms observed in training.

Overall tagging accuracy on the Hungarian corpus with ambiguity classes and morphological analysis

Keeping both word and class statistics yields the highest overall accuracy, with little separation between the two weighting variants.

Overall tagging accuracy on the Hungarian corpus with ambiguity classes and morphological analysisTnT with partial class replacement: 97.48TnT with partial class replacement97.48TnT with full class replacement: 97.57TnT with full class replacement97.57TnT with uniformly weighted analyzer tags: 97.77TnT with uniformly weighted analyzertags97.77TnT with class-based analyzer weights: 98.08TnT with class-based analyzer weights98.08TnT with rare-word smoothing (this paper): 98.11TnT with rare-word smoothing (thispaper)98.11
The numbers
System or settingaccuracy %
TnT with partial class replacement97.48
TnT with full class replacement97.57
TnT with uniformly weighted analyzer tags97.77
TnT with class-based analyzer weights98.08
TnT with rare-word smoothing (this paper)98.11

The main comparison measures correct detailed tag assignments on the Hungarian corpus under the stated coverage conditions. It includes the familiar forms that a lexical baseline handles well and the unfamiliar forms for which the different strategies yield sharply different accuracies. The overall score combines both groups. The breakdown is what shows whether a change helps the intended part of the task, especially when the overall scores of several configurations are already close.

What the ablations show

Candidate generation carries much of the gain

The paper’s comparisons vary the way candidates and weights are obtained, though some rows also change the representation or the sequence scorer. The cleanest baseline comparison for the source of unknown-word evidence holds the basic seen-word strategy in place. The suffix-augmented baseline and the analyzer-augmented baseline operate on the same unseen fraction of 17.31%. Their unseen accuracies are 64.51% and 87.67%, respectively. This supports the case for supplying an analysis of the whole form when character endings give weak or ambiguous evidence.

The standard TnT condition adds local sequence information to suffix guessing. Compared with the analogous suffix-augmented baseline, it improves the seen and unseen scores, but the improvement leaves a large gap between those subsets. The morphological analyzer addresses a different part of the problem. It can remove potential category mistakes before local sequence evidence is asked to resolve them. The authors’ explanation is especially plausible for tokens assigned a single reading by morphology, where the decisive step is getting that reading into the input at all.

The comparison between the analyzer-augmented baseline and analyzer-aided TnT is informative about the value of using a tag sequence along with morphological constraints. It is a broader system comparison because the two systems incorporate the analyzer’s information differently. The strongest evidence for a particular weighting change comes within the TnT configurations that share an input setup and evaluate the same unseen word-form subset.

The remaining candidates benefit from learned preferences

Uniform weighting and class-based weighting both give TnT access to the analyzer’s proposed tags. The uniform setting reaches 95.50% on unfamiliar forms, establishing that much of the improvement is available simply from identifying the alternatives and using contextual scores. The class-based setting reaches 97.32% on those forms while giving the same reported seen accuracy of 98.25%. The additional increase is associated with how the available tags are weighted, since the adapted tagger now starts from frequencies shared by similar forms.

The full and partial replacement experiments isolate a related question about representation. Full replacement provides broader coverage of input classes, but the matched input also hides which word was present. Partial replacement retains individual preferences for frequent words, but it also withholds their labeled occurrences from the statistics pooled for their classes. The partial condition’s slightly lower overall accuracy provides no clear advantage for the particular retention rule it tests. The 500-occurrence threshold is a setting chosen for that experiment, and the result gives one comparison at that setting.

Keeping both count inventories addresses the dilemma exposed by replacement. An occurrence can help estimate its word’s preferences and its class’s preferences simultaneously. A familiar word can benefit from its own history without forfeiting its contribution to what the system learns about similar forms. The higher accuracy of the class-weighted approach over the replacement approaches is consistent with that explanation. The configurations also differ in how they treat unfamiliar inputs and in the probabilities available to TnT, so the experiment measures the combined design choice instead of a single isolated change to the training counts.

The rare-word smoothing comparison is narrower. It changes how word and class preferences are combined for rare words with some training history. The rise from 98.08% to 98.11% overall comes with a change from 98.25% to 98.28% on seen forms and the same reported 97.32% on unseen forms. The authors regard that rise as insignificant. The larger gains in the main series come earlier, when the system first acquires useful candidates and then assigns them different weights for genuinely unseen forms.

Two sources of residual errors

In the first category of errors identified by the authors, an informative local context is available, but the tagger gives a general tag frequency too much influence relative to the bigram or trigram evidence. A unigram score reflects the general frequency of a single tag. Bigram and trigram scores reflect sequences of tags and can favor a particular reading in its local environment. If alternative analyses all involve infrequent transitions assigned to the same frequency group, interpolation based on those groups can give the alternatives insufficiently distinct treatment. The general frequency can then override a useful contextual cue.

The authors tried deterministic rules that are triggered by the environment of a token and filter candidate readings before stochastic selection. The input’s optional tag restriction makes that intervention possible. They report that the mean error count fell by roughly 10%, and a 0.2% rise in overall accuracy in their settings. The paper gives this result for the rule-based intervention alongside its qualitative error analysis. The result shows that altering the readings available to the scorer can correct some errors that persist under probability weighting alone.

The second category calls for information from higher levels of linguistic analysis. The authors treat these errors as cases where the evidence needed for the intended distinction is beyond the local tagger’s reach. If a downstream application can defer such a decision, the annotation scheme can merge or underspecify the relevant feature at the tagging stage. If the application requires the full distinction, the same errors motivate bringing additional evidence into the decision. The paper identifies this boundary qualitatively, while the rule intervention quantifies a gain from a particular way of handling some of the context-sensitive cases.

Limitations

Limits identified by the authors

The authors explicitly set up the experiment to assess the tagging architecture and ensured that the analyzer could handle the words in the training and test corpora. Accordingly, “unseen” in the main accuracy breakdown means unseen in the tagger’s annotated training data. An unseen form can arrive with a complete candidate list from the morphological component. A form for which the analyzer itself fails is a different case. The authors identify an external guesser for those forms as future work, with the goal of proposing the analyses licensed by Hungarian morphology even when the regular analyzer has no entry or analysis.

The trimming of errors through deterministic rules also has a bounded interpretation. The authors describe a small preprocessor targeted at locally resolvable errors and report its effect in the present settings. They leave open whether a finer division of contexts for statistical interpolation could handle this error class. For other mistakes, their analysis places the required information at a higher level of linguistic description. Providing better lexical estimates can make progress on the problem the architecture targets, while the remaining distinctions can require a different source of evidence.

The authors also emphasize the difficulty of comparing tagging results across different setups. Label granularity, the definition of ambiguity, and the choice of corpus affect the task presented to the classifier. A language can have a smaller share of ambiguous tokens while requiring harder decisions among the alternatives that remain. A corpus comparison can reveal that more test tokens fall outside a learned lexicon. It has a more limited role in establishing the intrinsic difficulty of grammatical analysis across languages, since the annotation schemes help define what constitutes a correct decision.

The conclusion accordingly leaves transfer to other languages as a question for further experiments. Hungarian exhibits the combination that motivated the work, including many surface forms and a detailed morphological analysis. The paper argues that the architecture is promising for languages with similar characteristics. The empirical support comes from Hungarian and from the behavior of the particular morphological resources and tagger used in the study.

Limits visible in the experimental setup

The experiment achieves morphological coverage by design, so the main scores describe an architecture supplied with usable analyses. In running text from another source, analyzer coverage and candidate correctness would be separate quantities to measure. Even if an analyzer returns a list for a form, a reference reading may be absent from that list, or a contextual filter may remove it. Once a restriction excludes the required tag, the statistical selector’s quality can be assessed only within the alternatives still open to it. The Hungarian results primarily characterize selection and weighting under the study’s candidate conditions.

The unseen figures for word forms and class representations also describe different kinds of test cases. The full-class system’s 6.57% on unseen inputs concerns a small subset of test occurrences with completely new class identifiers. The class-weighted system’s 97.32% on unseen word forms includes forms that belong to classes already represented in training. Comparing these scores as if they measured prediction on the same examples would obscure the mechanism of the method. Pooling helps precisely because a new form so frequently poses a familiar set of alternatives. The behavior of the weighting procedure for a class with no observed tag counts is less fully characterized than its behavior for a new form in a familiar class.

The relatively high accuracy of the simple lexical baseline on seen tokens is another condition worth bearing in mind. Much of the training distribution can be exploited through the most frequent tag for each form. Under those conditions, there is little room for broad changes in how familiar words are scored. An environment that changes the preferred readings of familiar forms could alter the usefulness of lexical frequencies and pooled class preferences. The reported cross-validation estimates performance within the sampled data and annotation regime. Evidence for stability across domains or collection conditions would require testing those changes directly.

The comparisons give different levels of control. The uniform and class-weighted analyzer variants provide a close comparison for the effect of weighting. Earlier comparisons change the input representation or the use of context as well as the evidence for unknown forms. The results show how the full configurations perform, while the individual contribution of every design choice is harder to separate. The authors describe the small gains for mixing distributions and the difference between the replacement variants as insignificant. The tabulated accuracies give aggregate values, leaving the variation across folds and the uncertainty of individual comparisons unspecified.

The error study identifies recurring mechanisms, but its categories do not come with a complete breakdown of affected tokens or features. The reported improvement from filtering indicates that some local decisions are amenable to rules. Its generality across unseen rules, another annotated corpus, or a different tag inventory remains open. Likewise, the observation that some mistakes require higher-level analysis identifies an opportunity for a more capable pipeline without quantifying how many of the remaining errors any particular higher-level component would resolve.

Finally, the paper’s claim of practical efficiency is chiefly architectural. The analyzer can compute readings dynamically, and shared class estimates reduce the demand for tagged examples of each form. The evaluation reports tagging accuracy and corpus coverage statistics. Measured latency, throughput, and comparative resource use are outside those reported results. The evidence for efficiency therefore concerns the reuse of morphological rules and annotated counts, with runtime performance left to a separate evaluation.

What came after

Later use of this specific study is undocumented here. The related work on pooling by ambiguity class, reducing tag inventories, and supplying tags from morphological resources belongs to the history that the authors drew on. The Hungarian experiments bring those ideas together and test the role of each source of evidence in a setting with many unfamiliar forms. The authors’ closing discussion gives two concrete directions for extending that work.

One is to supply candidate readings when the morphological analyzer itself encounters an unfamiliar form. This would extend the architecture to the coverage problem set aside in the experiments. The authors envision a guesser that proposes analyses permitted by Hungarian morphology and can pass them to the same disambiguation machinery. The distinction between an unseen spelling and an unseen grammatical pattern gives such an extension a clear question to answer. Once candidates have been produced, the tagger can still use class statistics where the candidate set has a history in training.

The other direction is to try the same division of labor on languages with similar morphological characteristics. A comparison of that kind would have to account for each language’s tag inventory, the coverage of its analyzer, and the distribution of unfamiliar forms and classes in its corpora. These conditions determine whether the statistical component has useful evidence to share and whether the analyzer makes the right alternatives available. The paper’s Hungarian results establish the feasibility of that arrangement in the tested setting. How widely the same gains carry across languages remains the question the authors leave open.

Cite

Cite as Csaba Oravecz and Péter Dienes. 2002. Efficient Stochastic Part-of-Speech Tagging for Hungarian. Proceedings of the Third International Conference on Language Resources and Evaluation (LREC'02).

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

@inproceedings{oravecz2002efficient,
  title = {{Efficient Stochastic Part-of-Speech Tagging for Hungarian}},
  author = {Csaba Oravecz and Péter Dienes},
  booktitle = {Proceedings of the Third International Conference on Language Resources and Evaluation (LREC'02)},
  year = {2002},
  url = {https://aclanthology.org/L02-1201/}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/oravecz-2002-efficient-stochastic-part-speech-tagging/