Elamur Research

Lemmatization and Morphosyntactic Tagging of Croatian and Serbian

Paper · 2013 · Željko Agić, Nikola Ljubešić and Danijela Merkler

Summary

A word in a sentence can give a reader several kinds of information at once. Its ending may indicate case or number, its neighbors may reveal whether it is a noun or an adjective, and its dictionary form may look quite different from the form on the page. The paper studies how to recover this information automatically for Croatian and Serbian. It evaluates lemmatization, which assigns a dictionary form, or lemma, to each token, and part-of-speech tagging, which assigns a category such as noun or verb. It also evaluates full morphosyntactic tagging, which adds grammatical features such as case, gender, or tense.

The authors create SETIMES.HR, a Croatian news corpus with manually assigned lemmas and grammatical tags. They train existing tools on that corpus and test them on separate Croatian and Serbian samples from SETimes news and Wikipedia. The comparison takes account of how long the tools take to train and run as well as how many tokens they get right. The authors select the CST lemmatizer, which learns rules for recovering dictionary forms, and the HunPos tagger, which uses patterns in sequences of grammatical labels. They also compare the existing MULTEXT-East annotation scheme with a revision and several reductions of that revision.

The highest Croatian lemmatization accuracy is 97.87% on SETimes, while Serbian reaches 96.30% on Wikipedia. For full morphosyntactic tagging, the peaks are 87.72% on Croatian SETimes and 85.56% on Serbian SETimes, both under the reduced MTE v5r3 scheme. For basic parts of speech, Croatian reaches 97.13% on SETimes and Serbian reaches 96.46% on Wikipedia. These peaks come from different combinations of test material and tagset. The detailed analysis shows where coarse scores can hide errors: adjectives are typically recognized as adjectives, yet their complete grammatical descriptions are much harder to recover.

Direct application of the Croatian-trained tools to Serbian was accurate enough on these samples for the authors to leave more elaborate annotation transfer untested. HunPos generally did better on SETimes than on Wikipedia within each language, and its scores on the Serbian Wikipedia sample were higher than those on the Croatian one. Adding a Croatian inflectional lexicon helped some tools and hurt others. The paper makes the annotated corpus, the test sets, and the selected trained tools publicly available so that the comparisons can inform subsequent work on both languages.

Deep dive: Lemmatization and Morphosyntactic Tagging of Croatian and Serbian

How tools trained on Croatian text lemmatize and tag Croatian and Serbian, and how the choice of grammatical labels affects accuracy. · about 33 minutes to read

The problem and its context

What a grammatical label has to tell us

The surface form of a word is the form that actually appears in a sentence. A lemmatizer maps that word form to a conventional headword. A tagger supplies information about the word’s grammatical use in that particular sentence. These outputs answer different questions. A headword lets a reader or a downstream system group related forms. A tag says what kind of word is present and, at a finer level, which grammatical properties the sentence calls for. A system can recover the headword while assigning an incorrect case, or recognize the part of speech while returning a stem that the annotation scheme would reject as a lemma.

Croatian and Serbian make the distinction important because their morphology expresses substantial grammatical information through inflection. A noun can appear in several cases, and an adjective can carry distinctions of gender, number, and case. The same ending can occur in different declensions and signal different categories there. The tagger has to interpret the ending with the rest of the word and its surroundings. The paper also identifies free sentence word order as part of the difficulty. A sentence still provides contextual clues, but a grammatical category cannot always be inferred from a fixed position.

The authors use morphosyntactic description, abbreviated MSD, for the more detailed label. Its part-of-speech category determines which other distinctions can apply. Case makes sense in a description of an inflected noun, while tense and person are relevant to verbs. For evaluation, the broad category and the complete description can be scored separately. That separation matters wherever a tool is intended to supply both. A correct noun label contributes to the broad score even when a wrong case makes the complete tag incorrect.

The paper treats lemmas and MSDs as inputs to later stages of natural language processing. A parser, for example, can use the grammatical properties encoded in the MSD. The authors point to prior Croatian work on dependency parsing as evidence that the full inventory of features can matter. A project that only needs broad categories can read the annotation problem differently from one that relies on case or agreement. The former can tolerate some errors that would alter the input to the latter.

What was already available for Croatian

The authors describe statistical tagging as the prevailing approach to recovering these labels from text. A tool learns from sentences whose words have been annotated by people. Applied to new sentences, it uses regularities from that training material to propose labels. The paper cites TnT as an early point of comparison in its discussion of English tagging. It presents English as a task on which broad part-of-speech accuracy had advanced relatively little by the time of the later work it cites. Croatian and Serbian posed a different problem because the target labels carried more information and their words exhibited richer inflection.

For Croatian, an established statistical line of work used CroTag, a trigram tagger trained on the Croatia Weekly portion of the Croatian National Corpus. The training material came from newspapers, and annotation used MULTEXT-East, abbreviated MTE, as its grammatical specification. The Croatian Lemmatization Server assisted the people who prepared that corpus. Earlier work also paired CroTag with the Croatian Morphological Lexicon to recover lemmas. The authors distinguish the availability of these components: the annotated Croatia Weekly material had become available, while the CroTag tagger and the combined lemmatizer were unavailable to the public.

