Elamur Research

SoMeWeTa: A Part-of-Speech Tagger for German Social Media and Web Texts

Paper · 2018 · Thomas Proisl

Summary

A tagger trained on German newspaper articles can do well on edited prose and still struggle with a chat message. The message may contain an unfamiliar spelling, a contraction, or an emoji. Some such tokens are difficult to classify with the categories used for newspapers. Others fit familiar categories but look different from the examples on which the tagger learned. Both problems are addressed by the Social Media and Web Tagger (SoMeWeTa). The paper tests it on part-of-speech tagging, the task of assigning each token a grammatical label, such as a noun or a verb, or a more specific label defined by the annotation scheme.

SoMeWeTa learns first from the TIGER newspaper corpus and then from the German web and computer-mediated communication data of the EmpiriST 2015 shared task. The newspaper training supplies a set of weights that the tagger keeps using while learning an adjustment from EmpiriST. This gives the much smaller target collection a distinct role in training. The tagger reads a sentence in order, retains several possible tag sequences as it goes, and learns from mistakes in those sequences. It can also draw on information about likely word classes from Morphy and groups of words derived from their patterns of use in the DECOW14 web corpus.

The combination of both resources with domain adaptation reaches 88.37% accuracy on the EmpiriST communication test set and 93.75% on the web test set, for a macro-average of 91.06%. The strongest system from the shared task scored 87.33% and 93.55% on those sets, with a macro-average of 90.44%. The adapted tagger already reaches a competitive 89.11% macro-average using the annotated corpora alone. Capitalization information from DECOW14 brings mixed results, and narrowing the target training data to the test domain helps the communication set while reducing accuracy on the web set.

The error analysis traces some mistakes to differences in how the corpora label colons and others to patterns missing from the training data, such as sequences of graphical emoticons. A small follow-up training file drawn from tweets improves the communication result, taking the best macro-average to 91.42%, with web accuracy at 93.75%. The paper makes SoMeWeTa available as free software and also releases a version trained on the full EmpiriST collection.

Deep dive: SoMeWeTa: A Part-of-Speech Tagger for German Social Media and Web Texts

SoMeWeTa improves German part-of-speech tagging for social media and web texts by adapting a newspaper-trained tagger to those domains. · about 31 minutes to read

The problem and its context

What changes when a tagger leaves the newspaper

Part-of-speech tags give later processing steps a compact account of what words are doing. A procedure that returns a lemma, or dictionary form, can use a grammatical category to help choose the right entry. A parser can use the categories when analyzing how words fit together. The paper also names named entity recognition and machine translation as tasks for which tagging is an important preliminary step. The concern is therefore how reliably the tagger performs when its input changes from the kind of writing on which it learned.

For German, the paper identifies the TIGER corpus as a common source of training data. Its newspaper articles provide many examples of grammatical categories in edited prose. A webpage or an exchange in computer-mediated communication, abbreviated CMC, can use some of the same words and constructions while differing in spelling, punctuation, and the kinds of tokens writers use. The paper treats CMC and web text as separate test domains. That distinction matters because a corpus drawn from the web can include writing closer to a newspaper than the writing in an online exchange.

One difficulty is vocabulary coverage. An out-of-vocabulary token, or OOV token, has a form absent from the relevant training vocabulary. A conventional spelling can appear often enough to give a tagger useful evidence about its likely grammatical role. A spelling variant may offer very little direct evidence of this kind. If it shares an ending or occurs in similar surroundings, the tagger has other signals to use, but it has to generalize beyond the full form. The paper identifies unconventional spelling as an important reason web and social media text present more unfamiliar forms and says that typical taggers handle those forms less accurately than familiar ones.

Another difficulty is deciding which categories the tagger should be able to predict. German newspaper annotation usually uses a version of STTS, a tagset that specifies the available categories and the distinctions among them. An interaction word such as *lach* represents a gesture or action in a written exchange. Hashtags, forms of address, URLs and emoticons pose different classification questions. The paper also mentions sound imitations and colloquial contractions such as machste. Recognizing any of these as familiar text is one issue. Representing its function in the annotation scheme is another.

The EmpiriST 2015 shared task addressed both tokenization and tagging. Tokenization establishes which pieces of text the tagger will classify. A decision about whether to treat a marked expression as a single unit therefore changes what the tagger sees. For the tagging task, EmpiriST used STTS IBK, an extension of STTS that adds 18 labels, chiefly for phenomena found in online communication. That extension gives annotators and taggers the means to distinguish more of the relevant cases. Learning when to use the extra categories still requires examples.

The benchmark contains a manually annotated reference for CMC and another for web text. Such a reference is often called a gold standard because systems are judged by their agreement with it. Its usefulness depends in part on how consistently the categories are applied. A tagger that matches a plausible convention can still be counted wrong if the reference uses a different convention. The authors encounter exactly that issue with punctuation when they inspect their results.

How the shared-task teams handled the shift

The earlier approaches described in the paper tackle different parts of the same problem. Some increase exposure to examples from the desired domain. Others add knowledge about words that are rare or absent in labeled training material. Several combine these approaches with rules for tokens whose surface form is particularly distinctive.

