Elamur Research

Using a morphological analyzer in high precision POS tagging of Hungarian

Paper · 2006 · Péter Halácsy, András Kornai, Csaba Oravecz et al.

Summary

A Hungarian word can appear in a form that a tagger has never encountered, even when the tagger has seen other forms of the same word. A dictionary and a grammar can help identify the possible readings of that unfamiliar form. The remaining question is which reading fits the sentence. Halácsy and colleagues investigate how to divide this work between a Hungarian morphological analyzer and a statistical tagger. Their task is to assign each token a label that records its grammatical category and relevant details of its form, a version of part-of-speech tagging.

The authors use the open-source analyzer hunmorph. They compare ways of using its suggestions, from a simple baseline that favors frequent tags to systems that take surrounding words or tags into account. One system, MA+ME, learns to rank candidate tags from evidence such as the word ending, capitalization, nearby words, and the set of readings the analyzer proposes. WMA+T3 assigns weights to candidates and searches for a likely sequence of tags across the sentence. The best system, 2Pass, first runs the TnT tagger and then uses its proposed tags for the current token and its neighbors as additional evidence in an analyzer-guided second pass. When hunmorph has no reading for a token, the statistical component can still propose a tag.

In tenfold cross-validation on the manually annotated Szeged Corpus, 2Pass reaches 98.17% accuracy on the whole corpus, compared with 97.42% for TnT and 95.40% for the simple baseline that uses hunmorph. It also has the highest reported accuracy in each of the five specialized subcorpora. The whole-corpus evaluation reports 9.59% of tokens as unseen in training and 5.64% as outside the analyzer’s vocabulary. Those categories overlap, and the distinction matters. An unseen form can still receive a useful analysis, while a form the analyzer misses can still have a usable training history.

The experiments show that an analyzer can contribute to a tagger with an inventory of 744 detailed labels, and that first-pass tag predictions provide useful evidence when combined with lexical and morphological information. The scores also leave some questions open. The results table gives MA+ME and WMA+T3 identical accuracies throughout, even though the discussion describes an advantage for sequence-aware systems. The paper also gives overall accuracy and vocabulary coverage, leaving the exact accuracy on words missed by both the training vocabulary and hunmorph unresolved.

Deep dive: Using a morphological analyzer in high precision POS tagging of Hungarian

A Hungarian part-of-speech tagging study combines a morphological analyzer with statistical tagging and finds that a two-pass system is the most accurate. · about 32 minutes to read

The problem and its context

A familiar word can have an unfamiliar form

For a tagger that learns from annotated sentences, the simplest source of evidence is its memory of what labels particular words received. If an exact spelling has occurred many times with the same label, that record can be a useful starting point. In a language with productive inflection, however, a word can appear in many forms. Learning the label of a familiar form gives a lookup table no direct entry for another form. The language’s regularities may make the new form interpretable even when the annotated corpus has no example of it. Those regularities belong to morphology.

The relevant unit for the lookup table is the word form, the spelling that occurs at a particular point in the text. A morphological analyzer can relate that spelling to a lexical entry and describe its grammatical structure. The distinction matters because the analyzer’s vocabulary is more than a list of spellings harvested from the training corpus. Its lexicon and grammar give it a way to recognize forms that the tagger’s training records have missed. An analyzer can therefore supply evidence for a token even when its training count is empty.

The paper uses unseen for forms absent from the training data and out of vocabulary, abbreviated OOV, for forms the morphological analyzer fails to recognize. The two definitions answer different questions. The first concerns what evidence the tagger has acquired from annotated examples. The second concerns what the analyzer can derive using its own resources. If a training occurrence supplies a reliable tag, the tagger can benefit from it even for a form that hunmorph cannot analyze. Conversely, hunmorph can propose readings for a form that happens to be absent from training. A token that meets both definitions requires another source of evidence.

The authors emphasize both categories because a vocabulary built from a fixed training set makes the tagger dependent on which forms that particular set covers. In their account, applying it to a larger test set exposes more forms for which the training lexicon offers no entry. They argue that the analyzer’s unknown-word rate behaves differently as test data grow, which makes a separate morphological resource attractive for large collections. They allow for enlarging the analyzer’s lexicon when the target text is fixed or specialized. Their general objective is a tagger that can also make a decision when lexical coverage runs out.

Detailed tags make the decision more specific

A tag in this study can record more than a broad class such as noun. The paper’s simplest fallback label, for instance, specifies a singular nominative noun. Both the number and the case belong to the label that the tagger must predict. A broad category would leave those distinctions to later processing. The authors want to retain them because they can supply grammatical clues to subsequent stages.

That choice affects what it means to succeed. Suppose the evidence points towards a noun and the analyzer offers multiple noun readings that differ in their grammatical details. The tagger still needs a way to prefer the reading that fits the occurrence. More lexical coverage helps it get the candidates in the first place. Choosing among them is a separate problem. The analyzer and the selector can thus make different contributions even when they operate on the same token.