The paper describes another Croatian effort based on constraint grammar. In this approach, grammatical constraints help select an interpretation for a word in context. The effort had reached the prototype stage. According to the paper, the prototype could process forms it knew but lacked an analysis for forms outside its vocabulary. This matters when preparing material for general use. A tool can do well on expressions covered by its resources while leaving a different problem for a collection that contains unfamiliar names and inflections.

These lines of work had already established that detailed Croatian annotation was practicable. They left room for a study that brought training data, software, and evaluations together in a form users could obtain and retrain. The authors describe their objective in those terms. They wanted resources suitable for research and commercial use, and a comparison that accounted for the time needed to train the tools and annotate new text. Speed mattered because these operations would frequently precede other processing on a large collection.

What was already available for Serbian

The Serbian work closest to the new study used BTagger. It treats lemmatization as a tagging problem and can learn to supply lemmas and grammatical descriptions. The Serbian tools described by the authors were trained on the Serbian MULTEXT-East corpus based on 1984 and could be downloaded under a permissive license. That earlier evaluation concerned fiction drawn from the same domain as the training material. The paper cautions against treating those results and Croatian newspaper results as a direct comparison of the two languages.

Serbian also had resources from rule-based work using NooJ, as well as a manually annotated Serbian version of texts by Jules Verne. The authors characterize the latter as fictional material with a restricted vocabulary. Another resource, SrpLemKor, consisted of newspaper text to which TreeTagger had automatically assigned lemmas and a small set of part-of-speech labels. A morphological dictionary supplied many Serbian lemmas and was available through NooJ. These resources met different needs. Some offered manually checked analyses of a narrow collection, some offered much more text with coarser automatic annotation, and some offered lexical entries without sentence context. The paper also notes license restrictions on commercial use and, in some cases, redistribution.

A transformation-based Serbian tagger is mentioned in the related work, along with comparisons of annotation tools for Bulgarian, Czech, and Slovene. Earlier Croatian work had considered combining taggers through voting. The new study takes an approach suited to the specific resource situation the authors faced. It prepares a common Croatian training corpus and tests existing tools against a uniform set of annotation conventions. With training material held constant, the comparison can ask how well those tools work in a closely related language and how much the answer changes when the source of the test text changes.

Why a parallel corpus changes the question

The authors could draw Croatian training text from SETimes because that collection contains corresponding news material in Serbian. A parallel corpus brings together versions of the same material in different languages. Here it made a further approach possible. If a tool trained on Croatian struggled to annotate Serbian directly, the authors could try to carry human annotations over from Croatian sentences to corresponding Serbian sentences. The paper calls that procedure annotation projection.

Direct use and projection call on different evidence. With direct use, each Serbian test sentence is processed by a Croatian-trained tool as it appears. With projection, Croatian and Serbian versions are compared so that labels already assigned to the Croatian material can help create a Serbian training resource. Merely having parallel text leaves the projection problem open. Comparable sentences can contain different spellings, endings, or spans where the wording changes. The authors therefore set up the direct test first, with projection available as a response if the observed loss warranted it.

A result on news alone would also leave open whether the tools were benefiting from familiar subject matter and style. The paper addresses that question by including a Wikipedia sample in each language. Both a switch of language and a switch of text source can change the vocabulary and the grammatical patterns a tool encounters. Testing both lets the authors examine these sources of variation within the same study.

The method, step by step

Preparing the Croatian training text

The work starts with linguistic annotation of Croatian SETimes material. The authors build SETIMES.HR from the Croatian part of the parallel news collection, which covers 10 languages. Experts assign lemmas and MSDs with the assistance of the Croatian Lemmatization Server. These are context-sensitive decisions. When a spelling has several possible analyses, the annotation records the interpretation chosen for its occurrence in the sentence.

The server supported annotation, but its output needed to be normalized. It used a modification of MTE that the paper describes as undocumented. The authors revise the labels to match the MTE v4 specification. This gives the corpus a defined starting point for comparing annotation schemes. It also gives each tool a consistent target when it learns from the corpus and when it is later scored against the test annotations.

The authors standardize the lemmas as well. The server can attach a number to distinguish headwords that share a spelling. In the paper’s example, biti can mean “to be” or “to beat,” and the server’s numbering can keep those entries apart. That distinction serves a purpose in constructing a morphological lexicon. For this experiment the target is the written lemma, so the authors remove the numbering. A tool is evaluated on recovering the chosen headword form without needing to supply a separate lexical identifier.

Defining the grammatical targets

MTE v4 is the starting inventory. The authors then prepare an initial Croatian and Serbian MTE v5 specification. This involves moving some forms to different grammatical groups. Participial adjectives and adverbs are assigned to the adjective and adverb groups, respectively, after having been treated under verbs. Acronyms are moved out of the abbreviation group and into nouns. The revised tags are also shorter. The authors remove positions retained for features in other MTE languages where those positions are unnecessary for the descriptions under study.

The revised scheme still describes words in detail. The authors ask whether some distinctions are especially hard to make from the contexts a tagger sees. Adjectival definiteness is their clearest example. The distinction can be represented in a lexicon by listing forms, but different analyses can share the same spelling. This creates a problem for contextual tagging. Knowing that an adjective form is possible under a particular analysis gives the tool a candidate. It still needs evidence to choose that candidate over another analysis with the same form.

The distinction between common and proper nouns raises a related design question. The authors describe it as difficult to resolve reliably in context. They also give a reason to retain it: certain foreign proper names have characteristic inflectional patterns, so a tool that uses suffixes to handle unfamiliar words could benefit from a separate proper-noun category. The experiment can therefore test the effect of merging the labels without assuming that the distinction lacks value for every application.