Prange and colleagues, the shared-task winners, concentrate on unfamiliar vocabulary. They use HunPos, a tagger based on a hidden Markov model, and train it on TIGER, a copy of TIGER converted to the newer German orthography, repeated copies of the EmpiriST training data for the target domain, and 34,000 tokens of additional training material from forums, chat and Twitter. They add the target EmpiriST material five times to increase its influence. During tagging, the system also consults a lexicon induced from patterns of word use to supply part-of-speech information about unfamiliar forms. The paper singles out this entry for directly addressing the German spelling reform.

Horsmann and Zesch use FlexTag with a conditional random field, a sequence classifier that can assign labels by considering how neighboring decisions fit together. They combine EmpiriST with 100,000 tokens from TIGER. Their external resources include Brown clusters, morphological information from Morphy, a part-of-speech lexicon extracted from a treebank, and named-entity lists. They also adjust some outputs after tagging with rules for forms such as hashtags, mentions, email addresses, URLs and words ending in a hyphen, as well as a rule for sehr. That entry is particularly relevant to SoMeWeTa because the two systems draw on some of the same kinds of lexical evidence.

Remus and colleagues adapt the GermaNER named-entity recognizer into a sequence tagger that also uses a conditional random field. They convert the TIGER annotation to the EmpiriST tagset and combine it with the relevant EmpiriST training data. In addition to lists of named entities, their features use similar words from a distributional thesaurus and groups derived from topic analysis. They apply some rules after tagging, including rules for emoticons.

Stemle uses a recurrent neural network with long short-term memory. Its representation combines word2vec word embeddings, which provide numerical descriptions of words, with character n-grams from the beginnings and ends of tokens. A character n-gram is a short consecutive string of characters. Such strings give the tagger evidence about common fragments even if it has limited evidence for a complete word. The training material again combines TIGER and EmpiriST.

These systems establish the range of choices that SoMeWeTa enters. Using newspaper data alongside target examples was already standard among the shared-task entries. So were resources that help the tagger draw inferences about unfamiliar words. SoMeWeTa changes the relationship between the newspaper and target data at training time. It gives the background corpus and the target corpus distinct jobs and tests how much the tagger gains from adding lexical evidence to that arrangement.

The method, step by step

Prepare the labeled sentences

SoMeWeTa learns from examples in which each token already has a reference tag. TIGER is the background source. The paper describes it as a newspaper corpus of about 900,000 tokens. The EmpiriST training data, about 10,000 tokens in the paper’s account of the adaptation problem, supply the target examples. The scale difference is central to the design. In an ordinary training run over a pooled collection, updates would occur far more frequently on newspaper sentences. The smaller EmpiriST collection would have to establish both its domain tendencies and its additional categories through a much smaller share of the training examples.

Before training, the authors reconcile one difference in the annotation. TIGER uses PROAV for pronominal adverbs, where the original STTS and the target annotation use PAV. They automatically replace PROAV with PAV in TIGER, so evidence for the same category has a common label. The paper also identifies differences involving indefinite pronouns in attributive use and prepositions that modify numerals. TIGER groups the two relevant indefinite-pronoun categories under PIAT. It assigns ADV to prepositions in the numeral context. Those conventions are still present in the background data used for the experiments.

The tagger needs sentence boundaries because it works with a sequence of tags for each sentence. TIGER already supplies those boundaries. EmpiriST supplies the tokens, and the authors use the sentence splitter from SoMaJo to group them into sentences. SoMaJo is a tokenizer designed for German social media and web text. Its role in this experiment is to create the sentence boundaries required by the sequence learner.

The authors also restore literal emoji characters in EmpiriST. The corpus stores them as textual substitutes, such as emojiQloudlyCryingFace. The replacement puts the original kind of symbol back into the sequence. That affects what the tagger’s shape and other form features can observe. It also brings the training input into line with the form in which the tagger would encounter an emoji in ordinary use.

How SoMeWeTa learns and assigns sentence tags

The steps in order.

How SoMeWeTa learns and assigns sentence tagsStep 1: Align labels and prepare sentence boundaries1. Align labels and prepare sentence boundariesStep 2: Train background weights on TIGER2. Train background weights on TIGERStep 3: Extract token, context, and optional lexical features3. Extract token, context, and optional lexical featuresStep 4: Score tag prefixes using background and target weights4. Score tag prefixes using background and target weightsStep 5: Keep the highest-scoring prefixes in the beam5. Keep the highest-scoring prefixes in the beamStep 6: Update early when the reference prefix drops out6. Update early when the reference prefix drops outStep 7: Average learned weights across training7. Average learned weights across trainingStep 8: Decode new sentences with the averaged weights8. Decode new sentences with the averaged weights

Describe a token and its surroundings

The perceptron sees a token through features. Each feature expresses a recognizable piece of evidence, such as a lower-case word form, a word ending, or the presence of a URL pattern. A feature template specifies where to find the evidence and what form it takes. The template for the identity of the next word, for instance, can produce different features in different sentences. This lets the learner connect the same kind of observation with different tags as it acquires evidence from labeled examples.