The authors give English tagging as context for why high aggregate accuracy leaves room for work. They cite a range of 95-97% correct for trigram taggers on English data of the treebank kind. They also illustrate their reasoning with a 20-word sentence, the average length in the Wall Street Journal, to explain why a per-tag accuracy of .96 can coexist with frequent sentences containing an error. The argument concerns the unit on which performance is judged. An error that is infrequent at the token level can still occur often enough across a sentence to affect a later stage that uses the tags.

The paper also describes earlier work on highly inflecting languages, including Slovene, as evidence that vocabulary and disambiguation remain substantive problems. For Hungarian in particular, the authors cite an earlier comparison in which a training sample of 270k words left 17.1% of Hungarian test tokens unseen, against 4.5% for English. They use the comparison to explain how exact-form lookup becomes sparse at a training size that might appear substantial. The Hungarian result comes from Efficient Stochastic Part-of-Speech Tagging for Hungarian.

Frequency, dictionaries, and context

The paper describes several responses to sparse training evidence. More annotated text can turn some formerly unseen forms into known ones. Smoothing can make estimates less dependent on the exact set of events observed in training. A guesser or morphological analyzer can provide evidence for forms that remain unseen. The study concentrates on the last approach while retaining statistical estimates and sequence information where they are useful.

Earlier studies had already explored dictionaries and analyzers as constraints on probabilistic tagging. A dictionary can narrow the available choices, since a tagger may otherwise give some weight to readings that the language’s morphology rules out for the spelling in question. The authors discuss this line of work through studies of dictionary support and the combination of rules with statistics. Two examples are Morphological Tagging: Data vs. Dictionaries and Serial Combination of Rules and Statistics: A Case Study in Czech Tagging.

Sequence-based tagging addresses a different part of the decision. A tagger can learn which labels tend to appear near one another and use that information to resolve a token whose spelling supports several readings. The benchmark in this paper is TnT, a statistical tagger that uses a trigram over tags and builds its lexical statistics from training. A trigram records a pattern involving three neighboring positions. For the paper’s comparison, TnT represents a strong way to use tag history with a vocabulary acquired from the annotated sample. TnT.

The authors argue that making sequence search tractable through short tag histories comes with restrictions on the evidence the tagger can use. Linguistic cues can overlap, and some relevant relationships extend beyond the immediate tag sequence. A conditional approach can take several observations about the same token as evidence at once. For instance, an ending and a capitalization pattern can both be available while the tagger is scoring a reading. In the paper’s account, maximum entropy tagging offers a way to use such features, following work by Adwait Ratnaparkhi.

The alternatives discussed in the introduction have costs of their own. The paper notes the label-bias problem in discriminative Markov approaches, where local normalization can favor paths with fewer available transitions. It describes conditional random fields as demanding enough to limit the amount of training data or the range of features that can be used under practical resource constraints. The authors respond by building separate components for recognition, scoring, and the use of tag context. Different experiments connect those components in different ways.

The practical motivation extends to collecting and analyzing large bodies of Hungarian text from the web. Such work benefits from retaining detailed grammatical labels and being able to process forms beyond the contents of an annotated training corpus. The paper situates that goal alongside an earlier effort described in Creating Open Language Resources for Hungarian.

The method, step by step

From candidate readings to a sentence of tags

The authors begin with a sentence represented as a sequence of words. During training, each position also has a reference tag from the corpus. The system can use those labels to count which readings a form received, estimate which tag patterns recur, and learn how observations about a word relate to the tag assigned to it. At application time, the reference labels are unavailable. The tagger must make its decision from the words, the analyzer’s suggestions, and whichever learned evidence the architecture makes available.

Hunmorph supplies the possible morphological readings. The authors hold its dictionary fixed across the analyzer-based systems, so the experiments vary how the same lexical resource is used. For a form with an analysis, the candidate list may settle the decision or leave an ambiguity. For a form without an analysis, the statistical part needs to act on evidence available in the sentence or remembered from training. OpenNLP ME supplies the maximum entropy software. The WMA+T3 variant uses SRILM for the tag trigram and uses the Viterbi algorithm to find a best sequence.

The strongest configuration uses the analyzer in the second of two tagging passes. The diagram follows that configuration at application time. TnT provides an initial tag sequence, and the second pass uses both the analyzer’s output and those preliminary labels.

How the two-pass Hungarian tagger assigns labels

The steps in order.

How the two-pass Hungarian tagger assigns labelsStep 1: Take the words of the sentence1. Take the words of the sentenceStep 2: Run TnT to propose a tag sequence2. Run TnT to propose a tag sequenceStep 3: Obtain possible readings from hunmorph3. Obtain possible readings from hunmorphStep 4: Gather word features and first-pass tags4. Gather word features and first-pass tagsStep 5: Score tags with the maximum entropy component5. Score tags with the maximum entropy componentStep 6: Select the highest-scoring permitted reading6. Select the highest-scoring permitted reading