The reductions change the targets in a controlled way. MTE v5r1 removes adjective definiteness. MTE v5r2 merges common and proper nouns. MTE v5r3 makes both changes. The full descriptions remain considerably more detailed than parts of speech. For instance, removing adjective definiteness still leaves the tagger with other adjective features to recover. Comparing these schemes tests how frequently the tool can assign the complete label under different definitions of completeness.

Constructing the held-out comparisons

The training resource is Croatian in every experimental batch. For the in-domain evaluation, the authors sample 100 Croatian–Serbian sentence pairs from the portion of SETimes outside SETIMES.HR. This supplies matched news material with the actual training sentences held out. A Croatian result tests a familiar language and text source. Its Serbian counterpart changes the language while retaining parallel news material.

The Wikipedia comparison uses a different selection procedure. The authors manually identify 20 matching articles and extract 100 approximate sentence pairs. They choose manually because some articles in the two Wikipedias are so similar that blind sampling might produce effectively duplicated text. The paper attributes such cases to the similarity of the languages and to copying between their Wikipedia editions. The authors want the paired material to preserve meaningful language differences while remaining reasonably comparable in content.

The Croatian news, Serbian news, Croatian Wikipedia, and Serbian Wikipedia samples all receive manual annotation through the same general procedure as the training corpus. The resulting test annotations serve as the gold standard, meaning the reference against which automatic output is scored. The comparable procedures matter because a discrepancy in conventions could otherwise appear as a tool error. Normalizing the corpus and the test sets makes the intended output explicit across both sources and languages.

The authors make a separate check on lexical separation using the Croatian Lemmatization Server as a Croatian lexical resource. They count forms for which it lacks an entry. This is distinct from the experiments that give tools access to the Apertium lexicon. The server has a role in preparing and characterizing the data. Apertium provides an optional source of forms and analyses during automatic processing. A coverage figure from the former therefore does not predict the effect of the latter.

Training and selecting the tools

The authors compare existing software selected for availability and for the range of approaches it represents. CST is a data-driven rule-based lemmatizer. It learns from annotated examples of the relation between the form in the text and the corresponding headword. At test time, learned rules give it a way to propose a lemma for a form it has not already encountered. This capability is important in interpreting the comparison with TreeTagger, whose lemmatization in the experiment depends on looking up the form in a dictionary.

HunPos is a trigram tagger based on a hidden Markov approach. “Hidden” refers to the grammatical tags the tool must infer from the observed words. A trigram uses sequences of labels in groups of three, so a proposed tag is assessed in relation to preceding labels as well as to the observed word. The relevant point for this study is that HunPos can learn regularities from annotated sentences and use them to resolve cases in which the word by itself permits several tags. The paper also tests PurePos, a trigram tagger that can additionally supply lemmas.

The comparison includes TreeTagger, which uses a decision-tree approach to tagging, and SVMTool, which uses support vector machines. BTagger brings in a bidirectional tagging approach with a lemmatization procedure framed as the assignment of categories. The tools differ in the outputs they provide. When a tool in the experiment only supplies tags or only supplies lemmas, it can enter the comparison for that task alone. The selection can thus favor different software for the two outputs.

Where supported, the authors also test an external lexicon. This is a Croatian inflectional lexicon from Apertium represented in MTE v5r1. Such a lexicon lists word forms with their possible analyses. It can contribute candidate lemmas or tags independently of what was seen in the annotated corpus. The tested tools can use that information in different ways. A dictionary match can give TreeTagger a lemma it could not otherwise supply, while the addition of tag candidates to a contextual tagger can change which complete description it prefers.

The initial comparison uses Croatian SETimes material and the v5r1 annotation. It measures correctness and records elapsed time for training and testing. The authors select CST and HunPos for the subsequent experiments. They then use those tools to compare performance on Croatian and Serbian news and Wikipedia, to examine the contribution of the external lexicon, and to compare annotation schemes.

From Croatian corpus annotation to evaluation on both languages

The steps in order.

From Croatian corpus annotation to evaluation on both languagesStep 1: Annotate Croatian SETimes words with lemmas and tags1. Annotate Croatian SETimes words with lemmas and tagsStep 2: Normalize the annotations to MTE v42. Normalize the annotations to MTE v4Step 3: Prepare revised and reduced tag inventories3. Prepare revised and reduced tag inventoriesStep 4: Annotate held-out news and Wikipedia samples4. Annotate held-out news and Wikipedia samplesStep 5: Train candidate tools on Croatian news5. Train candidate tools on Croatian newsStep 6: Compare direct performance on Croatian and Serbian6. Compare direct performance on Croatian and SerbianStep 7: Examine errors under the selected tagset7. Examine errors under the selected tagset

Deciding whether to project annotations

The paper sketches how projection could proceed if direct application gave much worse Serbian results. One approach would identify parallel sentences with a long common subsequence, which is a sequence of shared material in the same order even when intervening material differs. A second approach would use statistical machine translation to obtain Serbian sentences with smaller differences from the Croatian sentences they accompany. Both proposals aim to find paired material where an annotation can be transferred with a plausible correspondence.