The paper calls the current token W. P1 and P2 are the immediately preceding token and the token before it, and N1 and N2 are their counterparts to the right. The raw word-form templates apply to W, N1 and N2 after lowercasing. The tagger uses a prefix of W and suffixes of P1, W and N1, also taken from lower-case forms. Following words are visible in the input before the search has labeled them. The tagger can therefore use a suffix or a word identity to its right while it is still deciding which label to put at the current position.

Lowercasing makes an ordinary word-form feature insensitive to the difference between upper- and lower-case spellings. Other features preserve what they can learn from the original form. The shape feature writes X for an upper-case letter, x for a lower-case letter, and d for a digit. Characters outside those categories pass through as they are. Consecutive characters of the same type are represented by at most 4 repetitions. Thus Computer has the shape Xxxxx. A capital followed by a run of lower-case letters can provide the same shape evidence for many different words.

The length feature records the logarithm of the number of characters in the current token, rounded to an integer. It lets tokens of broadly similar lengths share evidence. Word flags capture other facts about what is written. They indicate such properties as all-alphabetic, all-numeric or all-punctuation content, and lower-case, upper-case or title-case form. The patterns recognized by further flags include email addresses, XML tags, URLs, mentions, hashtags, interaction words, emoticons, ordinal numbers and numbers. Flags are available for the current token and its surrounding positions out to P2 and N2. A flag supplies evidence to the scoring procedure, so its presence can influence a label through what the learner has seen in context.

There are also features that depend on the tag sequence under consideration. The templates pair the identities and tags of the preceding tokens individually, use their preceding tags by themselves or together, and pair the most recent preceding tag with the current word. While considering a sentence, the tagger can reach the same token by extending different candidate histories. Its evidence about the written token will be the same in those candidates. Its evidence about the preceding tags can differ. This is how the features give the tagger a way to reason jointly about the labels in a sentence.

Add evidence from outside the labeled corpora

The scale of the background corpus solves one shortage of evidence. External lexical resources address another. A token can be absent from the supervised training vocabulary and still have useful information attached to it in a separate collection. SoMeWeTa can turn such information into features and learn how much to rely on it from the labeled sentences.

The paper derives 1,000 Brown clusters from DECOW14. Brown clustering groups words by patterns of use. A cluster identifier can serve as shared evidence for words that occur in similar surroundings in the corpus from which the groups are learned. The trained tagger can associate a cluster with outcomes it has seen for some of its members and use that association when another member appears. Cluster features cover the current token and its neighbors through P2 and N2. Another feature uses the current word’s frequency in the Brown cluster file, taking its logarithm and rounding it to an integer.

Morphy supplies major word classes for the lexical feature on the current token. A class recorded in Morphy contributes information about the word, while the tagger still scores its specific use in the sentence. This is useful when the classification supplied by a resource is coarser than the distinction required by STTS IBK, or when surrounding words help determine which category is appropriate. The same template can receive information about a word’s customary capitalization from DECOW14. Those flags reflect how the word is typically written across its occurrences in the web corpus. They provide a different observation from the case flags derived directly from the token being tagged.

The resulting feature set ties together several kinds of evidence. A word can have an informative ending even if the whole form is unfamiliar. A cluster can connect it to words whose grammatical behavior is better represented in the training data. The local context can support a particular reading of the form. Because these signals enter through learned weights, the experiments can ask whether each resource adds value alongside the evidence already available.

Score candidate sequences and learn from mistakes

The perceptron is a linear classifier. For a candidate decision it adds the weights associated with the features present in that decision. In the structured version, the candidate is a tag sequence, or a prefix of one during search. The score accumulated for a prefix reflects the decisions made at its positions. A high score means that the candidate agrees with feature associations that have received positive weight during training, after any negative contributions are taken into account.

The tagger expands candidates from the beginning of a sentence. At a given position it extends the retained prefixes with possible next tags, scores the extensions and keeps the highest-scoring candidates. This is beam search. The beam is the limited set of partial solutions allowed to continue. Earlier decisions can survive as alternatives while the tagger processes more of the sentence, although an alternative that falls out of the beam is gone for that sentence. This restriction makes the search manageable and creates a particular training problem. A correct prefix may be dropped before the end, while a later correction based on the complete reference sentence would ask the learner to improve a sequence it never managed to finish.

SoMeWeTa uses an early update to deal with that situation. During training, the reference labels reveal which prefix must survive if the final predicted sequence is to agree with the annotation. When that prefix drops out, the algorithm stops processing the sentence and updates the weights at that point. A perceptron correction favors the features of the reference decision over the corresponding features of the mistaken decision. In this case the correction concerns the prefix where the search went wrong. The paper takes this training strategy from work on incremental parsing that uses the same combination of a perceptron and a restricted search. Incremental Parsing with the Perceptron Algorithm

Repeated passes through the training sentences produce a succession of weight vectors as the learner makes corrections. SoMeWeTa averages the weights over training. This retains information from earlier states and reduces the influence of the particular updates near the end. The paper places averaging in the history of the perceptron and uses it alongside structured prediction and early updating. These choices concern how the tagger learns to score a sequence and how it searches for one. The choice about where to obtain the training evidence comes from the adaptation procedure.

