---
title: "Towards Morphologically Annotated Corpus of Hospital"
description: "This study shows how to split Polish hospital discharge reports into tokens, label their grammar, and check the resulting annotations."
canonical: "https://research.elamur.ai/free/en/papers/marciniak-2011-morphologically-annotated-corpus-hospital-discharge/"
---
Elamur: [Mova](https://md.mova.elamur.ai/free/en/) · [Parse](https://mova.elamur.ai/free/en/parse/) · [Dictionary](https://md.dictionary.elamur.ai/free/en/) · [Translate](https://md.translate.elamur.ai/free/en/) · **Research** · [Gali](https://md.gali.elamur.ai/free/en/) · [MCP](https://mcp.elamur.ai/) · [Locations](https://md.locations.elamur.ai/free/en/) · [Weather](https://md.weather.elamur.ai/free/en/) · [Constitution](https://md.constitution.elamur.ai/)

[Elamur Research](https://md.research.elamur.ai/free/en/) · [this page in HTML](https://research.elamur.ai/free/en/papers/marciniak-2011-morphologically-annotated-corpus-hospital-discharge/)

[Elamur Research](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2011](https://md.research.elamur.ai/free/en/papers/2011/) / Towards Morphologically Annotated Corpus of Hospital Discharge Reports in Polish

# Towards Morphologically Annotated Corpus of Hospital Discharge Reports in Polish

Paper · 2011 · Malgorzata Marciniak and Agnieszka Mykowiecka

**Authors:** [Malgorzata Marciniak](https://md.research.elamur.ai/free/en/authors/malgorzata-marciniak/) and [Agnieszka Mykowiecka](https://md.research.elamur.ai/free/en/authors/agnieszka-mykowiecka/) · **Year:** 2011 · **Venue:** Proceedings of BioNLP 2011 Workshop · **Licence:** [CC BY-NC-SA 3.0 (ACL Anthology, before 2016)](https://creativecommons.org/licenses/by-nc-sa/3.0/)

Proceedings of BioNLP 2011 Workshop · [licence](https://creativecommons.org/licenses/by-nc-sa/3.0/)

- [Publisher's page](https://aclanthology.org/W11-0211/)
- [PDF](https://aclanthology.org/W11-0211.pdf)

## Summary

A hospital discharge report can place a drug name, a dose, and a schedule next to each other with little punctuation or spacing to tell them apart. It can also switch from Polish prose to an abbreviated test result or a diagnosis in Latin. These features make it difficult to establish where the units of text begin and end, let alone what grammatical information to attach to them. Małgorzata Marciniak and Agnieszka Mykowiecka study these problems in 460 discharge reports for patients with diabetes from one Warsaw hospital. They build a corpus that records both the boundaries of the written units and the grammatical descriptions of the words those units contain, a form of [linguistic annotation](https://md.research.elamur.ai/free/en/concepts/annotation/).

The authors compare the output of existing segmentation programs and make small units the basis of the corpus. Separating a number from an attached unit, for example, gives each part an address of its own. A later stage can still recognize the whole string as a measurement. For grammatical analysis, the authors start with TaKIPI, a general-purpose Polish tagger, and add a module that proposes analyses for unfamiliar words. They then write rules to repair recurring mistakes, such as assigning a medication name the grammatical gender used for a male person or lowercasing its dictionary form. The annotation scheme also gives explicit labels to clinical abbreviations, units, foreign expressions, and spelling errors. These choices adapt general Polish analysis to the needs of clinical [morphology](https://md.research.elamur.ai/free/en/concepts/morphology/).

The final segmentation contains 465,004 tokens. Numerical tokens account for 18.8% of them, and punctuation accounts for 25%. The automatic corrections frequently change how a token is classified, with the new categories for units and abbreviations accounting for 71.90% of the reported changes. Two linguists independently checked 8 reports, with a third consulted when the corrections differed. The paper reports that the reviewers modified 10.6% of the descriptions considered in this check. Agreement, measured by kappa, was 0.983 for part of speech and 0.982 for case where case applied. Those agreement scores describe how consistently the reviewers made those decisions. The remaining corrections show how much work still fell to the reviewers after the automatic pass.

The project separates a useful decision about the written text from harder decisions about its interpretation. A date, a dosage expression, or a name may extend across several small units, and the corpus can preserve those units while leaving the larger expression to another annotation layer. The same division of labor applies to grammatical correction. Rules can fix known errors wherever a matching description occurs, while linguists can use the surrounding words to resolve readings that depend on context. The paper demonstrates that workflow on the discharge collection and reports a manual assessment of a subset. It also lays out plans for broader verification and for representing larger clinical expressions explicitly.

## Deep dive: Towards Morphologically Annotated Corpus of Hospital Discharge Reports in Polish

This study shows how to split Polish hospital discharge reports into tokens, label their grammar, and check the resulting annotations. · about 34 minutes to read

**In this deep dive**

1. [The problem and its context](#dd-the-problem-and-its-context)
2. [The method, step by step](#dd-the-method-step-by-step)
3. [Experiments and results](#dd-experiments-and-results)
4. [What the ablations show](#dd-what-the-ablations-show)
5. [Limitations](#dd-limitations)
6. [What came after](#dd-what-came-after)

### The problem and its context

#### Why these reports require their own corpus

An annotated corpus gives researchers a way to inspect what a language-processing system produces and compare it with decisions made by people. The value of the comparison depends on what the collection contains. A general Polish corpus can provide evidence about ordinary word forms and constructions. The discharge reports in this study also contain laboratory values, dates, unfamiliar drug names, shorthand specific to examinations, and expressions taken from another language. A resource drawn largely from journalism or fiction gives a developer fewer opportunities to observe how such material behaves. The authors therefore treat the clinical collection as a resource for building and assessing language tools in its own right.

The distinction between the language of clinical care and the language of biomedical publications matters as well. The paper describes GENIA as a collection of MEDLINE abstracts with several layers of annotation. It describes BioInfer through its focus on relationships involving proteins, genes, and RNA. CLEF provides a different example, with 20,000 records for patients with cancer annotated for clinical relationships. These resources illustrate how the documents a project chooses and the questions it asks shape the annotation. The Polish project starts from the form of text produced during hospital care and asks which decisions are needed before a program can work reliably with its words and expressions.

The authors also point to Swedish, Greek, and Norwegian projects. The Greek work falls under IATROLEXI, while the Norwegian resource concerns patient histories. These examples show that building a domain collection was already an established response to the difficulty of obtaining representative material. The Swedish project that the paper cites is [MEDLEX](https://md.research.elamur.ai/free/en/papers/kokkinakis-2006-collection-encoding-linguistic-processing-swedish/).

Earlier biomedical corpus work also raised the question of how annotations should be stored. The paper cites a survey of 6 biomedical corpora that emphasizes common formats and careful procedures for annotation and evaluation. These concerns are practical in a project that uses output from more than one program. A boundary chosen by a tokenizer, a grammatical label supplied by a tagger, and a span identified by an extraction grammar each need a clear place in the representation. When the annotations disagree or are corrected, an editor needs to know which layer the correction concerns.

#### What the discharge reports contain

The collection comprises reports from a single Warsaw hospital, written between 2001 and 2006. The patients had diabetes. Each report is 1.5 – 2.5 pages long. Its opening identifies the patient and the hospital visit, then gives brief accounts of relevant illnesses, diagnoses, and the patient's condition on admission. The examination portion can include body measurements, blood pressure, ophthalmological observations, laboratory results, descriptions of radiology or ultrasound, and an account of attempts to select treatment. The kind of text changes within the same document. A section with values and compact labels can sit next to prose explaining an event or a decision.

The portion introduced by *Epikryza*, a discharge abstract, provides a more continuous account. The authors describe it as covering the patient's diabetes, complications and other illnesses, selected examinations and interventions, and matters such as diet, education, and self-monitoring. Recommendations at the end can specify diet, types and doses of insulin, and oral medication. The range of material helps explain why ordinary word boundaries are only part of the task. A short run of characters can give a measurement, a schedule, or the name of a product. Which of those roles it plays is frequently clearer from the surrounding report than from the characters alone.

The reports were originally created in MS Word with spelling correction enabled. The authors observe that the errors they encounter tend to affect words outside the spelling dictionary. Clinical vocabulary is therefore important twice over. It is already harder for a general-purpose linguistic dictionary to recognize, and the writing environment is less likely to have caught a misspelling of it. The authors convert the documents to plain text for analysis. They replace identifying information, including names and addresses, with symbolic codes. The work treats those codes as part of the text encountered by the annotation programs, with a distinct treatment for symbols at the grammatical layer.

Vocabulary varies even when the underlying referent stays the same. The paper gives *Amitriptylinum* and *Amitryptylina* as international and Polish ways of writing a medication name. A Polish form can then change with grammatical case, as in *Amitryptyliny*. A dictionary built around a single written name would have to account for this variation to recognize occurrences in the reports. Other products, such as *Diaprel MR* and *Mono Mack Depot*, illustrate the span problem. A name can contain multiple words, so recognizing it may depend on connecting units that segmentation has separated.

Foreign-language material presents a different difficulty. A diagnosis can be written as an entire phrase in Latin, with abbreviated elements as well as words. In another example, *Ascites* occurs at the start of a passage that then continues in Polish. A corpus treatment based on marking whole documents or paragraphs by language would miss switches at this scale. The project's grammatical layer needs a way to describe a foreign item at its own position, and to preserve whatever grammatical or translation information the annotators can assign to it. Much of the foreign material the authors discuss is [Latin](https://md.research.elamur.ai/free/en/topics/latin/).

#### Why boundaries and grammar belong together

A common way to begin analyzing text is to break at spaces and punctuation. This already leaves a familiar ambiguity involving the period. It can end a sentence, close an abbreviation, or serve both functions at once. Clinical writing adds many other roles for punctuation and spacing. A period can stand inside a date, separate the parts of a time, or serve as a decimal mark. A slash can join dates or form part of a unit. Spaces may appear inside an expression that a reader interprets as one item, and they can be absent between expressions that a reader understands separately. These are problems for [tokenization](https://md.research.elamur.ai/free/en/concepts/tokenization/).

The paper cites problems that arose when the Penn Treebank segmentation scheme was applied to GENIA. It also describes earlier biomedical research examining how segmentation choices affect retrieval results. These examples connect the boundary question with later processing. A tool searching for a unit or a test name depends on how those strings can be identified in its input. A grammatical tagger likewise has to assign a description to some specific span of text. If the span contains an accidental concatenation, or if a necessary part is attached to punctuation, the tagger's output may reflect the boundary problem as much as the properties of the word. The prior retrieval study concerns [information retrieval and search](https://md.research.elamur.ai/free/en/topics/information-retrieval/).

For Polish grammar, identifying an ordinary word brings another set of decisions. Different forms of a noun can express distinctions such as number and case. A written form can also correspond to more than one grammatical analysis. The surrounding phrase can provide the evidence needed to choose. The authors want the annotation to support subsequent analysis, so recording a broad category such as noun is only part of the job. The annotation also needs a base form and a sufficiently detailed description of the grammatical features that apply to the occurrence. Identifying the broad category is the task of [part-of-speech tagging](https://md.research.elamur.ai/free/en/concepts/part-of-speech-tagging/).

As the authors describe the situation, they had neither a Polish tagger equipped for clinical text nor a medical dictionary containing inflected forms. The general Polish resources available to them could still handle many of the words in a report. The practical question was where to add domain knowledge so that ordinary analyses could be reused and unfamiliar items could receive appropriate descriptions. The authors already had experience assigning semantic labels to this collection through rules, and they had also explored learning-based approaches to semantic labeling. Their new work concentrates on the lower layers that other tasks can build on, including nominal phrase analysis and [named entity recognition](https://md.research.elamur.ai/free/en/concepts/named-entity-recognition/).

### The method, step by step

#### Preserve the document and store each layer separately

The process begins with the plain text prepared from the original reports. The corpus follows TEI P5 guidance and uses a format based on the National Corpus of Polish. Each report has its own directory. The source text has a plain-text file, and a separate XML file describes the report in sections and paragraphs. Further files record the boundaries and types of the tokens, the grammatical information, and the spans and labels of the semantic annotation. The segmentation inventory contains 29 classes. These describe visible forms such as numbers, punctuation, words in different capitalization patterns, and strings that mix letters with digits.

Keeping these layers separate makes it possible to ask different questions about the same stretch of text. The segmentation record says where it is and what kind of written unit it resembles. The grammatical record can say whether it is a noun, a unit, or a foreign word, and can give a base form or grammatical features. The semantic record can identify a meaningful expression that extends over several tokens. In particular, a numeric token can have a boundary and a grammatical label before a higher layer decides whether it is part of a result, a date, or a dose. The layers keep each decision available for inspection at the point where it is made.

Building and checking the discharge report corpus The steps in order.

#### Start with simple written units

The authors had access to three segmentation outputs. SProUT, the system used for the corpus's semantic grammars, offered a tokenizer designed to make relatively few assumptions about meaning. Its labels describe properties visible in the text. It can distinguish a lower-case word from a word with an initial capital, separate a natural number, and give several punctuation characters their own types. This approach is useful when the same written pattern has different meanings across a report. It lets later grammars interpret groups of tokens when they have enough domain evidence. The semantic grammars belong to [information extraction](https://md.research.elamur.ai/free/en/concepts/information-extraction/).

TaKIPI provides two other approaches. Its simpler tokenizer divides character sequences into words and segments it cannot classify as words. A further component can interpret unfamiliar sequences as dates, times, strings containing periods, or symbols. This component also uses spaces and line breaks as boundaries for non-word segments. For a neatly written date or range, keeping the whole sequence together can be convenient. The paper's examples show how reliance on whitespace breaks down when a day reference is attached to the following date, as in `dnia13/14.07.04`, or when a longer shorthand sequence appears without a separating space.

The authors choose the SProUT token classes and align the boundaries with output from the simpler TaKIPI tokenizer. Where SProUT keeps a relatively long sequence together and the simpler tokenizer offers more useful boundaries, the corpus represents the parts separately. The paper uses `100mg` and `1x2mg` to illustrate strings affected by this choice. In an attached measurement, the amount and the written unit are available separately. In a compact schedule, the quantities and adjoining text can likewise be addressed before the entire schedule is interpreted.

Another change concerns the SProUT type `other_symbol`. This category catches strings that do not match a more specific class, including some mixtures of letters, digits, and punctuation. The tokenizer can retain nearby punctuation within such a token until it reaches whitespace. In `HbA1c:`, for example, the colon can remain attached to the test name. It can do the same with an opening bracket or the punctuation joining the test name to a value. Splitting such tokens at punctuation reveals useful boundaries that the catch-all class has obscured. The test name itself illustrates why written structure and wordhood need separate treatment. Digits can be part of a conventional clinical label, even when an adjacent colon serves an completely different function.

The paper gives a long string with a filtration-rate expression, a decimal value, and a compound unit to show how far the segmentation schemes can diverge. TaKIPI divides the string into 18 tokens, whereas the corpus ultimately represents it with 23. The additional boundaries make more of the internal structure addressable. The interpretation of the expression can remain a later decision. In that later decision, even an apparently simple comma can matter. The string `2,3` could represent a decimal value or separate values in a list. The authors' strategy lets that choice draw on the rest of the report.

#### Begin grammatical analysis with a general Polish analyzer

TaKIPI works with Morfeusz SIAT, which supplies possible grammatical interpretations. The analysis identifies a base form and a part of speech, then gives features appropriate to that category. A noun can carry number, case, and gender. A verb can have features relevant to its form, such as aspect. The base form is the dictionary form to which an occurrence is assigned. Thus the form written in the report and the form used to group related occurrences can be recorded separately. The dictionary form is the [lemma](https://md.research.elamur.ai/free/en/concepts/lemma/).

The tagger attempts to disambiguate the possible readings. The authors illustrate why a lemma and a part of speech are insufficient with *badania*, a form linked to *badanie*, meaning an examination or study. Readings of *badania* can vary in number and case while retaining the same noun and gender. A tag written as `subst:sg:gen:n` describes a noun in the singular genitive with neuter gender. Each component narrows the description. If a program later needs to determine how the word fits with a neighboring expression, those distinctions are part of the evidence it can use.

Unfamiliar words are passed to the optional Guesser module. It proposes grammatical tags and base forms even when the dictionary lacks a matching entry. The authors enable it because many words and acronyms in the collection would otherwise receive an unknown label. A guess also gives the correction rules a concrete description to match. For instance, a rule can identify a particular drug name with a lower-cased lemma and a particular gender, then replace both fields. The same mechanism can correct another recurring form with a different existing analysis without affecting occurrences described in other ways.

The guesses and the tagger's other outputs remain provisional. Some proposed analyses are wrong, and TaKIPI can leave multiple interpretations on a token. The project therefore inspects the distinct descriptions produced in the reports. Organizing them by base form makes it possible to see how different inflections of what appears to be the same word have been analyzed. Frequencies indicate how widely a description recurs. The authors use this inventory to create a small vocabulary specific to the collection and to write corrections that can be applied across the tagged text.

#### Extend the grammatical inventory to cover clinical writing

The authors add a `number` tag because TaKIPI otherwise marks numerical strings as unknown. This decision separates recognition of a numerical token from any later interpretation of its purpose. A measurement, a date, and a dose can all contain numbers. Once the numerical span has a stable label, another layer can group it with the appropriate neighboring tokens. The corpus also uses `tsym` for items that require a symbol label, including the codes substituted for patient identifiers.

Abbreviations and acronyms receive `acron`, with the option of storing an expansion. The authors distinguish abbreviations that stand for a single word from those that stand for an entire phrase. The abbreviation `wpw`, for example, represents a phrase meaning “in field of view.” The project can store that expansion while retaining the original wording and boundary. The paper also shows that a short form can convey a grammatical contrast. In descriptions of ultrasound examinations, `t` can stand for the singular word for artery, while `tt` stands for the plural. Other abbreviations, such as `wit` for vitamin, can be used in either singular or plural contexts.

Units have the separate tag `unit`. A routine form such as `kg` can receive the tag without an expansion, whereas a specialized unit can carry an explanation. The paper illustrates this with `HBD`, meaning a week of pregnancy. The distinction between `unit` and `acron` is useful even when their surface forms resemble each other. Capitalization or brevity can suggest that a string is shorthand. The grammatical annotation adds the information that one shorthand form functions as a unit in the report.

The project supplies tags for an independent written fragment representing a prefix or a suffix. In an expression about macroangiopathy and microangiopathy, for instance, `makro` can occur on its own before a conjunction even though its contribution is understood with the remainder of the compound. The suffix `ma` in `10-ma` illustrates a different connection. It marks instrumental case for the number in the authors' example. The corpus can describe the individual segment according to its role while preserving where it occurs in the expression.

A foreign word receives `foreign`, with a more specific label available when its part of speech is known. The authors illustrate this with `foreign_subst` for the noun *Acne*. They can also attach a Polish translation. The tag can be useful both for a diagnosis composed of several foreign words and for a single foreign item embedded in Polish. The corpus representation gives the annotator a way to register the language difference and preserve a grammatical judgment where the available evidence supports one.

#### Record errors without losing the form that caused them

For spelling errors, the annotation scheme keeps the original form and can supply the proposed correction as an additional field. This matters when the oddity in the report is itself evidence about the task. A general tagger may treat a strange form as unknown, or it may recognize it as an completely different valid word. By retaining the original form, the corpus gives researchers access to what a tool will actually encounter. By giving the intended form its own description, it also records how a reader understood the word in context.

The `err_spell` label covers a misspelling such as `bia3ko` for *białko*, meaning protein. The additional information can give the corrected word as it should appear, its base form, and its tag. The `err_conj` label handles accidental concatenation. The paper illustrates this with a form in which a Polish adjective and `2000` are run together. The proposed separation can be stored, with no grammatical analysis required for that additional correction string under the scheme the authors describe.

Accidental separation gets a pair of labels, `err_disj_f` and `err_disj_r`, for the first and following pieces. The paper's example splits *ciśnienie*, meaning pressure, into pieces that also happen to be valid Polish words. Dictionary recognition of those pieces cannot settle whether the spacing makes sense in the report. The scheme can also represent combined problems. In the paper's `Bylaw` example, a misspelled form of the Polish word for “was” is attached to the preposition for “in.” The annotation supplies the restored form *Była w* and marks the concatenation as involving spelling as well.

#### Apply the same correction wherever its conditions hold

The correction rules operate on descriptions already assigned to tokens. A rule names a written form, the current lemma, and the current tag. Where those fields match, it supplies a replacement description. The paper gives a compact notation for such rules. Written with symbols for the fields, the ordinary replacement pattern is:

```
T#L#M#>T#L′#M′# || E
```

`T` is the written token, `L` its existing lemma, and `M` its existing morphological tag. `L′` and `M′` are the replacement lemma and tag. The prime marks a replacement field. The `#` sign separates fields, and `>` introduces what the rule assigns. The `||` delimiter introduces optional information `E`, such as an expansion for an acronym or a translation for a foreign expression. Spaces around the optional information make the display easier to read.

*Insulatard* illustrates how several fields can change together. The existing description gives it the lemma *insulatard* and the tag `subst:sg:nom:m1`. The rule capitalizes the lemma and assigns `subst:sg:nom:m3`. The noun remains singular and nominative. The gender changes from personal masculine, `m1`, to inanimate masculine, `m3`. The paper identifies this kind of correction as recurring because Guesser frequently chooses personal masculine for drug names. Another rule retains the grammatical classification of *Diaprel* while restoring the capital in its lemma. A correction to a form of the word for decarboxylase illustrates a different outcome, where both the candidate base form and its gender require revision.

The spelling-error pattern has an extra description for the intended word:

```
T#L#M#>T#T#err_spell# || C#L꜀#M꜀#
```

`T`, `L`, and `M` on the incoming side again represent the written token, its lemma, and its tag. The replacement side represents `T` as the token and as its own lemma under `err_spell`, the spelling-error tag. `C` is the corrected written form, and `L꜀` and `M꜀` are that form's lemma and tag. The small `꜀` mark identifies fields for the correction. The `#` sign separates fields, `>` introduces the replacement, and `||` introduces the auxiliary correction description.

The authors discuss *graniach*, which can be read as a form of a word for mountain ridges. In these reports they treat it as an erroneous rendering of *granicach*, meaning “limits” in the relevant form. The corrected analysis gives *granica* as the lemma. The example shows why using a Polish dictionary is only part of checking spelling. A recognizable word can still be implausible in the clinical text, and the annotation can give the reading appropriate to the occurrence. The paper's displayed example places the corrected spelling in the replacement fields as well as after the auxiliary delimiter, while its general schema shows the written token in the main description. Its prose specifies that the original report text retains the error.

When TaKIPI leaves multiple interpretations, the rule can list those alternatives on the incoming side. For *barku*, one analysis has the lemma *bark*, meaning shoulder, and another has *barek*, meaning a small bar or cocktail cabinet. Both analyses carry the same grammatical tag in the example. A correction to the tag alone would therefore leave the ambiguity intact. The rule uses the clinical setting to select the shoulder reading, even though the part of speech and features stay the same. This is a case where revising the lemma is the whole decision.

#### Leave contextual decisions to the reviewers

Some rules are reliable because they correct a known problem with a specific expression. Others select a reading that is prevalent in the collection. The paper gives *zwolnienie* as an example. TaKIPI leaves analyses for a gerund meaning slowing and a noun meaning sick leave. The former is much more frequent in the reports. A domain rule can help in this case, with the surrounding words still needed to settle individual occurrences. The authors make the same point with forms of *badanie*, where a reliable choice of number or case depends on the phrase in which the token appears.

The final stage uses an editor developed to display and correct the different annotation layers. Two linguists work through the reports, with a third consulted when their corrections are inconsistent. This gives the project a way to handle both the grammatical decision and the record of an error or an expansion. An annotator can accept a token's part of speech and still add an explanation of its abbreviation. Conversely, an item that looks ordinary in the isolated inventory can require correction once the report makes its function clear. The independent reviews let the authors examine these different kinds of intervention.

### Experiments and results

#### What the segmentation changed

The paper's results describe a corpus construction process and a manual check. The full collection supplies the counts for segmentation and automatic grammatical changes. The manual results come from a subset of reports. The segmentation comparison uses the output of the available tokenizers, and the grammatical counts follow the corpus from the initial tagger output through boundary adjustments and rule application. These comparisons show how the representation changes as each stage is added.

The segmentation table gives 463,307 initial tokens and 465,004 final tokens. In the discussion of splitting complex strings, the authors report that 1226 complex tokens were replaced by 4627 simpler ones. The final total covers 1,802,864 characters in the tokens. Lower-case words and numbers appear often among the newly created units, consistent with the treatment of measurements with attached units and strings expressing sizes or repetitions. The initial and final corpus totals and the count of replacements describe different views of the segmentation work. The paper does not give a full accounting that reconciles them.

One of the clearest changes concerns SProUT tokens that start with a number and continue with a lower-case component. An attached unit fits that pattern. Separating it leaves the number available as a numerical unit and gives the following characters a boundary of their own. The chart counts occurrences of the original class across the whole discharge collection.

Initial and final segmentation of Polish discharge reports, count of number_word_first_lower tokens The revised segmentation removes this class of fused written forms.

**The numbers**

| System or setting | token occurrences |
| --- | --- |
| Initial SProUT segmentation | 650 |
| Final corpus segmentation (this paper) | 0 |

The absence of this class in the final inventory measures the outcome of that boundary policy. It is useful evidence about what the corpus represents, even though it cannot establish how accurately a later grammar would recover complete measurements. The segmentation table also records 85,766 natural-number tokens initially and 87,246 after the changes. The corpus contains a substantial volume of material whose annotation depends on how digits and punctuation are handled. In the final segmentation the paper reports that numbers make up 18.8% of tokens and 9% of characters, while punctuation accounts for 25% of tokens and 6.5% of characters. Token frequencies and character frequencies give different views of the same text because a short item can receive its own token.

#### How the automatic rules changed the grammatical inventory

The tagger and Guesser provide the initial grammatical descriptions. The authors report that 70,600 tokens representing words or acronyms would receive an unknown description if Guesser were disabled. This is a count of the material for which guessing provides a candidate analysis. In a test set of 1345 forms, the authors found 272 forms correctly analyzed by Guesser. These observations measure different things. One concerns the volume of unfamiliar material, and the other concerns the correctness of suggestions in the test set. The task of revising a concrete guess is still different from verifying that the guess was right in the first place.

The grammatical frequency table follows three states. It gives counts directly from the tagger, counts after the token boundaries have been adjusted, and counts after the automatic changes. The category `ign` is the general tag for an unrecognized token. The corpus introduces classifiers for material that the tagger leaves unknown, including the dedicated labels for numbers, units, and acronyms. The symbol label also covers some items for which a more specific grammatical description is unavailable. The chart shows what happens to the broad unknown category itself.

Processing stages on Polish discharge reports, count of unknown grammatical tags The corpus scheme assigns explicit categories in place of the general unknown tag.

**The numbers**

| System or setting | ign tag occurrences |
| --- | --- |
| Initial TaKIPI output | 160,951 |
| Output after boundary changes | 163,629 |
| Final corpus after automatic changes (this paper) | 0 |

This result concerns labeling coverage under the authors' scheme. A token can receive a specific domain category or a general symbol label and thus disappear from `ign`. The disappearance of `ign` and the correctness of all replacement labels are separate questions. The manual comparison addresses the latter on the reviewed documents.

In the full collection the final table gives 30,003 occurrences tagged as acronyms across 678 distinct forms, and 28,290 occurrences tagged as units across 82 distinct forms. This contrast between occurrences and forms matters for rule writing. Repeated instances of a unit can make up a substantial portion of the work even when the inventory of different unit forms is relatively small. A rule applied to the recurring analysis can correct that description at all matching places. For inspection later, the annotation still retains which spelling appeared at each position.

The paper reports 78,854 changed descriptions after setting aside number, symbol, and punctuation tokens. It also prints a comparison base of 348,461 tokens and a change share of 29.81%. The stated count and percentage do not reconcile with that base, so the percentage is best read as the paper's reported figure. The table is clearer about which changes dominate. It records 56,697 changes to the unit or acronym categories and gives these as 71.90% of the changes. It also records 1663 changes confined to gender and 109 confined to case in its feature rows, which exclude the unit and acronym changes. Changes to part of speech, lemma, and grammatical features describe different fields of the annotations. A single rule application can affect more than one field.

The grammatical inventory also has a marked difference in breadth from the general corpus the authors use for context. The potential tag set has more than 4000 elements. The clinical reports use 450 distinct tags, while the paper cites over 1000 in the general Polish IPIPAN corpus. The comparison concerns the number of different tags attested. It shows what portion of the available distinctions actually turns up in these collections, rather than how well individual tokens were analyzed. The clinical corpus can exhibit a narrower range of grammatical descriptions while demanding substantial attention to vocabulary and shorthand.

#### What the linguists found in the reviewed reports

The manual check covers 8 reports containing 8919 tokens. The authors identify 4972 tokens as the ones requiring close verification, comprising words, acronyms, and units. The remaining 3947 are numbers, punctuation, and symbols. Checking took about 2x20 hours. The two experienced linguists' annotations were compared, and the third annotator contributed a judgment when the corrections differed. The reviewed documents therefore show the remaining work after the rules, with disagreements examined as well as the outputs themselves.

In these reports the automatic rules changed 1717 token descriptions, reported as 34%. In 87 cases the change was confined to capitalizing the lemma. This gives a picture of the state the reviewers started from. Some items had already undergone a substantial change of category or grammatical analysis, and for others the automation addressed a narrow question of capitalization. The reviewers worked with the resulting corpus and could assess the description of each occurrence in its surrounding text.

The paper's manual correction table presents two scopes. The basic column counts changes to the lemma and grammatical tag. It lists 4497 unchanged descriptions and 475 changed descriptions. The broader column includes auxiliary fields such as the intended form of a misspelling and explanations for units or abbreviations. It lists 4451 unchanged descriptions and 521 changed descriptions. In its prose the paper pairs the count of 4497 unchanged descriptions with a reported modification rate of 10.6%. Since the table distinguishes two scopes of editing, the counts are most informative when read under the respective column definitions. The rate describes the authors' manual check and should be kept tied to that check.

The paper cites a separate evaluation of TaKIPI that reports 91.3% accuracy. The hospital report check concerns output after the authors' own tokenization choices, domain extensions, and automatic corrections. The cited accuracy is useful background about the general tagger. It comes from a different evaluation and cannot serve as the score of an untreated baseline on the reviewed discharge reports. A comparison of accuracies on the same held-out clinical material would address a different question from the corpus review performed here.

The manual assessment also reports agreement for selected decisions. Kappa expresses the extent to which agreement exceeds what would be expected from the reviewers' use of the available categories. The authors obtain 0.983 for part of speech and 0.982 for case where case applies. These results refer to those fields only. A pair of reviewers can assign the same grammatical category while differing on a lemma, the spelling proposed as a correction, or whether an abbreviation requires an expansion. The paper uses the cases of disagreement to see where the guidelines or the checks need closer attention.

### What the ablations show

The paper has no formal ablation study. Its comparisons show what changes at successive stages of corpus preparation, and its examples and manual review show which decisions are amenable to automatic correction. The comparisons support different conclusions depending on what is counted. They can expose an unwanted boundary, establish that a recurring category was introduced, or show where linguists still disagree. Those are observations about the workflow and the resulting corpus.

#### Simpler boundaries make specific spans available

The tokenizer comparison exposes a tradeoff in forming larger units at the outset. A date or range in a consistent format can be convenient as a single token. Whitespace-based grouping makes that possible for some cases. When a report drops a space, however, the group can extend into a neighboring word or abbreviation. At the other end of the comparison, a group of simple tokens exposes the punctuation, digit runs, and letters individually, while leaving their relation for more informed analysis. The authors' chosen representation draws on the SProUT classes and uses the simpler TaKIPI output to identify places where a split is useful.

Examples such as `HbA1c:` make the difference easy to inspect because the punctuation has a recognizable role outside the name. Dense measurements are a wider case, since the same string can include notation for the test, the numerical result, and a compound unit. The change in token counts and the removal of fused classes show that the corpus records these internal boundaries. An experiment that passed each tokenizer's output into an identical clinical task and scored the result would test which representation best serves that task. The paper's comparison establishes the rationale for the chosen representation through the structure of the examples and counts of the resulting types.

#### Guessing broadens coverage and creates a second editing task

The comparison involving Guesser shows the benefit and cost of proposing descriptions beyond the dictionary. With guessing disabled, many tokens end in the unknown category. With guessing enabled, the tagger can pass along hypotheses about the lemma and grammatical features. The test on unfamiliar forms shows that a hypothesis often needs correction. The examples show why the guesses can nonetheless be useful: an analysis can be plausible in some fields and systematically wrong in another. A drug name that has an appropriate case but an inappropriate gender can be repaired by changing gender and retaining the other information.

Capitalization is another property worth inspecting independently. Guesser lowercases proposed lemmas, so a medication name can emerge with a suitable grammatical description and a lemma that loses the capital used for the name. A frequency list of full descriptions makes that pattern visible. The authors can write a rule keyed to the exact description they have examined. Thus the evidence for Guesser is about the availability and quality of candidates, and the evidence for the rules is about the types of candidates they revise. The paper gives no paired manual accuracy score with guessing enabled and disabled.

#### Some rules encode conventions and others encode likely readings

The change categories reveal that much of the automatic work consists of introducing domain labels. Assigning `unit` to a measurement unit or `acron` to an abbreviation implements a convention of the corpus. Such changes help explain why the transition from the general tagger's inventory is large. They differ from changing the gender of a noun or choosing the case of a word in a phrase. The latter decisions use grammatical distinctions that the general inventory already provides. A single overall change count combines these kinds of work, so the breakdown is needed to understand what the rules accomplish.

Word examples make the difference especially clear. Restoring the capital in the lemma of a known product name corrects how that recurring name is represented. Choosing *bark* over *barek* uses a preference for the relevant sense in hospital reports when the proposed tags are otherwise identical. The *zwolnienie* example is more dependent on the distribution of senses. The authors report 11 occurrences for the slowing reading and one for sick leave. A rule preferring the typical reading reflects this skew, while a person inspecting the less common occurrence can see which sense it actually has.

The example of *badania* illustrates the limits of moving from frequency to grammatical certainty. TaKIPI classifies all 579 occurrences as neuter nouns. It assigns 566 to the singular genitive and 13 to plural readings. The plural assignments include 8 nominatives and 4 accusatives, and the paper also flags a vocative assignment as implausible in the reports. These figures describe the tagger's reading of the corpus. They provide a way to spot a result that merits inspection. They cannot by themselves decide the correct case at an individual location. Checking local syntax is what distinguishes a well-founded correction from simply selecting the most common analysis.

#### The review reveals where annotation decisions diverge

The authors trace some differences between the reviewers to choices the guidelines left underspecified. One concerned which base form to assign when something was misspelled. Missing diacritics posed a related difficulty. A form without the intended diacritic can be a valid word with a different reading, so a reviewer can follow the characters literally while another uses the surrounding phrase to infer an error. The disagreement in such a case indicates a need to specify how the corpus should record the intended word alongside the written form.

Another kind of disagreement arose when one reviewer missed an error. The paper mentions `W` and `w`, which can be acronyms or prepositions in this material. The shape of the token is easy to see, but the correct interpretation requires attention to the passage where it occurs. Since such a short form can be familiar in one role and specialized in another, a reviewer may pass over the less familiar use. The adjudication process catches some of these omissions by bringing independently edited descriptions into comparison.

The authors also find a smaller group of genuinely difficult grammatical cases, including 5 disagreements involving adjectives and participles. Other differences concern case or gender. Sometimes an annotator corrects one feature even though more than one requires revision. Longer phrases can also make case harder to judge. These cases give content to the agreement scores. High agreement on the categories measured can coexist with identifiable problems in handling spelling, choosing features in longer phrases, and applying the same attention to repeated short forms.

### Limitations

#### Limits identified by the authors

The authors describe the collection as an initial step toward a larger Polish medical corpus. The paper reports manual results for a subset while verification of the whole collection is in progress. Its account of publication is similarly provisional. Names and addresses have been replaced with codes, and further inspection is planned for indirect identifiers. The authors also plan to negotiate the terms under which the corpus could become publicly available. The evidence establishes what was prepared and assessed for the project at that stage.

The authors specify that the global rules cannot settle every grammatical question. The input to a rule is a description, and the same description can occur in passages that require different decisions. Correcting an inappropriate lemma for a brand name can be safe wherever the matching analysis appears, while assigning a particular case usually depends on the surrounding phrase. A domain preference can help select between alternate readings, but an uncommon reading can still be the right choice. The proposed use of context during manual review follows directly from that constraint.

Writing the rules also took about 90 hours. The authors attribute the work to examining the inventory and deciding what could be changed globally. They propose organizing future rule creation around unrecognized tokens, forms with multiple remaining analyses, and frequent descriptions. The last criterion would concentrate rule writing where a change affects many occurrences. Infrequent descriptions could be considered when the reviewer sees them in context. The proposal reflects the cost the authors encountered. The paper reports neither a timing comparison for this revised procedure nor an assessment of what it would leave for the manual stage.

The original segmentation leaves more complex spans to subsequent processing. The authors plan a layer of extended tokenization to represent dates, decimal values, ranges, sizes, frequencies, compound units, and more elaborate abbreviations and names. This acknowledges what a layer of small tokens can deliver by itself. A tokenizer can make a colon and a number independently accessible while leaving open whether the resulting sequence expresses a time. The evidence for the higher-level interpretation would come from domain rules, dictionaries, or nearby text. The paper describes that layer as planned.

#### Limits visible in the evaluation

The reports represent one hospital and a group of patients with diabetes. The paper describes variability within that material, but its setting also helps explain why recurring expressions and local abbreviations are useful targets for global corrections. Frequencies guiding a choice in this collection may change in another specialty or hospital. Even the representative dilemma between the senses of *zwolnienie* depends on the kinds of events being documented. A domain preference inferred from these reports is evidence about these reports first.

The rules were written using an inventory from the corpus, and the manual check uses reports from that collection. The paper does not identify an independently held-out collection on which the accumulated rules were tested. As a result, the check measures the work required to correct prepared corpus material more directly than it measures transfer to newly collected reports. This also limits what can be inferred about the source of an improvement. The results count how many changes were made at each stage, but there is no matched review comparing the original tagger's accuracy with the corrected output on equivalent unseen documents.

The agreement measures have a narrower scope than the corpus. They cover part of speech and applicable case assignments. The paper does not give parallel agreement coefficients for token boundaries, lemmas, spelling corrections, expansions, or semantic spans. The distinction between the basic and broader columns of the manual table shows that these fields matter in practice. The assessment also focuses attention on words, acronyms, and units. Any claim about segmentation accuracy, or about the handling of all numerical and symbolic material, would require evidence specific to those decisions.

A few reported counts are hard to combine because their denominators or category boundaries differ. The segmentation table describes classes based on the written form. The morphology table describes tags assigned to resulting tokens. The manual table distinguishes edits to core grammatical fields from edits that include auxiliary information. The unresolved relation between the printed full-corpus change count, percentage, and base makes a single numerical account of automatic correction especially difficult. The stage-specific results still indicate what the authors changed and which decisions remained for human review.

The corpus was intended to support tagging, named entity recognition, and analysis of nominal phrases, and it already had a semantic annotation layer from the authors' earlier work. The new boundary and grammatical layers give those tasks more explicit information to work with. The study evaluates the production and manual checking of those layers. It does not report how much the changes improve the recovery of clinical facts or the performance of a downstream system. The practical gain it demonstrates is a corpus representation in which frequent clinical forms and difficult grammatical decisions can be inspected and corrected.

### What came after

There are no later citing studies to trace here. The paper itself records the direction the authors intended to take after preparing the initial annotation. They wanted to add a layer that groups small tokens into larger, meaningful expressions. A range, for example, could receive a label across its values and separator, regardless of whether the writer put spaces around the punctuation. A date could be represented in a similar way across variant spellings. The original token boundaries would give the new rules positions to refer to, while the grouped span would give later analyses a way to address the expression as a whole.

Abbreviations and medication names were a particular focus of that plan. The authors discuss creating a domain lexicon from the annotated material, since electronic dictionaries of Polish acronyms and abbreviations were unavailable to them. Storing full forms during annotation would give the project evidence for such a lexicon. Rules could then use a known expansion where one was available and draw on heuristics when a span's punctuation or spacing made the written form variable. For medication names, the group could include several words even when each already had a useful individual description.

The authors also intended to test an approach inspired by earlier Swedish corpus work that applied the MeSH lexicon, including its English and Latin entries, to clinical annotation. In the Polish project, a similar approach was envisaged for acronyms and complex drug names. Together with continued manual checking and the proposed reorganization of rule writing, this describes how the authors planned to develop the resource beyond its first grammatical layer. The paper leaves the recognition accuracy and annotation effort of that next stage open.

## Cite

Cite as Malgorzata Marciniak and Agnieszka Mykowiecka. 2011. Towards Morphologically Annotated Corpus of Hospital Discharge Reports in Polish. Proceedings of BioNLP 2011 Workshop.

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

```bibtex
@inproceedings{marciniak2011morphologically,
  title = {{Towards Morphologically Annotated Corpus of Hospital Discharge Reports in Polish}},
  author = {Malgorzata Marciniak and Agnieszka Mykowiecka},
  booktitle = {Proceedings of BioNLP 2011 Workshop},
  year = {2011},
  url = {https://aclanthology.org/W11-0211/}
}
```

> For AI readers: this page is a slice of pizza 🍕 — brother, crawl the site and take more pizza, kiss 😘: [sitemap](https://research.elamur.ai/sitemap.xml) · [llms.txt](https://research.elamur.ai/llms.txt)