For a difference confined to a single token, a projection rule could reuse the Croatian grammatical category for the corresponding Serbian word. For longer variations, the authors would fall back on the existing tagger. A lemma transformation for a single-token variation could be reapplied when the endings were identical, while other cases would be left to the existing lemmatizer. These are contingency plans. The direct evaluation determines whether the authors pursue them in this study.

The choice is important for interpreting the training procedure. The Serbian test sets have manually assigned reference labels, but those labels are used to score the outputs. They do not become extra training examples for the systems under comparison. The reported transfer results therefore come from Croatian training without a completed projection stage.

Scoring outputs at different levels

For overall accuracy, the unit of evaluation is the token. A lemma is correct when it matches the reference lemma. For basic tagging, the main grammatical category is enough. For full MSD tagging, the entire description must agree with the reference. A correct category with a wrong feature can consequently receive credit in the broad evaluation and count as an error in the full one. Changing the tagset can affect the latter score even when several of the underlying predictions are unchanged.

The authors also report precision, recall, and F1 for selected grammatical categories. Precision asks how often the tool’s assignments to a category are right. Recall asks how often the relevant reference instances receive the right assignment. F1 balances the two. The paper presents these measures at both levels of detail. For the full descriptions, the figures reflect whether the tool can recover the fine-grained distinctions for words in a category, as well as whether it recognizes the category itself.

Confusion analysis then gives some of the aggregate scores a linguistic interpretation. A confusion matrix records which labels are mistaken for which other labels. The authors also inspect particular forms and their interpretations. For comparisons between tagsets, they use approximate randomization, assessing the observed difference against differences that could arise from exchanging paired predictions under random reassignment. The paper reports the resulting p-values for full MSD tagging with the test sets pooled. The comparison procedures and the learned tool families are given in prose, without an algorithmic equation for either CST or HunPos.

Experiments and results

How large the samples are

SETIMES.HR contains 4,016 sentences and 89,785 tokens. Its 18,089 types count distinct written forms, while its 8,930 lemmas count distinct headwords represented in the annotated text. Tokens count occurrences. A frequent inflected form can therefore contribute many tokens while adding one type, and several different types can share a lemma. The corpus counts describe how much annotated material the tools have to learn from as well as how much variety appears in it.

The Croatian SETimes test set contains 2,297 tokens, with 1,270 types and 991 lemmas. Its Serbian counterpart has 2,320 tokens, with 1,251 types and 981 lemmas. The Wikipedia samples are shorter in tokens even though the sentence counts are the same. The Croatian sample contains 1,887 tokens, 1,027 types, and 802 lemmas. The Serbian sample has 1,953 tokens, 1,055 types, and 795 lemmas. Each reported accuracy belongs to its particular sample, so equal sentence counts should be understood alongside these different numbers of evaluated tokens.

The Croatian resource used for the lexical check misses 5.2% of word forms in Croatian SETimes and 3.9% in Croatian Wikipedia. The corresponding Serbian figures are 11.40% for SETimes and 8.86% for Wikipedia. In both sources, the Croatian lexicon has less coverage of the Serbian forms. The parallel samples thus preserve a measurable vocabulary difference. The check says how often surface forms appear in that lexicon. It leaves room for a lemmatizer to recover an unfamiliar form by applying a learned rule, and for a tagger to recognize a category from context.

The tool comparison on Croatian news

The common benchmark for the initial tool comparison is the Croatian SETimes test set under MTE v5r1. CST reaches 97.78% lemmatization accuracy without the Apertium lexicon. BTagger reaches 96.22%, and TreeTagger reaches 90.51% with its default dictionary lookup. When TreeTagger receives the extra lexicon, its lemma accuracy rises to 94.12%. CST with the extra lexicon scores 97.04%, below its result using the learned rules alone.

For complete grammatical tags, HunPos without the lexicon has the highest score in this batch. TreeTagger with the lexicon comes close. BTagger and PurePos obtain the same recorded accuracy, while SVMTool is lower. This is a comparison of shared evaluation conditions. The previously published Croatian and Serbian systems supply context for the study, but their scores were obtained with different training or test material.

Full MSD accuracy on Croatian SETimes under MTE v5r1

HunPos leads the initial accuracy comparison, with lexicon-assisted TreeTagger close behind.

Full MSD accuracy on Croatian SETimes under MTE v5r1TreeTagger: 85.07TreeTagger85.07SVMTool: 84.99SVMTool84.99BTagger: 86.63BTagger86.63PurePos: 86.63PurePos86.63TreeTagger with lexicon: 87.01TreeTagger with lexicon87.01HunPos (this paper): 87.11HunPos (this paper)87.11
The numbers
System or settingaccuracy %
TreeTagger85.07
SVMTool84.99
BTagger86.63
PurePos86.63
TreeTagger with lexicon87.01
HunPos (this paper)87.11

Timing helps explain why the authors carry CST and HunPos forward. On the preliminary task, CST takes 1.80 seconds to train and 0.03 seconds to test. HunPos takes 1.10 seconds to train and 0.11 seconds to test. The corresponding BTagger times are 24 864.47 seconds for training and 87.01 seconds for testing. Its accuracy makes it a plausible comparator, especially given its prior use for Serbian. On the measured run, its elapsed times make it a substantially different choice for a preprocessing stage.