The operations in the diagram distinguish a proposal from a decision. The first-pass tag is a proposal the second pass can use as evidence. Hunmorph supplies a set of permitted readings where it recognizes the form. The scorer then weighs the evidence for individual tags. For an OOV form, the second pass has its full inventory available. The decision process therefore depends on whether the analyzer recognizes the form, even though the second pass can calculate statistical scores in either case.

How the paper measures lexical ambiguity

The simplest way to describe ambiguity is to count the readings the analyzer offers. That count gives each possible reading equal standing. An exact spelling that almost always receives the same label can therefore contribute as much ambiguity to such a count as a spelling whose alternatives are used much more evenly. The authors want a measure that reflects how often the competing tags actually occur.

They start with a frequency estimate from annotated data. For any particular spelling, they compare the number of occurrences with a particular reading to the number of occurrences with any reading.

P(Tᵢ | w) = C(Tᵢ, w) / C(w)

w is the word form, Tᵢ is a candidate label indexed by i, and P(Tᵢ | w) is the estimated probability of that label given the form. C(Tᵢ, w) counts occurrences of w with label Tᵢ in the annotated corpus. C(w) counts all occurrences of w there. The vertical bar means “given,” and the slash divides the label-specific count by the total. The estimate is available directly for a form with a corpus count.

They then use entropy to measure how concentrated the tag distribution is for that form.

H(w) = −∑ᵢ P(Tᵢ | w) log P(Tᵢ | w)

H(w) is the tag entropy of the form w. The summation sign ∑ᵢ means to add a term for each candidate label Tᵢ, indexed by i. P(Tᵢ | w) is the conditional probability just estimated from annotation. log is the logarithm, with bits as the paper’s reporting unit. The leading minus sign makes the entropy non-negative. A form whose probability is concentrated on a single reading contributes less uncertainty than a form whose readings are more evenly distributed.

To characterize a corpus, the authors average the lexical entropies with the observed frequencies of the forms as weights.

H = ∑w P(w) H(w)

H is the average entropy per word occurrence. ∑w adds contributions over the distinct word forms w. P(w) is the relative frequency of a form, and H(w) is its tag entropy. Multiplication by P(w) makes a frequently occurring form count more towards the average than a rare one.

On the manually annotated Szeged Corpus, the authors report an entropy of 0.1 bits per word with probabilities estimated from usage. Treating all readings as equally probable yields 0.5 bits per word. The comparison shows why the existence of several analyses can overstate how hard the usual choice is. A commonly used reading can resolve many occurrences through frequency alone. The entropy still describes uncertainty given the form. A tagger faced with an unfamiliar form, or with an occurrence that requires the less common reading, needs further evidence.

The analyzer baseline

The authors first define a simple policy, BMA, which calls on the analyzer as a fallback from a training lexicon. The order of the checks determines where each information source has authority. A form seen in training receives its most frequent recorded tag. Only when the form has no training entry does BMA consult the analyzer to decide what to assign.

T = arg max over Tᵢ of P(Tᵢ | w)

T is the chosen tag for the form w. arg max means to return the candidate that gives the largest value of the expression. The candidates Tᵢ are the tags indexed by i, and P(Tᵢ | w) is the probability of each tag given the form, estimated from corpus counts. This is the rule for forms observed during training.

When the word is unseen and hunmorph proposes a single analysis, BMA uses its tag. If the analyzer proposes multiple readings, BMA chooses the candidate whose tag is most frequent in the training corpus. The distinction between those two uses of frequency is important. For a familiar form, the system asks what label that particular spelling usually received. For an unfamiliar form with several analyses, it asks which proposed label is more common in the corpus generally. When both lookups fail, it assigns NOUN.

Here the analyzer provides an advantage even without contextual scoring. It can identify a single reading for a form missing from training, or rule out labels before a frequency choice among several readings. The policy still gives the same answer whenever it encounters the same form under the same training and analyzer coverage. It has no opportunity to favor a less common reading because of a neighboring word. This makes BMA a useful comparison for systems that use linguistic context to decide among candidates.

Learning to rank readings from local evidence

MA+ME uses a maximum entropy scorer. A feature is a property that can be checked for a proposed tag and the observations around a token. In this paper the features are binary. For a particular candidate and context, the property is either present or absent. Training assigns weights to these properties, allowing overlapping cues to contribute to the score of the same tag.

The system uses the lower-cased spelling of the current token and the ambiguity class supplied by hunmorph. It includes indicators for nonalphabetic characters, an upper-case initial, and an entirely upper-case token. If a token is longer than 5 characters, the system can use its final 2, 3, and 4 characters. It also uses the preceding and following word forms in lower-case where those neighbors exist. The first word of a sentence has no preceding-word feature of this kind, and the last word has no following-word feature of this kind.

An ambiguity class represents the set of readings as a single feature. When two forms have the same set, training evidence about that set can be relevant to both. The scorer can learn a preference among a recurring combination of alternatives even if the exact spelling is unfamiliar. This is one role for the analyzer’s output. It also has a second role at decision time, when the candidate list can act as a hard restriction on the tag selected.