Keep the background weights while learning the adjustment

TIGER supplies the first trained set of weights. The authors use it as a prior for tagging during target training. Here a prior means an existing set of preferences that contributes directly to each prediction. In the perceptron, the score for a candidate uses the sum of the background weights and the weights being learned on EmpiriST. When training on a target sentence reveals a wrong prediction, the update changes the target component. The background weights still contribute to the next prediction.

This creates a different learning problem from starting over with the small target corpus. A feature that is already helpful on newspaper text can still contribute even when EmpiriST has few examples from which to learn its weight. A feature whose earlier association leads to mistakes on EmpiriST can acquire a target adjustment. The background stage supplies grammatical and lexical evidence at scale, and the target stage learns in the presence of that evidence. The target corpus also supplies examples of the tags added in STTS IBK.

The paper attributes the idea of training on background data and carrying its weights over as a prior to Chelba and Acero. It cites Daumé for the way this idea can be implemented with a perceptron, by adding the prior weights when scoring predictions. In the shared-task approach that repeats the target corpus, relative influence is adjusted by changing how many times the learner sees those examples. SoMeWeTa instead changes which weights contribute during target training and which weights the target data are allowed to adjust. This distinction is the main methodological proposal put to the test.

Experiments and results

The benchmark and how to read the scores

The CMC component of EmpiriST contains 5,109 tokens for training and 5,234 for testing. The web component contains 4,944 training tokens and 7,568 test tokens. The totals reported for the whole collection are 10,343 tokens for CMC and 12,512 for web. Keeping the two portions visible is important because the tagger has to adapt to different kinds of variation in each. It also lets a reader see how a single combined result is assembled.

Tagging accuracy is the percentage of test tokens for which the predicted label matches the reference. The paper reports accuracy on each test portion and uses their macro-average as its main overall score. This gives CMC and web equal influence even though the web test set has more tokens. The paper also reports accuracy on the unified test set, where every token counts toward one result. Web contributes more to that figure because it has more test tokens. Both scores answer legitimate questions. The macro-average treats each domain as equally important, while unified accuracy describes performance across the test tokens as a whole.

The authors also report accuracy for in-vocabulary and out-of-vocabulary tokens. An in-vocabulary token, or IV token, has a form already represented in the relevant training vocabulary. The OOV figures show how well the tagger generalizes when that direct source of experience is missing. The categories are useful within a setting, particularly where their scores diverge. When the training corpora change, vocabulary membership can change as well, so an OOV comparison across those settings can involve a different set of test items.

The experiments train the tagger for ten iterations and shuffle the examples after each iteration. A different order can lead to different perceptron updates and a different final set of averaged weights. The authors run each setting ten times and report the mean with a spread of two standard deviations for the domain and vocabulary scores. The spread describes variation across those runs. The macro-averaged column gives the scores without that accompanying spread. To assess improvements over the shared-task winner, the authors also use McNemar’s test, which compares outcomes on paired test items.

The shared-task comparison

Prange and colleagues give the strongest previously reported results in the paper’s comparison, with 87.33% on CMC, 93.55% on web, and 90.44% as the macro-average. The next best macro-average, 89.09%, comes from Horsmann and Zesch. Their separate scores are 86.07% for CMC and 92.10% for web. Remus and colleagues reach 84.22% on CMC and 93.27% on web, producing an overall 88.75%. Stemle records 85.42% on CMC and 90.63% on web, with 88.03% overall. The paper’s comparison gives all-token scores for the earlier systems. Its IV and OOV breakdown is available for SoMeWeTa.

The internal baselines start with the same tagger trained on just one source. TIGER alone gives a macro-average of 82.14%. Its CMC result is 72.24%, with a reported spread of ±0.31, while its web result is 92.03%, with ±0.21. EmpiriST alone gives a macro-average of 81.65%. It improves on the newspaper baseline in CMC, with 79.72% and a spread of ±0.40, while its web accuracy is 83.58%, with ±0.64. Access to the target examples and their categories helps on the communication data. The web result also shows what the much larger newspaper corpus contributes there.

Training with TIGER as background and EmpiriST as the target gives 89.11% overall with the optional lexical resources absent. Brown clusters bring the macro-average to 90.94%, while Morphy by itself brings it to 90.34%. With both resources, the mean domain scores are 88.37% for CMC, with ±0.26, and 93.75% for web, with ±0.24. The 91.06% macro-average is the best among the main settings. In the paper’s main table this configuration is called TEB+Mor. TE denotes adaptation from TIGER to EmpiriST, B adds Brown clusters, and Mor adds the word-class information from Morphy.

Part-of-speech tagging accuracy on the EmpiriST test sets, macro-averaged across domains

SoMeWeTa with Brown clusters and Morphy leads the main comparison.