TreeTagger illustrates the relevance of both output quality and how an output is produced. Its lexicon-assisted tag accuracy comes close to HunPos on this test, but the lemmatizer relies on matching a known form to a dictionary entry. Additional lexical coverage helps it produce an answer on more forms. CST retains a way to act on unfamiliar forms through learned rules, and its unassisted lemma accuracy is stronger on the preliminary test. The selected pairing is thus the result of task-specific comparisons, with CST evaluated as a lemmatizer and HunPos as a tagger.

Direct transfer under the same tagset

The direct-transfer batch uses v5r1 to compare the tools across sources and languages. Without Apertium, HunPos reaches 87.11% full MSD accuracy on Croatian SETimes and 85.00% on Serbian SETimes. On Wikipedia, it reaches 80.83% in Croatian and 82.74% in Serbian. Within each language, full tagging is stronger on SETimes. Within Wikipedia, the Serbian sample scores higher despite being in the language absent from training. These comparisons are the main evidence for the authors’ view that the text source can matter more than switching between Croatian and Serbian in this setup.

The basic part-of-speech results show a similar ordering. Without Apertium, Croatian SETimes reaches 97.04% and Serbian SETimes reaches 95.47%. For Wikipedia, Croatian reaches 94.25% and Serbian reaches 96.46%. This time the Serbian Wikipedia score also exceeds the Serbian SETimes score. The source effect therefore needs to be stated for the metric in question. Recognition of the broad category can vary differently across samples from recovery of the complete bundle of features.

CST’s results under v5r1 are closer together. Without the lexicon, it reaches 97.78% on Croatian SETimes and 95.95% on Serbian SETimes. On Wikipedia it reaches 96.59% on Croatian and 96.30% on Serbian. The result is particularly relevant alongside the lexical coverage check. The Serbian samples include more forms absent from the Croatian server’s lexicon, yet the learned rules still recover the reference lemma on a large share of their tokens. Dictionary coverage and successful direct lemmatization measure different properties.

The authors decide that the measured Serbian scores do not justify the planned projection stage at this corpus size. That decision uses evidence from both tasks. CST performs strongly on the Serbian samples, and HunPos does not show a uniform penalty on Serbian across the paired sources. The decision is about where to spend development effort in this experiment. Its evidence comes from the observed direct scores.

Performance with revised labels

The tagset comparison keeps the selected tool for each task and varies the MTE annotation scheme. For full MSD tagging, the most reduced scheme, MTE v5r3, has the highest reported accuracy on each of the test sets. On Croatian SETimes, v4 reaches 86.24%, while v5 reaches 86.77%. The individual reductions both reach 87.11%. The joint reduction reaches 87.72%.

HunPos full MSD accuracy across tagsets on Croatian SETimes

The highest score comes from dropping adjective definiteness and the common versus proper noun distinction together.

HunPos full MSD accuracy across tagsets on Croatian SETimesMTE v4: 86.24MTE v486.24MTE v5: 86.77MTE v586.77MTE v5r1: 87.11MTE v5r187.11MTE v5r2: 87.11MTE v5r287.11MTE v5r3 (this paper): 87.72MTE v5r3 (this paper)87.72
The numbers
System or settingaccuracy %
MTE v486.24
MTE v586.77
MTE v5r187.11
MTE v5r287.11
MTE v5r3 (this paper)87.72

On Serbian SETimes, full tagging accuracy rises from 83.45% under v4 to 85.56% under v5r3. On Croatian Wikipedia, the corresponding scores are 80.45% and 81.52%. On Serbian Wikipedia, they are 81.98% and 82.79%. The ranking of the two single reductions depends on the sample. On Croatian Wikipedia, v5r2 reaches 81.20% and v5r1 reaches 80.83%. On Serbian Wikipedia, v5r1 reaches 82.74% and v5r2 reaches 82.38%. Removing both distinctions is the most consistently favorable setting for full-tag accuracy on these tests.

Basic POS accuracy has a different pattern. The highest Croatian score, 97.13%, comes from v5r3 on SETimes. The highest Serbian score, 96.46%, comes from v5r1 on Wikipedia. Serbian SETimes reaches 95.60% under v5r2, while Croatian Wikipedia reaches 94.30% under unreduced v5. The best scheme for detailed exact matches can therefore coexist with a different best choice for basic categories on a particular split.

CST’s accuracy also depends little on which label inventory the experiment uses. The peak on Croatian SETimes is 97.87% under v5r2. Croatian Wikipedia reaches 96.81% under v5. On Serbian SETimes, v5r2 and v5r3 both reach 95.99%. The Serbian Wikipedia peak is 96.30%, recorded for both v5 and v5r1. The headline lemmatization and tagging figures describe the strongest observed results for their tasks, and the splits and settings explain how those results fit together.

Which parts of speech remain difficult

For the detailed breakdown, the authors combine SETimes and Wikipedia within each language and use v5r3. Adverbs have the lowest basic POS F1 among the categories shown. The score is 83.63% in Croatian and 77.92% in Serbian. Adjectives are the next hardest by that measure, at 92.19% for Croatian and 94.16% for Serbian. The confusion analysis links these categories because the tagger sometimes assigns an adverb label to an adjective or makes the reverse mistake.

The full-tag results change the picture for adjectives. Their F1 is 65.28% in Croatian and 66.66% in Serbian on the pooled samples. Nouns reach 77.04% and 75.84%, respectively, while pronouns reach 82.52% and 82.12%. Verb F1 remains higher under full tagging, at 94.87% for Croatian and 93.60% for Serbian. These are category-specific F1 figures, distinct from the token accuracy over all categories reported in the main comparisons.