The spelling and context features serve a different purpose. A token that is new to the training material can still end in a familiar string. It can have a known capitalization pattern, and its neighbors can include familiar words. The scorer can use information learned about these properties even when no exact-form count is available and the analyzer has no candidate to offer. This is a way to reuse training evidence across forms that share pieces of their spelling or occur in similar local surroundings.

The paper expresses the maximum entropy distribution over a tag and its context as a product of feature weights.

p(tᵢ, cᵢ) = π ∏ⱼ₌₁ᵏ αⱼ^fⱼ(tᵢ, cᵢ)

i identifies the token position. tᵢ is the tag at that position, and cᵢ is its context, meaning the observations available to the scorer. p(tᵢ, cᵢ) denotes their joint probability. π is the constant that normalizes the distribution. ∏ⱼ₌₁ᵏ multiplies over the feature indices j, beginning at 1 and running through k, the number of features. αⱼ is the learned parameter for feature j. fⱼ(tᵢ, cᵢ) is that feature’s binary value for the stipulated tag and context. The caret denotes exponentiation, so an inactive feature contributes the multiplicative identity and an active feature contributes its weight.

For tagging, the system holds the observed context fixed and calculates a probability for each tag in that context.

P(tᵢ = Tₖ | cᵢ) = p(tᵢ = Tₖ, cᵢ) / ∑ₜ∈T p(tᵢ = t, cᵢ)

P(tᵢ = Tₖ | cᵢ) is the conditional probability that the tag tᵢ at position i equals the particular candidate Tₖ, given the context cᵢ. In this expression the subscript on Tₖ indexes the candidate tag. The numerator p(tᵢ = Tₖ, cᵢ) is the joint probability for that candidate and the observed context. The denominator sums joint probabilities across t ∈ T, meaning every tag t in the inventory T, with the same context throughout. The slash divides the candidate’s joint probability by that sum.

The normalization separates scoring from final selection. At the scoring stage, tags found in training receive positive probability even if the ambiguity-class feature suggests a narrower list. When hunmorph has an analysis, MA+ME selects the analyzer-permitted tag with the highest probability. When hunmorph supplies no analysis, the same scoring procedure can decide over the whole learned tag inventory. In the first case, a plausible tag that lies outside the candidate set is ineligible. In the second, the statistical evidence must carry the decision.

MA+ME includes neighboring spellings in its context, but its choice at one position does not depend on the tags it assigns elsewhere in the sentence. For example, a familiar following word can favor a candidate during scoring. The label subsequently assigned to that following word does not change the current token’s score. The architectures that follow use tag context in two different ways.

Scoring entire tag sequences with WMA+T3

WMA+T3 uses the weighted morphological analyzer, or WMA, to leave multiple candidates available for sentence-level search. Its job is to provide a short set of plausible tags with weights at each position. A separate trigram over tags supplies sequence evidence. The decoder can prefer a combination that fits the learned tag patterns even if a different tag has greater local support at a particular position.

The WMA’s first check is for an exact spelling in the training corpus. If the spelling is present, the tag weights are the maximum-likelihood estimates from its observed label counts. The system uses the distribution over the remembered readings, rather than taking the most frequent one immediately as BMA does. This gives the sequence decoder a chance to choose a less frequent reading when its neighbors favor it.

For an unseen spelling that hunmorph recognizes, the WMA retains only the tags proposed by the analyzer. It takes the scores from the maximum entropy component and normalizes them within that restricted set so that they sum to 1. A single available reading settles the candidate set. When several are available, their relative weights give the decoder lexical evidence while the trigram contributes evidence about how each would fit the surrounding tags.

For a spelling outside both the training lexicon and hunmorph, the WMA keeps the 3 most probable tags from the maximum entropy scorer. It again normalizes the retained weights to sum to 1. This gives the sequence search a way forward while bounding the number of options at a position with no lexical analysis. The cutoff also decides which readings are available before sentence-level evidence is used. If the appropriate tag falls outside the retained set, a convincing tag sequence cannot bring it back into consideration.

The paper frames the sentence decision as finding the tag sequence with the greatest probability conditional on the word sequence.

arg max over t₁,…,tₙ of P(t₁,…,tₙ | w₁,…,wₙ)
=
arg max over t₁,…,tₙ of P(w₁,…,wₙ | t₁,…,tₙ) P(t₁,…,tₙ)

w₁,…,wₙ is the sequence of observed word forms and t₁,…,tₙ is a proposed sequence of tags for the same n positions. The subscripts mark positions, and the ellipses stand for the intervening words or tags. P denotes probability and the vertical bar means “given.” arg max selects a tag sequence that maximizes the expression that follows. The left-hand side uses the conditional probability of the tags given the words. On the right, the first factor gives the probability of the words conditional on the tags, and the second gives the prior probability of the tag sequence. The word sequence stays fixed during the search, so its probability in Bayes’ rule is a common denominator and leaves the preferred sequence unchanged.