Part-of-speech tagging accuracy on the EmpiriST test sets, macro-averaged across domainsTIGER only: 82.14TIGER only82.14EmpiriST only: 81.65EmpiriST only81.65Horsmann and Zesch: 89.09Horsmann and Zesch89.09Prange and colleagues: 90.44Prange and colleagues90.44SoMeWeTa with adaptation: 89.11SoMeWeTa with adaptation89.11SoMeWeTa with adaptation and Morphy: 90.34SoMeWeTa with adaptation and Morphy90.34SoMeWeTa with adaptation and Brown clusters: 90.94SoMeWeTa with adaptation and Brownclusters90.94SoMeWeTa with adaptation, Brown clusters and Morphy (this paper): 91.06SoMeWeTa with adaptation, Brown clustersand Morphy (this paper)91.06
The numbers
System or settingaccuracy %
TIGER only82.14
EmpiriST only81.65
Horsmann and Zesch89.09
Prange and colleagues90.44
SoMeWeTa with adaptation89.11
SoMeWeTa with adaptation and Morphy90.34
SoMeWeTa with adaptation and Brown clusters90.94
SoMeWeTa with adaptation, Brown clusters and Morphy (this paper)91.06

The 88.37% CMC result carries a significance marker in the paper’s table for the comparison with Prange and colleagues. The web score is higher than the strongest shared-task web score, and the table places its significance markers in the CMC column. On the unified test set, the authors explicitly report a statistically significant improvement. Prange and colleagues score 91.01% on the pooled tokens, while TEB+Mor averages 91.55% with a spread of ±0.18. The reported McNemar result uses a threshold below 0.05.

The unified scores also illustrate the importance of specifying the evaluation split and the averaging rule. The strongest main configuration has a higher mean on web than on CMC, and the web split supplies more tokens. Its unified score of 91.55% therefore sits above its 91.06% macro-average. A reader comparing two sources that both report an “overall” score needs to establish which calculation each source uses.

What changes for unfamiliar words

The vocabulary breakdown helps explain why CMC benefits from the target training. With TIGER alone, accuracy on OOV CMC tokens is 33.42%, with a spread of ±0.52. Its CMC accuracy for familiar tokens is 83.96%, with ±0.36. The tagger has learned associations from newspaper text that carry over to much of the familiar vocabulary, while the new forms are much harder to classify. On the web set, also using just TIGER, the corresponding means are 77.48% for OOV tokens and 94.58% for IV tokens.

For the adapted tagger before lexical enrichment, CMC OOV accuracy is 65.44%, with ±1.00. Adding Morphy brings it to 70.96%, with ±0.88. Brown clusters bring it to 75.15%, with ±1.49, and the combination reaches 76.06%, with ±1.27. These settings use the same supervised source corpora. Their comparison shows that the added resources help with forms unfamiliar from the labeled data. The best setting by macro-average still handles familiar CMC tokens more accurately, at 90.36%, with ±0.22. The remaining gap is a measure of how much harder the OOV group is under that configuration.

The pattern on the web set is less pronounced. The adapted tagger starts at 79.46% for OOV words, with ±1.21. Morphy alone brings that score to 82.19%, with ±1.27, and Brown clusters alone bring it to 83.58%, with ±0.91. With both, the mean is 83.54%, with ±0.95. The combined setting has the highest all-token mean in the main comparison because web IV accuracy also contributes to that result. Its IV mean is 95.31%, with ±0.24. Ranking these settings by all-token web accuracy and ranking them solely by web OOV accuracy therefore lead to different choices.

Training on examples identified through error analysis

After inspecting errors and using SoMeWeTa on a collection of tweets, the authors gather 126 tokens from tweets about the German federal election. The training file has 13 sentence units. It is designed to cover situations for which the authors found too little evidence: runs of graphical emoticons and uses of hashtags and mentions within sentence structure. For the follow-up comparison, they add this file to versions of the tagger that already use Brown clusters and Morphy.

The best macro-average in that follow-up is 91.42%, achieved by TEB+Mor with the extra file. On CMC it records 89.08%, with a spread of ±0.25, and on web it records 93.75%, with ±0.26. The CMC mean rises from the corresponding setting in the main comparison, while the web mean is the same. The unified test score is 91.84%, with a spread of ±0.17. The paper reports a significant improvement over Prange and colleagues on those pooled tokens, using a McNemar threshold below 0.001.

CMC test accuracy with and without the targeted tweet examples

The extra examples improve mean CMC accuracy with either capitalization setting.

CMC test accuracy with and without the targeted tweet examplesBrown clusters and Morphy: 88.37Brown clusters and Morphy88.37Brown clusters, Morphy and capitalization: 88.32Brown clusters, Morphy andcapitalization88.32Brown clusters, Morphy, capitalization and tweet examples: 88.84Brown clusters, Morphy, capitalizationand tweet examples88.84Brown clusters, Morphy and tweet examples (this paper): 89.08Brown clusters, Morphy and tweetexamples (this paper)89.08
The numbers
System or settingaccuracy %
Brown clusters and Morphy88.37
Brown clusters, Morphy and capitalization88.32
Brown clusters, Morphy, capitalization and tweet examples88.84
Brown clusters, Morphy and tweet examples (this paper)89.08