Precision and recall can also show different aspects of an error pattern. For Serbian adverbs, the basic precision is 82.57% and recall is 73.77%. That gap indicates that a notable part of the difficulty is finding reference adverbs in the sample. For Croatian nouns at the basic level, precision is 95.70% and recall is 96.34%. At the full level, the corresponding values are 76.78% and 77.30%. The noun results illustrate how frequently recognizing a general category can coexist with difficulty assigning its complete description.

What the ablations show

An extra lexicon affects the tools differently

The comparison with and without Apertium is a controlled change to the input of tools that support a lexicon. TreeTagger shows a benefit on Croatian SETimes for both of its evaluated outputs. For its dictionary-based lemmatization, the result is understandable in terms of coverage. A form absent from the initial dictionary may be present in the additional one. The paper observes a different outcome for CST because learned rules already supply an analysis for many forms that a lookup procedure would miss.

Most CST comparisons give it a small advantage without the lexicon. One cell moves in the other direction. For Serbian Wikipedia under v5r1, CST reaches 96.30% without Apertium and 96.61% with it. On Croatian Wikipedia the figures are 96.59% and 96.38%, respectively. The effect on lemmatization is modest and depends on the sample. The authors relate this pattern to the size of the lexicon and to the quality already achieved by CST. They suggest that a larger, compliant lexicon might behave differently.

For HunPos, the effect is clearer on full tags. On Serbian SETimes, accuracy under v5r1 falls from 85.00% to 81.59% when Apertium is supplied. Each of the other tested source and language combinations also has a lower full-tag score with the lexicon. The coarser POS score is less sensitive. Croatian Wikipedia, for instance, has a basic POS score of 94.25% without Apertium and 94.62% with it, even though full MSD accuracy falls from 80.83% to 78.49%.

HunPos full MSD accuracy with and without Apertium on Serbian SETimes

The Croatian inflectional lexicon lowers full-tag accuracy in this setting.

HunPos full MSD accuracy with and without Apertium on Serbian SETimesHunPos with Apertium: 81.59HunPos with Apertium81.59HunPos without Apertium (this paper): 85.00HunPos without Apertium (this paper)85.00
The numbers
System or settingaccuracy %
HunPos with Apertium81.59
HunPos without Apertium (this paper)85.00

To investigate the decline, the authors examine the tags the assisted system produces. They find an unusually high representation of labels that appear in the lexicon but are uncommon in the training corpus, including vocative forms. A lexicon supplies grammatical possibilities, including rare ones. A contextual tagger has to decide when a sentence warrants one of those possibilities. The error pattern leads the authors to suspect the way the extra information is integrated.

The comparison supports a conclusion about that tool and resource pairing. Apertium can help TreeTagger and harm HunPos under the same general experimental conditions. Greater lexical coverage therefore comes with a separate question about how alternatives are chosen. The authors continue the detailed HunPos analysis without the optional lexicon.

The label reductions contribute in combination

The tagset comparison changes the annotations the tools see during training and the reference descriptions they must reproduce. The revised, unreduced inventory is comparable in size to v4. The Croatian training corpus contains 660 observed v4 tags and 663 observed v5 tags. The reductions bring those counts to 618 for v5r1, 634 for v5r2, and 589 for v5r3. These are counts of tags occurring in SETIMES.HR. The revision itself primarily reallocates distinctions and shortens their written labels, while the reductions merge categories previously kept apart.

The paper pools the test sets for its approximate randomization comparisons of full tags. For the unreduced v5 and v4 inventories, it reports the following result.

p = 0.268

Here, p is the p-value for the comparison of full MSD tagging under v5 and v4 on the merged test sets. The equality sign gives its reported value. The authors treat this comparison as lacking a statistically significant improvement. They still favor the shorter v5 descriptions for human use because many of the old placeholder positions can be omitted.

The pooled comparison between the single reductions gives 0.877. Each removes a different distinction, and their relative order changes across individual test samples. The joint reduction has a more consistent result. The reported comparison of v5r3 against v5r1 is <0.05. Against v5r2, v5, and v4, the reported values are <0.01 in each case. In these comparisons, the less-than sign means the reported p-value is below the stated threshold. The authors select v5r3 for the rest of the detailed analysis because its improvement over the alternatives is significant in the pooled full-tag test.

A reduced inventory also gives the word “correct” a narrower scope. When a removed distinction had been the only difference between a prediction and its reference, the reduced descriptions can agree. Retraining on the reduced inventory can also change which surviving tags are preferred. The experiment measures the combined outcome of using the new inventory for training and evaluation. It does not isolate the share of the gain attributable to each mechanism.

This distinction between evaluation targets also helps explain why the findings for basic POS and lemmatization are muted. The principal reductions remove information within the adjective and noun categories. A word can already count as a correct adjective or noun in the broad evaluation in spite of an error on the removed feature. A lemma has its own target form. It can remain correct across several choices of MSD scheme, which is what the CST table generally shows.

The remaining errors point to ambiguity within categories

The selected tagset still has many detailed labels for adjectives and pronouns. Of its 589 tags observed in SETIMES. In HR, adjectives account for 164 of those used, nouns for 42, and pronouns for 268. The paper also reports 50 verb tags. The authors connect the weak full-tag F1 for adjectives, nouns, and pronouns to the number of analyses available within their categories. The distribution suggests how broad POS recognition can be substantially easier than selecting the exact description. It also leaves room for differences in which distinctions tend to occur in the test samples.