The paper says that, after independence assumptions, the first factor on the right is derived from WMA output. It describes the WMA as providing weights for tags at each token and does not specify the full conversion from those local tag probabilities to the word-given-tag factor in the equation. The second factor comes from a trigram fit to the reference tag sequences in the training corpus. In the trigram, the local sequence evidence for a tag is conditioned on the preceding tag pair. WMA+T3 drops the neighboring-word features from its maximum entropy component to maintain the separation the authors want between lexical weighting and sequence scoring.

Viterbi search uses the limited tag history to avoid enumerating complete sequences independently. When partial sequences reach the same position with the same relevant tag history, their remaining continuation possibilities are shared. The decoder can retain the better-scoring partial sequence for that history. At the end it recovers a complete path through the candidates. In this architecture, the best candidate for a word is determined as part of that path, with the word evidence and the tag sequence contributing to the decision.

Using a preliminary tag sequence in 2Pass

The authors’ final configuration also uses tag context, but obtains it from an initial tagging run. During the first pass, TnT assigns a tag to each token using its default settings. The second pass has access to the TnT label for the token being scored, the TnT label just before it, and the TnT label just after it. These are added to the maximum entropy features.

The current token’s preliminary tag can provide a direct suggestion. The neighboring preliminary tags provide an account of the grammatical context in the same vocabulary used for the output. The following label is already available because the initial pass has produced a sequence before the second pass starts. The second-pass scorer can use this evidence alongside the spelling, word ending, and the analyzer’s ambiguity class.

In training, the paper describes adding the tags at the current, preceding, and following positions to MA+ME. It explicitly identifies the TnT predictions as the source of those observations at tagging time. It leaves the process for obtaining the training-time tag features unspecified at the level needed to tell whether they were produced by an equivalent first pass. The distinction matters for reproduction because a feature taken from a prediction may have different reliability from a feature taken directly from reference annotation.

For recognized tokens, the analyzer’s readings determine the allowed states in the second pass. For OOV tokens, the full set of tags remains available. The maximum entropy component estimates the scores used in choosing among the permitted readings. An initial TnT assignment can thus contribute to the second choice without settling it. If hunmorph recognizes the form, its candidate list bounds the choice. If it fails, word features and first-pass tags can still provide evidence about the appropriate label.

Both 2Pass and WMA+T3 exploit the tags around a token. They put that information in different places. WMA+T3 derives a sentence path by combining lexical weights with probabilities of tag sequences. In 2Pass, the maximum entropy scorer sees tags that another component has already proposed, including the tag at the very position being decided. The experiment evaluates the resulting systems as complete tagging architectures.

Experiments and results

Evaluation on the Szeged Corpus

The authors evaluate the taggers on the manually annotated Szeged Corpus. They report tenfold cross-validation for the corpus as a whole and separate tests on its five specialized parts. In cross-validation, the corpus is divided into groups, and each group in turn provides held-out examples while the remaining groups provide training data. This lets the experiment test on material excluded from the corresponding training run while making use of the annotation throughout the corpus.

The whole-corpus evaluation covers a corpus reported as 1,161,016 tokens in the results table. The specialized parts are Literature, with 209,785 tokens, Learner, with 290,167, and Press, with 355,311. The Technical part has 157,969 tokens, and Law has 147,766. These labels identify the test settings in the paper. They also reveal that a tagger evaluated on the whole corpus works across several kinds of material, whose spelling coverage and labeling difficulty can differ.

The central metric is tagging accuracy, the percentage of evaluated tokens receiving the reference tag. Because the labels incorporate morphological details, an accepted match requires the tag represented in the corpus, including distinctions encoded in that tag. The paper reports an inventory of 744 Hungarian tags and compares its scale with the 36 tags it associates with English treebank practice. The comparison explains why a result for broad grammatical categories would answer a different question from the one posed here.

The table gives two other percentages for each corpus setting. The unseen rate concerns forms missing from the training portion. The OOV rate concerns forms missing from the morphological analyzer. On the whole corpus, 9.59% of tokens are unseen and 5.64% are OOV. The authors separately estimate that approximately 2% of tokens in the Szeged Corpus are in both categories. Those tokens are especially relevant to the fallback procedure, since the usual sources of exact lexical evidence have both failed for them.

Coverage varies by subcorpus. Literature has an unseen rate of 12.19% and an analyzer OOV rate of 5.79%. Learner has rates of 8.16% unseen and 1.62% OOV. Press has 18.80% unseen and 9.98% OOV. The corresponding rates are 15.04% and 8.43% for Technical and 8.13% and 4.97% for Law. The rates describe what evidence is available in each testing setting. They do not give the share of unknown tokens assigned the correct label.

What the baselines establish

The paper begins with a brute-force unigram baseline. For a form observed in training, it selects the most frequent tag from its ambiguity class. For a form absent from training, it predicts the overall most frequent tag, the singular nominative noun. The rule tests what can already be achieved through memorized tag preferences and a single fallback. Its whole-corpus accuracy is 89.70%.