The scores with that file belong to a follow-up prompted by the error analysis. The initial result using TIGER, EmpiriST, Brown clusters and Morphy describes the broader combination of training sources. The follow-up measures what happens when the authors add a small set chosen to cover specific weaknesses. Reporting the two stages separately shows what the more general training procedure achieves and where carefully selected examples bring further improvement.

What the ablations show

What the background training contributes

An ablation examines a component by removing it or replacing it while holding other choices as steady as possible. The paper’s resource comparisons vary the annotated sources and the external lexical features. Its baseline with TIGER alone answers how far newspaper training carries the tagger into the new domains. Its EmpiriST baseline answers how far it gets with the relatively small supply of labeled target material. The adapted setting shows how the two sources work together under the paper’s training procedure.

The combination helps on both test sets. For CMC, the adapted tagger reaches 85.78%, with a spread of ±0.40, compared with 72.24% for the TIGER baseline and 79.72% for EmpiriST alone. For web, it reaches 92.43%, with ±0.27, compared with 92.03% for TIGER alone and 83.58% for EmpiriST alone. These results give a more precise account of the 89.11% adapted macro-average. On CMC, both individual sources leave substantial room for improvement. On web, TIGER already supplies much of the useful evidence, and adapting the resulting tagger brings a further gain.

The paper’s conclusion suggests that its adaptation procedure is a major reason for the advantage over earlier systems. The case is supported by the results of adapting before introducing extra lexical features and by the fact that competing systems have used resources similar to those in SoMeWeTa. The comparison among systems nonetheless varies more than adaptation. The shared-task entries also differ in learner, feature inventory, training material and treatment of special tokens. The internal baselines establish the value of the two training sources in the arrangement tested. Measuring the relative contribution of the weight prior and reweighting by repetition would require a controlled comparison between those strategies with the same tagger and data.

What the lexicons add

Brown clusters and Morphy each improve the macro-average of the adapted tagger. The effect of Morphy is visible even before adding clusters, and the strongest macro-average uses both. This matters because the resources offer evidence at different levels. Morphy provides a word-class description of an individual entry. The clusters reflect how groups of words are distributed across contexts. Either kind of information can help when the complete current word offers little supervised evidence. Their combination can also support familiar words in cases where a class or cluster gives the learner an association that it would see less often for the exact form.

In CMC, adding Brown clusters alone to the adapted tagger gives 88.16% all-token accuracy, with ±0.41. Morphy alone gives 87.50%, with ±0.39. The combined configuration reaches 88.37%, with ±0.26. Its strongest advantage over the lexical alternatives is visible in the CMC OOV column, where the combined 76.06% is higher than either individual-resource result. For web OOV tokens, the Brown-only setting has a mean of 83.58%, and adding Morphy gives a mean of 83.54%. The all-token result and the CMC vocabulary results provide the clearest evidence for using both resources.

Capitalization from DECOW14 gives a mixed outcome. With Brown clusters already present and Morphy absent, adding the corpus capitalization features moves the CMC mean from 88.16% to 88.20% and the web mean from 93.72% to 93.58%. When Morphy is already included, the corresponding means are 88.37% and 93.75% without corpus capitalization, and 88.32% and 93.73% with it. The macro-averages for those last two settings are 91.06% and 91.03%. The practical implication within this experiment is that the strongest main setting comes from the two lexical resources without the extra capitalization flags. In both settings the tagger already has access to the case and shape of the token as written.

The paper also makes it possible to see how a resource can raise one score and lower another inside the same domain. Adding capitalization to Brown and Morphy gives a CMC IV mean of 90.41%, compared with 90.36% for the setting without that resource. The OOV mean moves from 76.06% to 75.36%. A single all-token figure can hide movements of this kind. The vocabulary breakdown supports the authors’ measured conclusion that the capitalization resource has limited value and can work against the other features in some settings.

When a narrower target corpus helps

The target training stage can use both kinds of EmpiriST text or only the training portion corresponding to the intended test domain. The paper also reports each restricted configuration on the other domain. Those evaluations make it possible to separate the advantage of focusing the target examples from some of the cost of specializing too far.

With Brown clusters and Morphy, CMC accuracy is 88.37% when the adaptation stage uses both EmpiriST portions. Using only CMC target data gives 88.61%, with ±0.45. Using just web target data gives 76.26%, with ±0.58, when tested on CMC. The comparison shows how strongly the communication result depends on direct examples of its own domain. The version adapted only to CMC retains a web mean of 92.97%, with ±0.27. The large drop when web training is used for CMC is therefore specific to the direction of the transfer in this comparison.

For web, the tagger adapted only on the web portion reaches 93.68%, with ±0.30. The setting trained on both EmpiriST portions reaches 93.75%, with ±0.24. With capitalization features included, web-only adaptation records 93.57%, with ±0.26, and the version that uses both portions records 93.73%, with ±0.18. The best CMC mean in the main comparison comes from CMC-only adaptation with capitalization, at 88.69%, with ±0.44, while the best macro-average still comes from joint target training with Brown clusters and Morphy.