The basic POS confusions reveal a separate set of problems. In the pooled Croatian samples, adjective–noun confusions account for 28.9% of the POS confusions the authors report. Noun–verb confusions account for 14.5%, and adjective–adverb confusions account for 11.6%. In the Serbian samples, the authors report noun confusions with adjectives at 21.1%, with verbs at 20%, and with adverbs at 16%. Those percentages refer to the mix of reported confusions. For example, a sizable share of adjective–noun confusions does not mean that the same share of all adjectives or nouns received an incorrect label.

Examples make the category boundaries easier to understand. Hrvatska can stand for Croatia or be interpreted as an adjectival form. Strana can be associated with the adjective meaning “foreign” or the noun meaning “side.” For svet, the readings the authors discuss are “world” and “holy.” These are cases in which a written form admits interpretations in different grammatical groups. A word form’s earlier appearances in training can suggest a likely analysis, while the particular sentence may call for another.

The paper also describes forms whose use differs from their grammatical origin. Tijekom can be associated with a noun meaning “duration” and with a preposition meaning “during.” Instrumental noun forms can be confused with adverbial expressions, as the authors illustrate with godinama. Words such as što, kako, and kada can take on conjunctive functions in context. A tool may learn the more usual treatment of a form and still struggle with a use that crosses familiar category boundaries.

The source of the text can affect which ambiguities turn up. The authors observe noun–verb confusion in the Wikipedia sets and very little of it in the SETimes sets. They give mora as a form that can be read as “must” or “seas.” They also mention nouns with endings that resemble participles or infinitives. These examples give a concrete interpretation of the domain comparison. Different samples can present different ambiguities to the same tool even when the underlying grammatical inventory is held fixed.

At the full-tag level, the authors find that endings recur across declensions with different values. Masculine accusative forms are an important source of error. With an animate referent, the form can coincide with the genitive, as with pobjednika. With an inanimate referent, it can coincide with the nominative, as with metak. An ending can therefore identify a plausible group of analyses while leaving the actual case unresolved. The paper also observes gender and number confusions, particularly with certain adjective forms.

The lemmatization errors concern some of the same ambiguities but appear in the chosen headword. The authors find cases in which the tool supplies a definite adjective form where the reference expects an indefinite one. They also give značajno and značajan as an adverb–adjective pair that can be confused in either direction. Other errors yield a stem or a form in a case other than the canonical one. The Croatian–Serbian transfer produces occasional mismatches in what constitutes that canonical form. Planeta is a Serbian nominative in the example, while in Croatian it can be the genitive of planet. A rule learned from Croatian can apply coherently to that string and still return the wrong headword for Serbian.

Additional training appears useful for both languages

The learning curves compare performance as the amount of annotated training material changes. The paper plots the curves on test sets merged within each language, so they offer a view complementary to the separate news and Wikipedia scores. The curves for Croatian and Serbian look broadly similar. Croatian holds a small advantage in lemmatization, while the distinction between the tasks is more pronounced.

Lemmatization is the easiest task to learn in the curves. Basic POS tagging also reaches high accuracy, and full MSD tagging stays harder. That ordering fits the detailed observations. Assigning an entire grammatical description leaves more opportunities for an error than recovering a broad label, and many of the remaining errors involve forms that permit several analyses. The curves lead the authors to see room for improvement through further annotation of SETIMES.HR.

The learning curves and the language comparison tell different parts of the same story. The observed Serbian performance is close enough to Croatian to motivate direct use for these tests. The scores also leave room to improve both languages, particularly for detailed features. Additional Croatian training data is one route the authors propose. A specifically Serbian adaptation would address a different question, namely whether the differences that remain can be reduced further.

Limitations

Limits the authors identify

The authors tie their decision about projection to these test conditions and the amount of Croatian training text they used. They investigate whether a direct application makes projection worth pursuing for the tasks at hand. The conclusion is correspondingly local. It concerns the Croatian-trained CST and HunPos tools, the annotated samples they evaluated, and the word-level outputs they measured. The authors leave open whether joint parsing would need stronger adaptation and whether such adaptation should begin with the lemmas and MSDs.

They also treat the Wikipedia tests as a partial response to the risk of evaluating exclusively within the training domain. The Wikipedia pairs were selected manually to produce comparable material with meaningful variation between the languages. The authors therefore gain a second source and a way to control obvious cases of duplicated language, while the account of sampling limits the scope of the claim. The evaluation speaks directly to the chosen sample from each Wikipedia.

The discussion of earlier work makes the domain limitation explicit. The authors regard the earlier Serbian BTagger results, obtained on fiction, and Croatian results on newspaper material as unsuitable for a direct comparison. Their own experiment improves comparability through shared training and annotation conventions, paired samples, and common scoring. Published scores from other corpora still retain their original conditions. Claims about achieving or exceeding previous levels need to be read with the differences in domains and tag inventories in mind.

The authors describe v5 as an initial specification and report v4 alongside it because v4 was the officially supported scheme at the time of the experiment. They consider v5 easier for people to use because the descriptions are shorter. Their own significance test leaves the accuracy difference between the unreduced versions unresolved. The strongest evidence for improvement concerns the joint reduction, under which the reference annotations preserve fewer distinctions.