The authors explain that the size of the annotated training material helps the unigram baseline because it leaves fewer test tokens unseen. They describe the unseen rate in their experiment as ≈ 10%, compared with the 17.1% reported in the earlier Hungarian work that used a training corpus they describe as three times smaller. The contrast concerns the amount of evidence available to exact-form lookup. As more target spellings occur in training, a baseline can make more decisions from a history specific to the spelling.

BMA introduces hunmorph and improves whole-corpus accuracy to 95.40%. It differs from the unigram fallback most directly in what it can do for a form absent from training. When the analyzer finds a reading, BMA can use it, or choose among the analyzer’s readings by frequency. Its accuracy shows how much a corpus-wide score can benefit from access to morphological analyses even when the tagger makes independent, context-free decisions at each token.

TnT gives a sequence-aware benchmark and reaches 97.42% on the whole corpus. Against that benchmark, the study tests MA+ME, WMA+T3, and 2Pass. The whole-corpus entries show a progression across the simple unigram, the analyzer baseline, and TnT, followed by the analyzer-assisted statistical systems.

Szeged Corpus whole-corpus tagging accuracy

The two-pass tagger leads the comparison, and both other analyzer-assisted statistical taggers also score above TnT.

Szeged Corpus whole-corpus tagging accuracyUnigram baseline: 89.70Unigram baseline89.70BMA: 95.40BMA95.40TnT: 97.42TnT97.42MA+ME: 97.93MA+ME97.93WMA+T3: 97.93WMA+T397.932Pass (this paper): 98.172Pass (this paper)98.17
The numbers
System or settingaccuracy %
Unigram baseline89.70
BMA95.40
TnT97.42
MA+ME97.93
WMA+T397.93
2Pass (this paper)98.17

2Pass reaches 98.17% in the whole-corpus evaluation. It combines preliminary labels from the TnT run with the analyzer and the second-pass scorer, so the comparison with standalone TnT measures what the full refinement stage adds to that starting point. MA+ME and WMA+T3 each have an accuracy of 97.93% in the table. Their common value is important to interpreting the sequence experiments, since the architectures incorporate context differently.

How the ranking changes across kinds of text

2Pass leads on all five specialized subcorpora. On Literature its accuracy is 97.83%, compared with 96.02% for TnT. On Learner it reaches 98.01%, compared with 96.97% for TnT. For Technical the corresponding results are 98.11% and 97.02%. On Law, 2Pass reaches 99.04%, the highest reported accuracy for a specialized part, and TnT reaches 98.44%.

Press provides a useful setting for seeing what the vocabulary rates and the accuracy measure separately. Among the specialized parts, it has the highest proportions of forms unseen in training and missed by the analyzer. It also has the lowest unigram accuracy, 82.68%. Once the taggers use context, however, the Press results stand relatively high within their respective rows. That combination shows how conclusions about a subcorpus can depend on the available evidence and the tagger’s way of using it.

Tagging accuracy on the Szeged Corpus Press subcorpus

The two-pass tagger leads on Press, where the simple unigram baseline has its lowest accuracy among the specialized tests.

Tagging accuracy on the Szeged Corpus Press subcorpusUnigram baseline: 82.68Unigram baseline82.68BMA: 94.36BMA94.36TnT: 97.32TnT97.32MA+ME: 98.14MA+ME98.14WMA+T3: 98.14WMA+T398.142Pass (this paper): 98.382Pass (this paper)98.38
The numbers
System or settingaccuracy %
Unigram baseline82.68
BMA94.36
TnT97.32
MA+ME98.14
WMA+T398.14
2Pass (this paper)98.38

The difference in the interpretation of the rankings is worth making explicit. A subcorpus with more unseen tokens is a harder setting for a policy that relies on the stored tag of an exact spelling. A context-sensitive tagger can also exploit properties of the text that the coverage rates leave unmeasured. The Press evaluation therefore provides evidence about what happened on Press with these systems. It leaves open which characteristics of Press explain the performance of the stronger taggers.

Law gives the highest accuracy for BMA as well as for TnT and 2Pass. BMA reaches 96.89% there. The analyzer-guided local scorer and the weighted-analyzer sequence system both reach 98.96%. On Literature their reported accuracies are both 97.63%, on Learner both 97.80%, and on Technical both 97.91%. The identical reported accuracies extend across every corpus setting. The table establishes the ordering of the reported systems in each test, although those entries cannot reveal whether the tied systems made errors on the same tokens.

Comparisons with earlier taggers

The authors place the 2Pass result alongside previously published work on Hungarian. They report that it exceeds the rule-based systems they discuss under similar testing conditions. They describe its accuracy advantage over the earlier stochastic architecture of Oravecz and Dienes as slight, and emphasize handling of OOV forms as an advantage of their design. These claims situate the work historically. The paper’s directly aligned comparison is the one on Szeged with the architectures evaluated in this study.

