CodE Alltag 2.0 –- A Pseudonymized German-Language Email Corpus
Paper · 2020 · Elisabeth Eder, Ulrike Krieg-Holz and Udo Hahn
Summary
An email can identify people in places that are easy to miss. A signature may give the sender’s name, but the body can name someone else, and a greeting, a date or a web address can supply additional clues. That makes it difficult to share email collections for language research while protecting the people whose details appear in them. The authors of CodE Alltag 2.0 address the problem by finding identifying passages and replacing them with invented alternatives of the same kind. A personal name stays a personal name, and a date stays a date. The aim is to preserve features of the original language that would disappear if every sensitive passage were replaced with a generic marker.
The study uses separate German-language collections. CodE Alltag S+d contains 1,390 voluntarily donated emails, which the authors annotated by hand. CodE Alltag XL contains 1,469,469 messages from archived Usenet newsgroups, with a randomly selected sample of 1,000 messages annotated for the experiments. The authors define categories for details such as names, dates, locations, contact addresses and formal identifiers, then treat the search for those details as named entity recognition. A tagger has to find where each relevant passage begins and ends and assign a type that can guide its replacement.
The strongest tagger by weighted F1 on the donated collection combined representations of word pieces and characters. It scored 89.03 in 10-fold cross-validation on S+d. When trained on S+d and applied directly to the annotated XL sample, it scored 56.28. Training on annotated messages from both collections improved the score to 70.96 in 4-fold cross-validation evaluated only on XL. The authors attribute the harder recognition task in XL to its noisier text and unfamiliar vocabulary. The mixed training result shows that the donated emails still contribute useful examples when the tagger also sees messages from the archive.
The resulting release contains 800 donated messages and 1,469,469 newsgroup messages. The donated portion is smaller than the collection used for recognition experiments because the authors could distribute only messages written by the donors themselves. The reported scores measure how well the taggers find and label the designated details. Whether someone can still be identified from a released message is a separate question that the experiments leave open.
Deep dive: CodE Alltag 2.0 –- A Pseudonymized German-Language Email Corpus
CodE Alltag 2.0 turns German emails into a research corpus by replacing identifying details and tests how well those details can be found. · about 34 minutes to read
The problem and its context
Why email poses a distinct problem
A collection of authentic emails gives researchers access to how people write to one another. The messages contain more than their main statements. A greeting, a signoff or a signature can help a reader understand who is speaking and how a message is organized. The same passages can carry personal information. Replacing every identifying passage with a uniform marker would make disclosure less direct for the passages successfully found, but it would also remove distinctions between the kinds of expressions people use. The authors want to preserve enough of those distinctions to make the resulting collection useful for studying language.
The privacy problem extends beyond the individual who contributed a message. A donor might permit the release of their own writing while mentioning someone who gave no such permission. The identifying detail could be the name of a person in the body, a place associated with them or a date attached to an event. Even routine sections of a message may contain clues. The unit of work therefore has to be smaller than a whole email and finer-grained than a decision about whether its author can be named. The authors examine passages throughout the message, including material that serves a conventional function rather than advancing the topic.
The paper places this problem alongside the growth of user-generated text and the research opportunities it offers. People can intentionally distribute messages to an audience, and the resulting material may later be collected for a different purpose. The authors treat access to the original communication and the ability to redistribute it as distinct issues. They discuss privacy rules governing work with language data and use the release of AOL query logs to illustrate the consequences of overlooking details that remain in a collection. The incident matters to their argument because identification was possible even when attention moved away from conspicuous items such as official identification numbers.
For CodE Alltag, this was a practical obstacle. The earlier German-language collection had been introduced as a resource, but the authors explain that concerns about disclosure had prevented a public release. Their work also starts with very different kinds of source material. Some messages came from participants willing to donate their emails under a condition of de-identification. Others came from archived newsgroups. Both provide examples of German written communication, yet the purpose of the collection gives no reason to expect the same writing conventions, the same frequency of sensitive expressions or the same performance from a tagger on both sources.
The paper uses de-identification as the umbrella term for two text operations. In its terminology, anonymization replaces a sensitive string with a code or placeholder. Pseudonymization supplies an invented string that belongs to the same category. A label for a name records the presence of a name. An invented name lets the surrounding passage keep the appearance of a name in use. What the authors call anonymization here refers to a masking operation on the text. They distinguish that choice of terminology from work in which anonymity is defined by whether an individual can be identified again.
That distinction explains why the paper has both an engineering problem and a corpus design problem. Finding the sensitive string is an engineering task that can be tested against human annotation. Choosing what to leave in its place determines what kind of text a later reader will encounter. A placeholder and a synthetic substitute can both remove a detected original. Their effect on the surrounding sentence differs. For the German email collection, the authors pursue the substitute because they want the released material to retain cues carried by familiar kinds of names, dates and other expressions.
What earlier de-identification work offered
The authors find the most developed precedents in clinical natural language processing. Clinical research had organized categories of protected information into shared tasks, giving participating teams documents to annotate and common targets to recognize. The paper describes earlier work with statistical sequence taggers, manually written rules and combinations of the two. Later clinical work used recurrent neural networks to tag identifying expressions. This history offered a way to turn a broad privacy concern into an experimentally tractable question. A reference annotation specifies which pieces of text should be found, and different systems can be evaluated on their ability to recover them.
Clinical writing also gave the authors a reason to be cautious about transferring a tagger. The paper contrasts shared tasks on hospital discharge summaries with a later challenge involving psychiatric records. Recognition was harder on the psychiatric material. The comparison is relevant to email even though the clinical texts have a different purpose. A category inventory can carry over in broad outline while the local language that signals those categories changes. A technique that works well when documents follow one set of conventions can have more difficulty once the conventions change.
Work on clinical surrogates supplied a precedent for the replacement stage. The approach that the paper describes as hiding in plain sight substitutes plausible artificial details for the originals. Its rationale is that if some original identifiers survive, they may be harder to tell apart from the invented strings around them. The paper traces surrogate generation in English medical documents and mentions related work for Swedish and Danish clinical collections. The rationale is relevant to the design of CodE Alltag 2.0, although recognition experiments by themselves give no estimate of how well surviving details blend into the resulting email collection.
Another strand of earlier work changed the form of the material more extensively. Some studies tried to protect personal attributes through privacy-oriented text representations. Other clinical studies generated artificial narratives from structured inputs. The paper discusses Generative Adversarial Nets as part of the background to synthetic data generation. In the account it gives, a generator tries to produce realistic data while a discriminator tries to distinguish those outputs from authentic examples. Producing an entire artificial document offers a different research object from editing selected passages in a document someone actually wrote.
The authors also cite work that tried to hide demographic attributes in representations of text. In that line of research, what downstream systems can recover from the representation is central. The email corpus has a different practical requirement. Its intended output is readable text, so the procedure has to decide which original strings to replace and which aspects of those strings a reader should still see in synthetic form. The cited approaches include Towards Robust and Privacy-preserving Text Representations and Adversarial Removal of Demographic Attributes from Text Data.
What earlier work on informal writing covered
Outside medicine, the paper describes efforts that addressed narrower parts of the problem. Earlier research on email had tried to find personal names with a statistical tagger. The authors also mention an organizational system that checked outgoing emails for possible violations of a privacy policy. These efforts establish that privacy-sensitive information in email had already been studied. The gap the authors identify concerns applying a broader set of categories to email collections and replacing detected expressions with plausible alternatives across those categories.
Other examples came from short messages, chat and learner writing. The paper describes an approach for French SMS that decided which messages required anonymization. That decision is useful for triage. To edit a message, however, a system must also locate the spans that triggered the decision. The Dutch SMS work in the paper’s survey makes that finer distinction and covers several kinds of structured strings, including dates, addresses and numbers. Its replacements indicate categories through codes. The English and Mandarin SMS corpus cited by the authors adopted a similar placeholder strategy. The paper notes that the published accounts of those automatic procedures offered little detail about their operation or measured performance.
The survey also mentions manually anonymized German chat and work on essays by learners of Swedish. These are precedents for releasing language data whose value comes from how people actually write. A corpus of learner essays has its own reasons to keep linguistic evidence visible after editing, just as an email corpus has reasons to retain the shape of a greeting or address. The learner-writing effort is described in Learner Corpus Anonymization in the Age of GDPR.
From this background, the authors derive a concrete scope for the email study. Clinical annotation offers a starting point for deciding which expressions deserve attention, while email supplies reasons to revise the categories and use cues tied to message layout. Prior work on informal writing shows that classifying messages, finding names and inserting type codes are each feasible tasks. CodE Alltag 2.0 connects the broader recognition task to the production of a readable research collection, with the final text composed largely of authentic writing and synthetic replacements at detected spans.
The method, step by step
The procedure begins by defining which expressions are in scope. Human annotators then show what those definitions mean in actual messages. Their work supplies examples for fitting the taggers and a reference for evaluating predictions on held-out messages. The recognition stage returns spans and types. A separate replacement stage inserts a synthetic expression appropriate to each recognized type. This separation is what makes the recognition experiments interpretable even though the final product is an edited corpus.
From original emails to a pseudonymized corpus
The steps in order.
Define the passages that need attention
The authors use privacy-bearing entity for a passage assigned to a category in their inventory. Though the study uses named entity recognition as its technical starting point, the target is broader than names in the everyday sense. A password, a date or a telephone number can all be spans for the tagger to find. Different types require different replacements. The inventory therefore gives the annotators a definition of the task and gives the replacement program information about what kind of synthetic string to supply.
The starting point is an inventory of protected information used in clinical text. It includes items that carry readily into email, such as names and dates, alongside categories defined for medical documents. The authors adapt the inventory to communication by email while aiming for categories that could apply beyond this particular German collection. The resulting top-level types are social actors, dates, formal identifiers, locations and addresses. Some of these types have narrower descendants. It is those distinctions that let the annotations indicate, for example, which part of an address has been found.
Social actors include organizations, people and usernames. The organization category covers entities such as brands, firms, public agencies and other institutions. Person names distinguish family names from given names. The given-name types are further divided into female and male names, with nicknames and initials also in scope. A username belongs in its own class because it serves as an adopted identity on a system or platform. This structure makes the inventory more informative than a single label for every expression that can refer to a person.
The distinction within person names matters at the point where a human has to assign a label. A surname and a given name can occur next to each other, yet the inventory treats them as different pieces of information. A familiar full given name may supply evidence for assigning its subtype. An initial supplies much less. The problem is then to decide which fine-grained type the text supports, even when there is little doubt that the expression refers to a person. The annotation of the archive sample exposed this difficulty in practice.
A date can be associated with someone’s birth, a death or the start or end of an agreement. Its relevance does not depend on appearing beside a person’s name. The inventory distinguishes such date information from general references to time. The paper uses Christmas and the following week as examples of expressions it initially excludes for lack of specificity. In its example involving Christmas 2019, the year 2019 is the part tagged as DATE. That boundary illustrates the difference between a phrase that provides some temporal context and a component the guidelines consider specific enough to replace.
Formal identifiers include passwords and unique formal identifiers. Passwords are treated as a type of their own. The other branch covers identifiers assigned to people, as well as some associated with systems or other objects. The paper includes examples such as student identifiers, bank account identifiers, IP addresses and document identifiers. An identifier in this branch can be privacy-bearing even if its characters carry little meaning to a reader without access to the system in which it is used.
The location category divides street names, street numbers, postal codes and city names. The city-name type has a broader meaning than a municipality’s official name. The authors include towns, villages, metropolitan areas, smaller regions and forms derived from their names. They exclude geographical features such as lakes, rivers and landmarks on the grounds that their generality limits their contribution to identification in this setup. Age and profession are also outside the inventory. The authors regard them as important in clinical documents but sufficiently rare in these emails to leave out.
Address has a narrower meaning in the hierarchy than it does in ordinary speech. Here it includes email addresses, telephone and fax numbers, URLs and other domain names. A street name and number belong to location. A web address that points to a person or organization belongs to address even if its text also resembles a name. The hierarchy thus depends on the kind of expression used, not solely on what it can identify. A useful tag needs to capture the form precisely enough for the next stage to make an appropriate substitution.
Turn the definitions into reference annotations
The original CodE Alltag resource contains non-overlapping collections. The smaller, donated collection, S+d, supplies hand-annotated examples for fitting and evaluating the taggers. XL, the archive collection, is far larger. A random sample of 1,000 XL emails supplies labeled examples from that source. The sample lets the authors test whether a tagger learned from donated mail continues to work on archived messages and whether the availability of annotated archive text improves recognition there.
The authors use manual linguistic annotation to make the category boundaries concrete. Annotators mark the relevant text at the level of the entity, so a span can cover part of a string or extend over several tokens. A token is the unit the tagger reads at each position, frequently a word or a punctuation mark. An entity is the text span that the task treats as a single item for labeling and replacement. Working with entity spans at the annotation stage gives the surrogate procedure a target independent of how many pieces the recognition system uses to represent it.
For S+d, three annotators divide the work into equally sized portions. They all annotate the same 50 randomly chosen messages during the campaign so their decisions can be compared. The overlap serves a different purpose from the division of the rest of the collection. The divided work gives the project coverage across the donated emails. The overlap reveals whether readers applying the same definitions identify the same boundaries and types. The authors use majority decisions on those shared messages to create a common reference for comparing the individual annotations.
The review of disagreements feeds back into the guidelines. Some organization mentions were confused with product or city names. Others were difficult because the expression sounded generic. Dates also caused uncertainty. In response, the team adopted a direction to tag dates without making a further decision about their specificity. One annotator then went through the donated collection again to apply the revised date guidance and revisit organization tags where necessary. The revised annotations form the final reference for S+d. The paper describes this decision alongside its earlier examples excluding general time references, without detailing how every borderline phrase was resolved under the revised guidance.
The XL sample was annotated by five annotators using the updated guidelines. They consolidated the annotations in a meeting and produced a reference for that collection. The paper identifies overlooked expressions as the source of almost all the disagreements it examined there. It also calls out initials and gender-neutral names as sources of disagreements about name subtypes. Those observations are useful even before an automatic system is tested. Missing a visible span and disagreeing about its type are different errors, and both affect what the reference asks a tagger to reproduce.
For comparison at the token level, the authors represent spans with BIO tags. B marks the beginning of a typed span, I marks further tokens inside it, and O marks tokens outside the inventory. An item covering several tokens thus has a beginning position, a sequence of continuation positions and an endpoint implied by the next tag. Agreement using this representation depends on both the category and the extent of the span. Two annotators who see the same organization in a passage may still disagree under BIO if one includes an adjoining word and the other stops at the name itself.
Prepare the text and keep clues from its layout
The authors experiment with tokenization and with the larger sequences within which tokens are tagged. These are separate choices. Tokenization decides where the pieces read by the tagger begin and end. Sequence segmentation determines which of those pieces are presented together. A line in an email may hold a name, an isolated address or a brief signoff even when it does not have the form of a complete sentence. Keeping it as a line preserves a boundary the writer or the email formatting already supplied.
The authors compare SoMaJo, designed to process web and social media writing in German and English, with spaCy. They use spaCy for the reported pipeline after finding it worked better for their recognition task. They also obtain better recognition by retaining the email’s original lines as sequences rather than taking the sentences identified by automatic segmentation. This means the tagger works with neighboring tokens on a line, while a separate feature-based version can also draw on where that line occurs in the message.
The pipeline adjusts token boundaries for some punctuation inside strings. The authors split on hyphens, slashes, ampersands and at signs in the relevant cases, preserving URLs, email addresses and punctuation marks from that splitting rule. The motivation is to make it possible to tag an entity occupying only part of a token that the original tool returned. Keeping a URL or email address intact serves the opposite purpose when the whole string is the item of interest. Both choices concern the match between the text units emitted by preprocessing and the spans the annotation scheme asks the tagger to find.
The preprocessing choices matter for more than one class. A boundary inside a compound can determine whether a name or location is independently available to tag. A contact detail may be much easier to treat as an intact span than as a series of components. A line break around a signature may be informative even if the surrounding text offers few grammatical cues. The paper’s design uses these properties of email text without requiring that every line first be assigned a function such as greeting, signoff or advertising.
Compare different ways to recognize the spans
The authors first run GermaNER and German NER as available German taggers. GermaNER uses a conditional random field, a sequence-labeling method that scores an assignment of labels in relation to neighboring assignments. German NER combines a conditional random field with a bidirectional long short-term memory network and uses character representations. A bidirectional network processes context in both directions, so the representation used to tag a position can incorporate material before and after it. These systems serve as comparisons for the versions developed or configured around the email task.
A separate approach adapts NeuroNER, which had been designed for clinical de-identification. It also uses bidirectional long short-term memory networks. The authors describe architectural similarities to the work in Neural Architectures for Named Entity Recognition. In the email adaptation, a token has a character-based representation and a pretrained token representation. The former represents information from the characters making up the token. The latter supplies a vector learned previously from text. The experiments use fastText word embeddings based on Wikipedia and Common Crawl.
NeuroNER+token adds manually chosen features to these learned representations. The authors assemble a vector of binary indicators for the token, transform it with a feed-forward network and join the result to the character and pretrained token vectors. Joining the vectors gives the sequence tagger access to the different kinds of information at the same position. The binary indicators can record observable properties of the string, matches to a list and a grammatical category provided by automatic part-of-speech tagging.
The string features record properties such as whether a token contains a digit, consists of letters, uses mixed case or has a particular kind of punctuation. The lexical indicators include matches to names of streets, places, organizations and people. They also record properties such as whether a token is a stop word, a URL or an email address. The feature lookup does not itself settle how a token should be labeled. A name can also be used as part of another entity or have a different interpretation in context. The features supply evidence that the tagger combines with the token’s representations and its context.
NeuroNER+token+seq adds a representation of each line as a sequence within the document. The inputs include its length in characters and tokens, the newlines before and after it, and its position relative to the length of the message. The authors run the sequence feature vectors through another bidirectional long short-term memory network. They then attach its output for a sequence to the representation of each corresponding token. A line can therefore contribute information about its length, spacing and position even when the individual tokens do not reveal much on their own.
The rationale comes from earlier work that divided emails into functional zones. Greetings, signatures and the sender’s new text can have different distributions of identifying information. The authors borrow the idea that a passage’s location and shape matter, while using numerical features of lines in place of explicit zone labels. A short line near the end of a message might resemble a signature in its position and length. Its words and neighboring context remain available to resolve the label. The architectural comparison tests whether giving the tagger this additional layout information helps over the token features alone.
The other approach uses BPE MB, a set of pretrained sub-word representations. Byte pair encoding is a form of subword tokenization that represents strings using pieces smaller than whole words. This makes a representation available for a word through its pieces even when that whole form is unfamiliar. The authors use the 100-dimensional BPE MB embeddings with vocabulary size 100,000. The underlying segmentation technique is the one cited in Neural Machine Translation of Rare Words with Subword Units.
The authors examine BPE MB by itself and with an additional character representation, the version called BPE MB +char. The two versions let them compare the same general sub-word approach with and without that addition. They run these experiments with the Flair sequence tagger. The motivation includes earlier findings concerning recognition on the German part of WikiANN, a resource associated with Cross-lingual Name Tagging and Linking for 282 Languages. Those findings motivate testing a representation here. The email annotations determine how well it works for this particular inventory.
There is no task-specific equation stated for the recognition or replacement procedure. The operational details are the text and tag representations, the roles of the features and the way the data are divided. The taggers see examples paired with the reference tags during fitting. Evaluation withholds annotated emails so their tags can be predicted and compared with the reference. The paper tests the systems against one another on S+d, then keeps BPE MB +char for the comparisons of training sources on XL.
Replace the detected information and prepare the release
Once recognition has assigned a type and boundary to an expression, the replacement procedure can choose a synthetic item from the corresponding type. A personal name is replaced with another name, for instance. Figure 2 in the paper traces the same email through the original text, the identification of the relevant passages and the version containing synthetic replacements. The German and English views illustrate the same principle. The tag attached to a passage is information used by the replacement procedure, while the reader encounters the surrogate itself in the edited text.
For the remaining archive messages, the authors use BPE MB +char trained with the annotated S+d collection and the annotated XL sample. The replacement program then operates on the spans that this tagger recognizes. The authors refer to their earlier work for the generation procedure and make the surrogate-generation code available as SurrogateGeneration. Their account here specifies the role of that component in preparing the corpus and illustrates the kind of transformation it produces.
The released portions are CodE Alltag pS+d and CodE Alltag pXL. The donated portion is filtered so that the released emails are those written by the donors themselves. This is a release condition distinct from the operation that replaces spans. A donated message can be useful as an annotated example for recognition without qualifying for public distribution under the permission described in the paper. The authors also aggregate questionnaire information about donors, presenting characteristics of the collection without attaching individual questionnaire records to messages.
Experiments and results
What the reference collections contain
The annotated S+d collection contains 1,390 emails and 151,229 tokens. The authors report 8,866 privacy-bearing entities covering 12,649 tokens. The random XL sample contains 1,000 emails and 94,664 tokens, of which 3,549 belong to the 3,231 annotated privacy-bearing entities. Entity totals count marked passages. Token totals count the units those passages occupy. The distinction matters when an item can extend over more than a single token, as the S+d counts make clear.
The authors describe the archive sample as noisier, less structured and poorer in personal information than S+d. For a tagger, these characteristics affect different parts of the task. Less regular structure changes the usefulness of surrounding context. Fewer examples of an entity type make it harder to learn the different forms it can take. The raw annotation counts establish that the taggers are fitted and evaluated with different amounts of entity evidence in the two collections. The study examines the resulting transfer problem directly by keeping the recognition system fixed and changing where it gets its annotated examples.
How the scores should be read
The recognition evaluations report precision, recall and F1. Precision concerns predicted tags and asks how many are credited against the reference. Recall starts from the reference and asks how much of its annotation the tagger recovers. F1 combines the two so that a system cannot achieve a strong result simply by making conservative predictions or by assigning sensitive labels very freely. The tables report weighted averages. The paper describes the weighting in terms of the number of true instances of each label, giving common categories more influence in the aggregate. A displayed weighted F1 should be read as its own reported aggregate, rather than reconstructed from the displayed weighted precision and recall.
A span’s boundaries matter under the BIO representation as well as its broad meaning. A tagger can recognize that a string looks name-like while missing which tokens form the annotated span or choosing a type the reference assigns elsewhere. The annotation analyses use the same representation to capture differences in token labels and in the placement of span boundaries. These measures characterize agreement with a specified annotation policy. The authors do not interpret any of them as a direct estimate of the likelihood that a real person can be identified from a released message.
The annotation checks also report Cohen’s κ, which measures agreement with an adjustment for agreement expected by chance. For S+d, the paper gives 0.925 for A1–A2, 0.933 for A2–A3 and 0.958 for A3–A1 on the shared BIO annotation. The joint annotations have a reported weighted precision of 93.37, recall of 86.11 and F1 of 88.66 against the reference formed on the shared messages. These values describe the annotators’ outputs in the consolidation analysis. The automatic taggers are evaluated separately.
For XL, the pairwise κ values on BIO tags include 0.952 for A2–A4 and 0.848 for A2–A5. The joint weighted scores against the consolidated annotation are 94.58 precision, 90.34 recall and 92.28 F1. That the joint annotation score is higher on the XL sample does not imply that this source is easier for an automatic system. The collections used different annotation teams, and XL was annotated after the guidelines had been revised. The recognition trials answer a different question about the taggers’ ability to recover the reference labels from text.
Recognition within the donated collection
The first system comparison uses 10-fold cross-validation on S+d. In cross-validation, some annotated messages are withheld for evaluation and the rest supply examples for fitting. The held-out portion changes across folds, so the comparison draws on predictions for different subsets of the collection. Within this setup, the authors compare general German taggers with the feature-based NeuroNER adaptations and the sub-word taggers.
Weighted F1 of entity taggers on CodE Alltag S+d in 10-fold cross-validation
Adding character representations gives the subword tagger the highest weighted F1 in the comparison.
The numbers
| System or setting | Weighted F1 |
|---|---|
| GermaNER | 88.04 |
| German NER | 83.99 |
| NeuroNER+token | 88.17 |
| NeuroNER+token+seq | 88.99 |
| BPE MB | 88.31 |
| BPE MB +char (this paper) | 89.03 |
BPE MB +char leads on weighted F1, with weighted precision of 91.37 and recall of 87.18. GermaNER has the highest precision in the comparison, at 93.68, but its recall is 83.62. At the other end of that tradeoff, NeuroNER+token+seq has recall of 87.27 and precision of 90.87. The table gives a reason to state the selection criterion explicitly. A reader looking for the highest measured recall would pick a different setting in this comparison from one looking for the highest weighted F1.
The authors compare the F1 scores with a two-sided Wilcoxon signed-rank test. Relative to BPE MB +char, the difference is marked significant for GermaNER and BPE MB at the 0.05 threshold and for German NER at the 0.01 threshold. Neither NeuroNER adaptation has a statistically significant difference from BPE MB +char in that comparison. The authors use the highest-F1 setting for the next stage. Its place at the top of the table supports the choice for these experiments without establishing a clear performance separation from the feature-based alternatives.
Recognition on the archive sample
The archive experiments ask how BPE MB +char responds to a change of training material. In the direct-transfer setting, the authors train on S+d and test on the 1,000 annotated XL messages, reporting results over 3 runs. The weighted precision is 63.53, recall is 53.26 and F1 is 56.28. This is the setting with no labeled archive examples in training. It shows the performance of a tagger asked to move from the donated collection straight to the archived newsgroup text.
In the archive-only setting, the authors use 10-fold cross-validation within XL. The weighted precision is 78.17, recall is 62.74 and F1 is 68.62. The improvement over direct transfer shows that examples from the target collection carry useful information even though the annotated sample is small relative to the archive it represents. Recall still lags the result within S+d. The availability of labeled messages from the target source addresses part of the recognition problem while leaving considerable difficulty.
In the mixed setting, the tagger gets S+d and the training portion of XL. The authors use 4-fold cross-validation on XL and score only the held-out archive messages. Including the donated examples increases the diversity and amount of entity evidence available in training. Restricting the evaluation to XL keeps the recognition score tied to the source where the tagger will be applied at scale. This setting has weighted precision of 76.16 and recall of 68.07.
Weighted F1 of BPE MB +char on the annotated CodE Alltag XL sample
Training with labeled messages from both collections gives the highest weighted F1 on the archive sample.
The numbers
| System or setting | Weighted F1 |
|---|---|
| S+d only, direct transfer to XL | 56.28 |
| XL only, 10-fold XL cross-validation | 68.62 |
| S+d and XL, 4-fold XL cross-validation (this paper) | 70.96 |
The move to mixed training comes with higher recall and lower precision than the reported XL-only setting. The higher weighted F1 therefore reflects a different balance between finding reference items and avoiding unsupported predictions. The authors present the mixed setting as more informative about eventual use on XL than an evaluation that combines messages from both sources. The S+d score of 89.03 comes from held-out donated emails. Combining those easier messages with the archive test set would make a single score harder to interpret for the work of editing the archive.
The two cross-validation settings for XL use different fold designs. The archive-only result comes from 10-fold cross-validation, while the mixed result comes from 4-fold cross-validation. The comparison records what happened in those reported setups. Its design gives less control over training-set composition than an experiment that adds S+d while using the same partition of XL in every setting. The practical finding is that the authors obtained their highest archive-only evaluation score when the training data drew on both collections.
What the released collection contains
CodE Alltag pXL contains 1,469,469 emails. The paper reports 21,335,559 sentences and 174,365,556 tokens after processing with spaCy. CodE Alltag pS+d contains 800 emails, 7,975 sentences and 87,384 tokens. The sentence counts characterize the released collection. They describe a different unit from the email lines used as sequences in the recognition experiments. The archive has seven categories: Events, Finance, German, Movies, Philosophy, Teens and Travels. These are subject groupings of messages, separate from the hierarchy of privacy-bearing types.
The paper counts 8,357,193 privacy-bearing entities in pXL and 4,104 in pS+d. Its breakdown gives a sense of what the procedure handles across the archive. For pXL, the reported totals include 1,849,875 family-name labels, 876,732 date labels and 674,806 URL labels, compared with 103 password labels. Archive totals characterize the output of corpus preparation. For messages processed automatically, the size of a category in that output depends on what the tagger recognized, including the mistakes it made.
The paper also reports how counts change when punctuation and stop words are left out. Under that counting convention, pXL has 78,014,532 tokens and 4,506,550 distinct forms. A distinct form is counted once for the vocabulary measure even when it occurs in many messages. The corresponding pS+d figures are 33,483 tokens and 13,925 distinct forms. The authors additionally count lemmas, which represent dictionary forms used to group related word forms. The counts describe the scale and vocabulary of the resulting resource. The comparison of taggers provides the separate evidence on recognition quality.
The questionnaire gives another view of the donated portion. Approximately 73% of its emails were written by females, and close to 92% were written by native speakers of German. More than two thirds were donated by people between 18 and 34 years old. The paper reports daily and weekly writing frequencies of 39% and 45%, respectively. The figures characterize who contributed the released donated emails and are reported in aggregate for privacy. They help a reader interpret the composition of a collection whose contributors took part voluntarily.
What the ablations show
Character information helps the subword tagger on S+d
The comparison between BPE MB and BPE MB +char is the clearest feature ablation in the study. An ablation removes or omits a component to test what that component contributes. Here the authors compare the sub-word tagger on the donated collection with and without the additional character representation. Weighted F1 is 88.31 for BPE MB and 89.03 for BPE MB +char. The paper marks the difference as significant at the 0.05 threshold. The precision and recall reported for the same comparison both move upward when character representations are included.
The result indicates that the characters provide information the tagger can use alongside the pretrained sub-word vectors. The architecture can use the added representation for any token with relevant character patterns. The results do not allocate the gain among entity categories or show whether it was concentrated among unfamiliar names, highly structured identifiers or other expressions. The comparison supports keeping the character component for this task. A more specific explanation of which strings benefit would require predictions or scores broken down by type and form.
Layout information improves the reported NeuroNER scores
The NeuroNER comparison changes a different part of the input. NeuroNER+token represents the token through characters, pretrained token vectors and engineered token features. NeuroNER+token+seq adds its line-level representation. Weighted F1 on S+d is 88.17 for the token setting and 88.99 when sequence features are included. The setting with the line information also has higher reported precision and recall. That is consistent with the authors’ premise that the location and shape of a line provide cues about the presence of identifying details.
The addition is tested as a bundle. Length, spacing and position enter together, and the line features are passed through a recurrent network before the output is joined to the token representation. The comparison leaves open which input or combination of inputs supplies the useful evidence. The significance markings in the system table compare each entry with BPE MB +char. They do not report a direct significance test between the two NeuroNER settings. The reported scores support the layout hypothesis for this comparison, with the strength and source of the effect still uncertain.
The preprocessing experiments also point towards the value of using email structure. The authors report better results with spaCy than with SoMaJo and better results when an email’s lines serve as sequences in place of segmented sentences. They give these findings as reasons for choices made in the pipeline. Without scores or a breakdown for these preliminary experiments, it is possible to identify the direction of the reported effects while leaving their size and distribution across entity types open.
The source of training examples changes the archive result
The transfer experiment holds the tagger family fixed, so the change under investigation is the source of the annotations used for training. With labels from S+d alone, BPE MB +char performs considerably worse on XL than it does on held-out S+d. Giving it training examples from XL raises its archive score. Drawing on both sources gives the highest measured archive F1 of the reported settings, with recall stronger than in the archive-only comparison. This pattern shows that the target source supplies useful examples and that the donated source can still contribute when paired with them.
The result is consistent with the authors’ interpretation that the extra entity examples and diversity in S+d help cover types that are scarce in XL. The aggregate scores do not directly test that explanation. A gain in weighted recall can arise through better detection of common types as well as better coverage of rare ones, and the differing fold designs complicate the comparison. The experiment establishes the value of the mixed setting as evaluated. It does not establish the particular source of every improvement within that setting.
Disagreements reveal where the reference is difficult to apply
The manual annotation analysis examines a source of variation upstream of automatic recognition. Organization names can overlap with product or city names, and a generic description may resemble the name of a specific institution. In S+d, uncertainty over dates was important enough to change the guidelines and prompt a pass through the entire collection. These are cases in which simply seeing the same words does not assure that annotators will attach the same tag. The reference depends on an agreed interpretation of what the categories cover and where a span ends.
The archive analysis emphasizes missed expressions alongside disagreements about initials and gender-neutral names. A missed expression concerns detection. Disagreement about the subtype of an initial concerns the strength of the evidence available for classification. Bringing the annotators together resolves these cases for the purpose of constructing a reference. The resulting record still reflects the convention the project adopted. This matters for interpreting automatic errors, because a tagger can disagree with an annotator at a boundary where the underlying text leaves room for more than one reading.
Limitations
Limits the authors identify
The authors identify robust recognition on XL as unfinished work. They attribute the deterioration in performance to noise and out-of-vocabulary problems, meaning cases in which text includes forms outside the vocabulary available to the system. Although the sub-word and character representations offer ways to handle unfamiliar forms, the archive results show that these mechanisms do not erase the difficulty of the source. The authors call for a more robust tagger. They mention that experiments with contextual embeddings were in progress, so those experiments supply no result for the comparisons reported here.
The intended breadth of the category hierarchy also has limits. The authors designed the categories with email in mind and suggest that they could be adapted for genres such as blogs, tweets and text messages. The paper tests them on German email collections. Its stated exclusions include age and profession, which the authors describe as rare in these emails, and certain geographical details, which they consider too general to contribute much to identification. These are judgments about scope. They explain why some items remain outside the annotation even though another corpus or use case might treat them differently.
The authors expressly separate the processing of language from the problem of establishing whether a person can be identified again. The recognition task concerns items covered by the inventory and judged against its manual annotations. The replacement task changes the recognized original strings. This division makes it possible to evaluate a concrete technical step, but the paper’s definition of that step sets a boundary on what its results can establish. Re-identification can depend on whole passages, combinations of facts and information beyond the document.
Permissions also constrain the resource. The release includes only donated messages written by the donors themselves, explaining the difference between the number available for research within the project and the number in pS+d. Donor questionnaires are released in aggregate for privacy. This limits what a researcher can ask about individual authorship and demographic information in the donated collection. The paper describes the resource within these constraints as part of the work of making it available.
Limits visible in the evaluation
The headline archive result is a weighted average from a random annotated sample, under an evaluation that holds out messages from that sample. It gives evidence about recognition in XL without requiring hand annotation of the entire archive. Categories with fewer reference examples contribute less to the weighted figure. A favorable overall score can coexist with poor coverage of a rare identifier, and a low count of recognized archive instances cannot determine whether the true category is rare or difficult to detect. The output totals therefore cannot serve as direct estimates of residual identifying information.
The recall measures are especially important to the interpretation of the release. In the mixed training setting on XL, the reported weighted recall of 68.07 shows that the tagger misses some of the reference annotation. A missed item in an automatically processed message can remain in its original form because the surrogate program is directed by the recognized spans. Incorrect types and boundaries can also change the resulting text in unintended ways. The reported recall concerns annotation decisions across the sample. Translating it into a statement about the proportion of messages containing residual identifying details would require knowing how the errors are distributed among those messages and what each overlooked detail discloses.
Recognition performance and successful substitution are separate evaluation questions. The pipeline prescribes a same-type synthetic replacement, and the figure illustrates what the process looks like for an email. The paper does not give a quantitative assessment of how frequently replacements fit the grammatical context, whether links between repeated mentions are preserved, or how plausible readers find the rewritten messages. It also does not compare their utility in a downstream language task against versions with placeholders. The preservation of such utility is a reason for the design. Its magnitude remains unmeasured in these experiments.
The comparison of donated and archived mail is informative about those sources and cannot isolate every characteristic that distinguishes them. They differ in structure, in the counts and kinds of annotated items, and in the circumstances under which the texts were collected. The authors identify noise and vocabulary as recognition problems, but the transfer experiment does not vary either factor independently. Similarly, the difference between the XL-only and mixed scores comes from evaluations with different fold designs. The reported outcomes show how the particular setups performed and leave the separate contributions of data quantity, category coverage and partitioning unresolved.
Finally, the inventory aims to cover types of identifying information that can occur in email, while the learned evidence comes from these German texts and their preprocessing. The role of German name lists, street lists and tools makes the recognition experiments more specific than the design of the inventory. The donor profile describes a particular contributor group, and the archive is organized around particular newsgroup topics. The paper establishes a procedure and a resource for these materials. Performance on other populations, writing settings or languages would need evidence from those settings.
What came after
There is no documented follow-up study to discuss. The paper itself leaves a concrete question for subsequent work. Type-preserving substitution makes it possible to release edited messages that still contain names, dates and addresses in recognizable forms, but the quality of those edits depends on recognition in the source collection. The authors’ strongest tagger on donated mail performed substantially worse on archived mail, and adding archive annotations recovered only part of that performance. Their outlook focuses on making recognition work better on the less structured text. Evaluating how well the resulting messages preserve useful linguistic evidence, and how much identifying information can still be recovered from them, would answer questions beyond the recognition comparisons reported here.
Cite
Cite as Elisabeth Eder, Ulrike Krieg-Holz and Udo Hahn. 2020. CodE Alltag 2.0 –- A Pseudonymized German-Language Email Corpus. Proceedings of the Twelfth Language Resources and Evaluation Conference.
@inproceedings{eder2020code,
title = {{CodE Alltag 2.0 –- A Pseudonymized German-Language Email Corpus}},
author = {Elisabeth Eder, Ulrike Krieg-Holz and Udo Hahn},
booktitle = {Proceedings of the Twelfth Language Resources and Evaluation Conference},
year = {2020},
url = {https://aclanthology.org/2020.lrec-1.550/}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/eder-2020-code-alltag-2-0-pseudonymized/