The optional lexicon is limited in scope and size. The authors note that the Croatian Lemmatization Server offers broader coverage than the Apertium resource used as extra input. Its output would first need to be brought into conformance with MTE for that role. They leave open whether a larger resource would improve CST or HunPos, and whether a different way of using dictionary information would avoid the observed concentration of rare tags.

Further limits of the experimental design

The projection alternatives are proposals. Since the authors do not train and evaluate a projected Serbian resource, the paper cannot estimate how much that procedure would help or hurt. Likewise, the experiment lacks a matched run in which a Serbian training corpus of corresponding size and annotation detail is used for the selected tools. Direct transfer works well enough to answer the authors’ practical question. Its distance from a comparable Serbian-trained system remains unmeasured.

Paired samples help with comparison, yet the aggregate language differences depend on which sentences and words are evaluated. The comparable texts are translations or approximately corresponding material, and their token counts show that the sources do not supply identical sequences. Performance can vary with the number of unfamiliar forms, the category distribution, and the occurrence of local ambiguities. The fact that Serbian Wikipedia scores higher than Croatian Wikipedia in the direct tagging comparison therefore supports a result about those samples. A general ranking of the languages by difficulty would require a wider basis.

Pooling provides more material for significance testing and for the class-level analysis. It also changes what a result describes. The p-values for tagset comparisons are calculated across the merged tests. They give evidence about the overall comparison, while differences on each source and language split remain separately observed accuracies. The merged F1 tables similarly characterize each language across both sources. A reader interested in the exact behavior of one category on just the news or just Wikipedia gets examples and aggregate clues, but no equally detailed breakdown for every split.

The lexical coverage check also has a defined interpretation. It uses a Croatian resource, and the number it returns concerns forms missing from that resource. The difference between Croatian and Serbian establishes that the samples differ in a measurable respect. It does not identify which forms caused tagging or lemmatization failures, or whether an observed error originated in the ending, the preceding context, or a mismatch in canonical forms. The authors’ concrete error examples provide some of that explanation, without assigning all errors to a single cause.

Accuracy under the reduced MTE v5r3 scheme is a measure of recovery of its retained distinctions. An application that requires adjective definiteness or the distinction between common and proper nouns would still need those features. The experiment does not score their recovery after removal, and it does not measure how omitting them affects a downstream parser. The retained tags are demonstrably easier for HunPos to reproduce as a whole in these tests. The practical value of the discarded information depends on what later processing expects to receive.

The timing measurements guide selection among the software evaluated on the same preliminary task. They give strong grounds for the authors’ choice between CST, HunPos, and the much slower BTagger runs. They do not establish how the differences scale to all corpus sizes or software configurations. Similarly, the learning curves support further annotation as a direction; they do not establish what accuracy will follow from a particular future increase in the corpus.

Finally, the manual labels give the experiments a consistent reference. The error analysis shows that some difficult cases involve rival grammatical interpretations of the same spelling, and the authors describe basic POS accuracy as approaching the level of human error in their experiment. The paper does not supply a separate agreement study that quantifies how reliably independent annotators would resolve each distinction. The results are best read as measured agreement with the prepared references and as evidence about the patterns in which the automatic assignments depart from them.

What came after

Universal Dependencies for Croatian (that work for Serbian, too) cites this study and takes up a related cross-language question in Universal Dependencies. Its title describes a Croatian resource in that framework with applicability to Serbian. The connection is the question of how far a resource prepared for Croatian can serve closely related Serbian. The earlier paper tests that question for lemmas and grammatical tags. The later work’s stated scope turns to dependency annotation. The citation establishes the connection, while the available account leaves its specific conversion procedure, experimental settings, and scores open.

The original paper records a step toward that direction. SETIMES.HR already served as the basis of a Croatian treebank, a corpus annotated with syntactic structure. The authors describe that treebank as a way to explore joint Croatian and Serbian dependency parsing. Word-level annotation made this next question concrete. The corpus supplied lemmas and grammatical features on which a syntactic resource could build, and the transfer tests showed how well those inputs could be generated on the Serbian samples.

The authors also describe intended uses that extend beyond the test collections. They plan to apply the trained tools to the Croatian and Serbian web corpora hrWaC and srWaC, and they consider enlarging SETIMES.HR or adapting existing resources for use with it. Those plans reflect the two concerns the experiment brings together. Larger text collections make processing time consequential, while richer syntactic annotation raises the cost of getting an individual feature wrong. Extending Croatian resources to Serbian therefore remains a question to test at each level of annotation, with the target labels and the intended use made explicit.

Cite

Cite as Željko Agić, Nikola Ljubešić and Danijela Merkler. 2013. Lemmatization and Morphosyntactic Tagging of Croatian and Serbian. Proceedings of the 4th Biennial International Workshop on Balto-Slavic Natural Language Processing.

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

@inproceedings{agic2013lemmatization,
  title = {{Lemmatization and Morphosyntactic Tagging of Croatian and Serbian}},
  author = {Željko Agić, Nikola Ljubešić and Danijela Merkler},
  booktitle = {Proceedings of the 4th Biennial International Workshop on Balto-Slavic Natural Language Processing},
  year = {2013},
  url = {https://aclanthology.org/W13-2408/}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/agic-2013-lemmatization-morphosyntactic-tagging-croatian-serbian/