The conclusion also compares the best Hungarian accuracy with the level reached by contemporary English tagging. The comparison is about the broad performance level that the authors consider attainable for a more detailed tag inventory. Each language’s data and categories define its own task. The Hungarian result shows that the authors could retain detailed morphological distinctions and still obtain high accuracy in their evaluation.

What the ablations show

The paper reports no component-by-component ablation, and instead offers a training-size learning curve, architecture comparisons, and an analysis of ambiguity and vocabulary coverage. These comparisons show where the sources of evidence help, with different degrees of control over what changes between systems.

Training size changes the value of analyzer coverage

The learning curve compares BMA, TnT, and WMA+T3 as the amount of training material changes. As the authors describe it, analyzer information is useful when the training vocabulary leaves many tokens unseen. As the corpus available for training grows, the analyzer’s advantage over a tagger with a training-derived lexicon becomes less pronounced. A larger sample gives exact-form lookup a better chance of having seen the spelling it needs.

The comparison clarifies the role of the analyzer’s independent vocabulary. WMA+T3 can obtain candidates for a previously unseen form that hunmorph recognizes. TnT represents the setting in which the lexical statistics are built from observed word forms. Once those counts cover more of the test set, there are fewer opportunities for analyzer coverage alone to change the decision. The curve ties the usefulness of the extra lexicon to the scarcity that motivated it.

BMA’s position in the same analysis illustrates a separate point. It receives analyzer readings, but does not use surrounding words or tags to decide among them. The paper describes it as falling behind the context-sensitive systems. The analyzer can narrow the possibilities and sometimes identify a single reading, while contextual evidence still matters when several plausible readings survive. These comparisons change both the sources of evidence and the policies that use them, so they leave the size of an isolated analyzer effect unresolved.

Local evidence and tag sequence evidence

BMA and MA+ME share the analyzer resource. Their policies differ in the way they use it. BMA favors the observed tag of a known spelling and uses a frequency decision for ambiguous unseen forms. MA+ME can use the ambiguity class, current spelling, word shape, endings, and nearby words in the same score. On the whole corpus it also reports higher accuracy. The comparison supports contextual scoring as part of the design. It changes several things together, including how the analyzer’s output enters the decision.

WMA+T3 and MA+ME offer a comparison between a decoder that scores a tag path and a selector that uses local word features. Moving to WMA+T3 changes the handling of observed word forms, removes neighboring word features from the maximum entropy component, restricts doubly unknown forms to the best 3 local candidates, and adds the trigram and Viterbi search. The table gives the resulting architectures the same accuracy in every test. At its reported precision, it provides no accuracy gain to assign to the move from local selection to WMA+T3.

The discussion says that systems using tag-sequence information perform better than the local MA+ME system. The numerical results show that ordering for 2Pass. They show a tie for WMA+T3. The paper does not supply additional scores to reconcile its general statement with those matching entries. A reader can use the tabulated results to establish the observed ranking, and the architecture descriptions to understand what each comparison changes.

The clearest positive comparison involving sequence evidence is between the full 2Pass system and standalone TnT. The latter supplies the former’s preliminary tags, and the added stage improves the reported accuracy in every test. Relative to MA+ME, 2Pass also has higher reported accuracy throughout. The evidence favors using the first-pass tag features as part of the second-pass design. The contribution of the preceding, following, and current tags remains pooled because the paper reports them as a bundle.

Frequency and candidate sets

The entropy analysis is a controlled comparison of two ways to treat the candidate readings of a form. With observed probabilities, often dominant readings contribute relatively little to the ambiguity estimate. With equal probabilities, every extra reading contributes as if corpus usage offered no help in preferring one. The reported entropy values demonstrate that weighting the alternatives changes the description of the tagging problem substantially.

The same distinction helps explain why the paper evaluates a frequency baseline before the more elaborate architectures. For a known spelling with one dominant reading, a great deal of the available evidence may already be captured by that spelling’s training counts. For an unseen spelling with a useful analyzer reading, lexical coverage is more valuable than exact-form frequency. For an ambiguity that persists after both sources of evidence have been used, contextual features or a tag sequence can influence the final choice. The analysis motivates this division of labor without assigning a separate share of the final accuracy to each case.

The authors also say that representing the entire ambiguity class as a single feature gave the best results among the ways they tried to convert analyzer output into features. The paper specifies the representation used in the evaluated system. It gives no comparative scores for the alternatives. This supports a description of the selected feature, while the size and consistency of the gain from that representation remain unknown.

Where the hardest unknown forms occur

The paper identifies the intersection of unseen and OOV tokens as a particularly error-prone group. Consider what each component has available at such a position. A count-based lexical estimate is unavailable, and hunmorph supplies no candidate set. MA+ME can still draw on general spelling and context features. WMA+T3 can carry a limited set of locally supported options into sequence search. 2Pass can use the TnT guesses for the current position and its neighbors. The systems thus differ in their practical fallback behavior even when they report similar overall performance.