The authors explain the asymmetry in terms of the distance from TIGER and the amount of target evidence. Web text is closer to newspaper prose in their account. For that set, the added labeled examples of the extended tagset appear to be useful even when they come from CMC. For the communication set, which diverges further from newspaper writing, a more homogeneous target sample can be more helpful. The comparisons support that reading on EmpiriST. They leave the contribution of particular genres or particular added tags to be investigated separately.

What the largest error groups reveal

For its detailed inspection, the paper takes the run of TEB+Mor whose results are nearest the reported means. The error tables therefore describe a representative run of a specific configuration. The CMC table shows 53 errors among 343 tokens whose reference tag was $(, with 42 of those mistakes predicted as $.. Those punctuation labels are especially revealing because the authors trace the pattern to the annotation of colons.

In TIGER, 97.1% of colons receive $., and the EmpiriST web portion assigns that label to 100% of colons. In CMC, $. accounts for 31.2% of colons, while $( accounts for 68.8%. SoMeWeTa sees evidence for a strong punctuation association in the background corpus and the web data. A large share of the target communication cases follows a different convention. The confusion shows how a disagreement in annotation can register as a recurring error. It also shows why the prominent presence of punctuation mistakes cannot by itself diagnose a broad failure to recognize punctuation.

Graphical emoticons provide a different diagnosis. The CMC test material contains 63 instances with the reference tag EMOIMG. The representative run gets 34 of them wrong, including 21 assigned $(. The authors find stretches of consecutive emoticons in the test material. In the training material, graphical emoticons occur individually. Because the tagger uses the surrounding words and tags, repeated emoticons create a context pattern for which the learner has relatively little evidence. This difference leads directly to the decision to add targeted examples.

Some confusion is shared between the communication and web portions. Common nouns labeled NN and proper names labeled NE are mistaken for one another. On web, for example, the authors report 74 instances of gold NN predicted as NE, out of 96 errors on NN. They also report 39 cases going in the opposite direction among the 43 errors on gold NE. Such counts preserve the distinction between the frequency of a reference class and the frequency of a particular error within that class.

The newly introduced particle tags PTKIFG, PTKMA and PTKMWL contribute further mistakes, frequently through confusion with ADV. On CMC the selected run assigns ADV to 32 cases whose reference tag is PTKIFG. The same substitution occurs in 28 cases on web. Several verb distinctions also recur in the tables. On web, among 37 mistakes on VVFIN, 17 are assigned VVINF and 16 are assigned VVPP. The sequence tagger frequently identifies the broad category while missing the more specific type of particle or verb required by the reference.

How tag granularity changes the score

To make the main kinds of error easier to see together, the authors map the fine categories into the coarser part-of-speech inventory of Universal Dependencies. The point of the visualization is to distinguish confusions that cross broad grammatical categories from confusions between labels inside them. A point on its diagonal represents a mistake in the original tagset whose reference and prediction share a broader category after the mapping.

Under this mapping, the new particle tags named in the analysis become ADV. Many verb distinctions also fall within the broader VERB category. The visualization highlights errors inside those broad categories along with exchanges between NOUN and PROPN. This explains why two kinds of plausible-looking error have different consequences in the coarser evaluation. Mistaking one type of verb for another can become a correct VERB prediction. Mistaking a proper name for a common noun still crosses a boundary.

After mapping both predicted and reference tags, the paper gives TEB+Mor accuracies of 92.69% on CMC, with ±0.19, and 95.81% on web, with ±0.20. The macro-average is 94.25%, and unified accuracy is 94.54%, with ±0.12. This is a change in what counts as an exact match. The finer result remains the relevant one for an application that needs the distinctions in STTS IBK, while the mapped result measures how frequently the tagger reaches the broader category.

What the additional examples fix

The targeted tweet file is a response to data coverage, rather than a new feature or a tagging rule. It gives the existing learner examples of repeated emoticons and of hashtags and mentions that participate in sentence structure. With the broad target training and both lexical resources, the CMC IV mean rises from 90.36% to 90.95%, and its OOV mean rises from 76.06% to 77.41%. The authors also report a higher CMC-only result than their best macro-average configuration achieves on CMC. With Brown clusters, Morphy and the extra file, CMC-only adaptation reaches 89.17%, with ±0.38, on CMC and 93.10%, with ±0.24, on web, for a macro-average of 91.14%.

The same targeted file has its clearest benefit on the domain that motivated it. In the combined target setting with both lexical resources, web all-token accuracy holds at 93.75%. Within that mean, web IV accuracy is 95.34%, while web OOV accuracy is 83.31%. The follow-up gives the strongest evidence for gains in CMC as a whole. Separate post-training counts for repeated emoticons, hashtags and mentions would be needed to establish which of the targeted phenomena accounts for how much of that gain.

Limitations

Limits identified in the paper

The authors explicitly describe the mismatch between TIGER and EmpiriST annotation and identify where their preprocessing addresses it. The label replacement for pronominal adverbs harmonizes one category. The background training still uses TIGER’s conventions for the indefinite-pronoun distinction and for prepositions modifying numerals. The punctuation analysis also finds that colon labels differ sharply across the datasets. As a result, adaptation is learning across both a change in writing domain and a change in the labels assigned to some comparable forms.

The paper identifies sparse coverage of particular constructions as a practical limitation. Isolated graphical emoticons in training give limited guidance for sequences of them at test time. The observations about hashtags and mentions also arise from applying the tagger to text with patterns that call for additional examples. The authors address those cases with focused annotation. Their improvement shows that this kind of weakness responds to new data. The availability of that response depends on finding examples that cover the troublesome uses.

The authors describe their features as fairly standard and say that they did little feature engineering. They also describe their experimental tagger as operating without corrective post-processing for common errors. The experiment is consequently a test of the selected training strategy and feature set. It leaves open how far more specialized features or a targeted treatment of recurring cases would change performance. The mixed outcomes for the DECOW14 capitalization flags also bound the claim about external resources. Brown clusters and Morphy are supported by the comparison, while the capitalization features have setting-dependent effects.

The paper explicitly identifies what is lost when the tags are collapsed to a coarser inventory. Higher mapped accuracy comes with fewer linguistic distinctions. The unified score of 94.54% after mapping to the Universal Dependencies categories belongs to that coarser task, while the unified 91.55% result for the corresponding main configuration measures exact matches under the original evaluation. A task whose later processing depends on specific verb or particle subtypes needs the finer result to assess what information it is receiving.

Limits of what the experiments establish

The benchmark covers German CMC and web text from EmpiriST. The paper can therefore establish performance on those splits and can inspect the particular errors found there. Performance on a different collection would depend on its writers, genres, conventions and label distribution. The web and CMC comparison itself shows why the distinction matters. Even within a shared benchmark, the best way to assemble target training varies with the text being tagged.

The comparison supports the adapted use of both labeled corpora and the combination of Brown clusters with Morphy. It has a narrower reach as evidence for the source of the advantage over a different tagger. Several shared-task systems change the learning algorithm, external features and training mixture at once. A direct test of the adaptation strategy against simple pooling or repetition would require keeping these other factors fixed in SoMeWeTa. Similarly, the roles of the beam, early updates and weight averaging in the final accuracy would be clearer with separate tests that change those components. The paper provides evidence about a combination that works well, and those component-level questions remain open.

There is also a distinction between repeatability across training runs and generalization across test collections. The reported spreads reflect how much outcomes vary when the training sentences are shuffled. The repeated runs keep the benchmark in place. The significance tests assess paired tagging outcomes against the strongest earlier system on the relevant EmpiriST test data. Evidence about performance across fresh collections would require evaluating such collections as well.

The targeted additional data have a particular evidential status. The authors chose the examples after inspecting errors and encountering difficulties in another application of the tagger. The subsequent scores show that this response helps on EmpiriST CMC. A separate set designed to evaluate the targeted constructions would give more direct evidence about how broadly the improvement transfers. The aggregate scores also leave open how much benefit each of the added constructions receives and whether gains arise beyond the categories that motivated the file.

Finally, exact token-level accuracy gives each test token the same weight. It represents the typical token under the benchmark distribution. The paper’s error counts show why this is only one way to describe quality. A tag can have relatively few occurrences and be wrong frequently, while another can account for many mistakes because it occurs so often. Applications that depend on a particular rare category, or on every tag in a sentence being correct, would need measurements aligned with that use. The paper motivates tagging as an input to later processing and tests the tagging stage itself.

What came after

The later citations connect SoMeWeTa with corpus work on two different kinds of German text. One concerns political speeches, a genre distinct from both newspaper articles and online exchanges. The study appeared in 2018 and cites SoMeWeTa in the context of a corpus of political speeches. That citation places the tagger in the context of building language resources beyond its original evaluation genres. The extent of its role in the corpus construction and any genre-specific adaptation or evaluation remain unspecified. A corpus of German political speeches from the 21st century

GeRedE, published in 2020, concerns German exchanges on Reddit. Its subject is close to SoMeWeTa’s original motivation, since both concern German writing in online communication. GeRedE cites the tagger in work on another corpus, making the connection one of corpus construction as well as domain. The citation establishes that the study drew attention to SoMeWeTa. Its use of particular training settings, lexical resources, or tagging procedures remains unspecified. EmpiriST supplies the measured results in SoMeWeTa’s paper, while GeRedE identifies a related collection in which the question of transfer to another online setting arises. A Corpus of German Reddit Exchanges (GeRedE)

Cite

Cite as Thomas Proisl. 2018. SoMeWeTa: A Part-of-Speech Tagger for German Social Media and Web Texts. Proceedings of the Eleventh International Conference on Language Resources and Evaluation (LREC 2018).

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

@inproceedings{thomas2018someweta,
  title = {{SoMeWeTa: A Part-of-Speech Tagger for German Social Media and Web Texts}},
  author = {Thomas Proisl},
  booktitle = {Proceedings of the Eleventh International Conference on Language Resources and Evaluation (LREC 2018)},
  year = {2018},
  doi = {10.63317/4yrn97cfdc7k},
  url = {https://doi.org/10.63317/4yrn97cfdc7k}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/proisl-2018-someweta-part-speech-tagger-german/