The reported coverage rates and overall scores tell how frequently some conditions arise and how accurate each tagger is across all conditions combined. To establish how much one fallback helps on this particular group would require results tabulated for the intersection itself. The study’s strongest evidence about these tokens is architectural: the systems have an explicit route to a prediction when the two lexical sources provide none. The amount of accuracy attributable to that route remains open.

Limitations

Limits stated by the authors

The authors recognize that an analyzer’s lexicon will leave some forms uncovered. They explain that it can be extended for a fixed input collection and that this can be feasible for specialized text. Their design includes statistical fallbacks because routinely extending the lexicon by hand would be a poor fit for the large and varied corpora they want to process. The paper consequently treats analyzer coverage as useful evidence with a known boundary.

They also state that keeping a detailed tag inventory makes training computationally expensive. The distinction between training and use matters to the paper’s practical objective. A tagger suitable for processing a large collection can still require costly preparation. The study reports the accuracy achieved with the large inventory, while its discussion gives a qualitative account of training cost.

Licensing is another limit the authors identify. Hunmorph is open source, and the paper describes critical parts of the overall system as open. The authors nonetheless point to restrictions associated with TnT and SRILM. They present a fully permissive replacement as future work and say that a system then in alpha gives comparable results. The reported experiments concern the architectures and components described in the evaluation. The alpha system is mentioned as a direction of development.

Limits of the evaluation

The Szeged experiments establish performance on held-out parts of an annotated Hungarian corpus, including the specialized tests described in the paper. They leave transfer to newly collected web text unresolved. Web-scale processing motivates the use of an analyzer and the fallback for unknown forms. The evaluation supplies accuracy on Szeged, with no separate web accuracy or throughput measurement. Its support for the practical application comes from the coverage strategy and the corpus results.

The same distinction applies to language transfer. The paper draws on earlier work involving different languages and relates the Hungarian problem to productive morphology more generally. Its own tagger comparisons use Hungarian data. The portability of the exact features, candidate restrictions, and two-pass setup would depend on resources and tag conventions in another language, and the study leaves their performance there open.

The table records a single accuracy for each system in each setting. It does not give fold-level variability, a paired account of errors, or the outcome of a statistical significance test. The observed ordering is consistent across the reported settings for 2Pass. How much uncertainty surrounds individual score differences, and how often two systems disagree on the same token, are separate questions that the reported accuracy entries cannot answer.

Limits of the explanation for the gains

A hard analyzer constraint assumes that the appropriate reading is included whenever the analyzer returns candidates. In MA+ME and in the second pass of 2Pass, the selector can choose only among permitted readings for a recognized word. A token can therefore count as covered while its reference tag is absent from the available set. The paper reports the rate of forms without an analysis, leaving the frequency of this kind of candidate omission unknown. The WMA cutoff introduces a related issue for some unknown forms by removing lower-ranked tags before sequence search.

The two-pass comparison also combines several forms of contextual evidence. TnT supplies labels for the current and neighboring tokens, while the second pass uses other observations from spelling and morphology. The reported experiment leaves open whether most of the gain comes from correcting particular first-pass errors, reinforcing reliable first-pass labels, or providing informative neighbor labels. Making that attribution would require a comparison in which those sources were varied while the rest of the decision procedure stayed fixed.

Finally, the paper provides the main architecture and feature definitions while leaving implementation details relevant to exact replication unstated. In WMA+T3, the relation between the reported local probabilities and the word-given-tag factor is given at the level of the decoding design. For 2Pass, the construction of training-time tags used as features is less explicit than the description of the test-time TnT pass. Those gaps matter when reproducing the exact scores or trying to isolate small differences between architectures.

What came after

Later uptake of this particular paper is undocumented here. The paper does describe the authors’ intended continuation. They wanted a complete system with permissive licensing, and reported that an alpha version had reached accuracy comparable to the systems they evaluated. They gave no separate evaluation for that version, leaving its relation to the detailed Szeged results unspecified.

The paper also places the tagger within the authors’ broader effort to analyze large Hungarian text collections, including work on web-based frequency dictionaries. That connection explains the importance they attached to assigning a tag when both the annotated vocabulary and the morphological analyzer lack direct evidence. The experiment establishes the accuracy of the combined systems on Szeged. Their account of future work centers on making that approach practical to distribute and use at larger scale.

Cite

Cite as Péter Halácsy, András Kornai, Csaba Oravecz, Viktor Trón and Dániel Varga. 2006. Using a morphological analyzer in high precision POS tagging of Hungarian. Proceedings of the Fifth International Conference on Language Resources and Evaluation (LREC'06).

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

@inproceedings{halacsy2006using,
  title = {{Using a morphological analyzer in high precision POS tagging of Hungarian}},
  author = {Péter Halácsy, András Kornai, Csaba Oravecz, Viktor Trón and Dániel Varga},
  booktitle = {Proceedings of the Fifth International Conference on Language Resources and Evaluation (LREC'06)},
  year = {2006},
  url = {https://aclanthology.org/L06-1293/}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/halacsy-2006-morphological-analyzer-high-precision-pos/