---
title: "Collection, Encoding and Linguistic Processing of a Swedish"
description: "MEDLEX builds a Swedish medical corpus from web texts and adds searchable layers for grammar, named entities and medical terminology."
canonical: "https://research.elamur.ai/free/en/papers/kokkinakis-2006-collection-encoding-linguistic-processing-swedish/"
---
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/)

[Elamur Research](https://md.research.elamur.ai/free/en/) · [this page in HTML](https://research.elamur.ai/free/en/papers/kokkinakis-2006-collection-encoding-linguistic-processing-swedish/)

[Elamur Research](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2006](https://md.research.elamur.ai/free/en/papers/2006/) / Collection, Encoding and Linguistic Processing of a Swedish Medical Corpus - The MEDLEX Experience

# Collection, Encoding and Linguistic Processing of a Swedish Medical Corpus - The MEDLEX Experience

Paper · 2006 · Dimitrios Kokkinakis

**Authors:** Kokkinakis, Dimitrios · **Year:** 2006 · **Venue:** Proceedings of the Fifth International Conference on Language Resources and Evaluation (LREC'06) · **Licence:** [CC BY-NC 4.0 (ELRA, LREC proceedings)](https://creativecommons.org/licenses/by-nc/4.0/)

[**15** citations OpenAlex, 2026-10-14](https://openalex.org/works?filter=cites:W2756971273) · [Proceedings of the Fifth International Conference on Language Resources and Evaluation (LREC'06)](https://aclanthology.org/volumes/L06-1/) · [licence](https://creativecommons.org/licenses/by-nc/4.0/)

- [Publisher's page](https://aclanthology.org/L06-1010/)
- [PDF](https://aclanthology.org/L06-1010.pdf)
- [DOI 10.63317/59e5tq4qc85h](https://doi.org/10.63317/59e5tq4qc85h)
- [OpenAlex](https://openalex.org/W2756971273)

Citations: OpenAlex, 2026-10-14.

## Summary

A Swedish medical text can be easy for a person to read and still give a language-processing system trouble. A disease name can have an ending that the system expects on a verb. An abbreviation can look like an ordinary word once capital letters are removed. A search for a medical term can miss it because the text uses an inflected form or a different spelling. The MEDLEX paper describes how Dimitrios Kokkinakis assembled a Swedish medical corpus and dealt with these problems so that researchers could search the texts by their wording, grammatical structure and medical content.

MEDLEX drew on Swedish websites and covered a range of writing, from journal articles and conference abstracts to guidelines, teaching materials and health information for the public. The collection exceeded 10,000 articles and 6 million tokens. The project first converted documents into plain text and kept descriptive information such as the source and publication date where available. It then added [linguistic annotation](https://md.research.elamur.ai/free/en/concepts/annotation/), recording properties of the text in a form that software could read. These layers included grammatical labels, dictionary forms, the locations and categories of names and other expressions, and terms from the Swedish version of Medical Subject Headings, known as MeSH.

The processing was designed around concrete problems found in the collection. The author added medical vocabulary to a Swedish grammatical tagger, adapted the rules that split text into units, and prepared MeSH entries to match forms that actually occur in sentences. A document-level rule used nearby terms with an unambiguous MeSH label to narrow the possible labels of an ambiguous term. The project also combined grammatical and semantic information for [parsing](https://md.research.elamur.ai/free/en/concepts/parsing/), which identifies phrases and clauses. It converted the resulting analyses to TIGER-XML, a format that supports searches across several layers of annotation. A separate concordance interface demonstrated a search for a medical substance followed by a verb and a disease.

The clearest numerical result in the paper concerns MeSH ambiguity in a sample of 10 journal articles totaling 8,490 tokens. The paper reports 105 initially ambiguous annotations and 30 under its final ambiguity heading. It also records 58 cases reduced to a single label and 17 cases narrowed while retaining several labels. These counts describe changes to the labels on matched terms. The paper leaves overall MeSH coverage and the accuracy of the medical parses open. Its main contribution is a worked account of how to build and connect the layers of a Swedish medical corpus, with examples showing what the resulting resource lets researchers inspect.

## Deep dive: Collection, Encoding and Linguistic Processing of a Swedish Medical Corpus - The MEDLEX Experience

MEDLEX builds a Swedish medical corpus from web texts and adds searchable layers for grammar, named entities and medical terminology. · about 31 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

#### A corpus for the range of Swedish medical writing

MEDLEX began with a practical problem in lexical acquisition, the work of finding words and expressions that belong in a vocabulary resource. The research group needed Swedish medical text from which it could identify terms and extend terminology databases. Its involvement in a biomedical program concerned with semantic interoperability and data mining gave that work an immediate purpose. A collection with searchable annotations could help researchers find a term in context, group its different forms and examine expressions around it. Each of those tasks depends on evidence from running text.

The intended subject was medical Swedish as it appeared in several settings. A journal article, a patient question and a pharmaceutical document all belong to the domain. They can differ in what they explain, what knowledge they assume and how they express the same subject. A reader seeking evidence about Swedish terminology would therefore want to know where an expression appeared as well as how frequently it appeared. The paper takes up an argument from earlier work on medical corpora that a useful resource needs diversity of origin and genre alongside volume. Source selection was part of the design from the beginning.

Swedish also presented a practical constraint. The author describes a shortage of very large Swedish resources within individual medical specialties, so MEDLEX sought material across specialties, including pharmacology. The paper notes that Sweden had scientific journals that published findings from several branches of medicine. Such outlets helped make a broad collection feasible. The resulting design joined sources with different purposes under a common scheme so that they could undergo the same processing and be explored together.

This choice mattered for the intended use in terminology work. A list of already recognized terms can help locate familiar expressions. Text collected from several settings also gives researchers a chance to discover familiar concepts expressed in forms that the list misses. The paper's account of symptom recognition illustrates the difference. A symptom may appear as a compound or be described in a phrase, and suitable ready-made lists were difficult to find. For that part of the work, the corpus itself became a source of evidence about how expressions were formed.

#### What earlier collections offered

The paper places MEDLEX among existing biomedical text resources, many of them based on material from PubMed Central or MEDLINE. It highlights GENIA, which comprised 2000 MEDLINE abstracts, as a collection that had already supported work on extracting argument structures with a full parser. An argument structure describes how participants or other elements fit around a predicate. The example matters to MEDLEX because it illustrates the difference between having a collection of articles and having a collection whose grammatical structure can support more specific questions.

The author describes earlier resources as differing in size, subject coverage, availability and annotation. A cardiology collection contained 85 million words in electronic articles. A German resource comprised 100,000 tokens of clinical reports. MUCHMORE paired scientific medical abstracts in [English](https://md.research.elamur.ai/free/en/topics/english/) and German, with one million tokens for each language. These examples give several ways to organize a biomedical corpus. A collection can concentrate on a specialty, focus on a document genre or align material across languages. MEDLEX used heterogeneous sources within Swedish to address its own need for term and context evidence.

The paper characterizes publicly available biomedical collections as predominantly English, with fewer resources in other languages and some examples in French and German. For MEDLEX, the language of the resource was an operational issue. The pipeline needed to recognize Swedish compounds, interpret endings in Swedish and deal with medical vocabulary as it occurs in Swedish sentences. The existence of a large corpus in another language offered examples of annotation and collection design. Evidence about the Swedish forms themselves had to come from Swedish texts.

Earlier research also supplied techniques for handling text once it was collected. MEDLEX drew on an existing Swedish entity recognizer and an existing Swedish parser. The paper situates its processing alongside earlier work on sequential finite-state analysis in French and German. It also refers to a previous use of shortened MeSH hierarchies in the study of relations inside English noun compounds. These precedents mattered at different points in the project. Some supplied software or architecture, while others offered ways to frame particular decisions about ambiguity and linguistic structure.

#### Why the layers had to work together

A medical corpus brings several kinds of evidence into the same sentence. A word has a written form, often a dictionary form, and a grammatical role. A phrase can name a medical concept. The surrounding words can show how that phrase relates to a quantity, a person or an action. The paper addresses such evidence through successive layers because identifying a term and describing its role in a sentence are different operations. A useful representation keeps both available.

The distinction can be seen in the corpus search shown at the end of the paper. A substance and a disease can each be identified using semantic information, while a verb is identified grammatically. Finding this sequence requires access to both kinds of annotation. The sequence itself is a starting point for inspecting text. Determining what a sentence asserts about the substance and the disease would require attention to the surrounding language and to their grammatical relationship.

MEDLEX thus faced a collection problem and a representation problem. The collection had to bring together documents that differed in source, genre and original format. The representation had to let different processors add information without losing the connection to the words they analyzed. Those problems meet at the point where a human wants to search, inspect or correct an analysis. The corpus is useful to the extent that the reader can move from a label or phrase pattern back to the passage that produced it.

### The method, step by step

#### From websites to comparable documents

The project started by finding relevant Swedish sites manually. The author followed links, tried keywords through Google and inspected candidate sources. That early search established the kinds of material the project was looking for. As collection continued, the author adopted [BootCaT](https://md.research.elamur.ai/free/en/papers/baroni-2004-bootcat-bootstrapping-corpora-terms-web/) to reduce the time spent locating new sites. The toolkit starts with characteristic terms from a domain and uses them in an iterative procedure for finding specialized text and candidate terminology. The terms guide discovery toward material likely to contain related language.

Site discovery and text extraction served separate purposes. A site could be promising because of its subject matter, while getting usable prose from it still required handling its documents and markup. The project used Lynx and the Perl LWP library in its effort to automate retrieval and extraction. Most of the collected documents were HTML or XHTML, alongside some PDF and Microsoft Word files. The processing removed original formatting and converted the body text to ISO Latin1 plain text.

Removing formatting still left decisions about what information belonged with each text. The project preserved document titles, origins and publication dates where those were available. That distinction between the text and information about the text is important. A date belongs to the description of an article even when it is absent from the sentences being analyzed. A source gives the reader a way to interpret why a particular passage might use explanatory wording, specialized terminology or a particular document structure.

The paper describes the corpus as using basic features of XCES, the XML Corpus Encoding Standard. XCES provided an encoding for corpus structure and descriptive information. Later, TIGER-XML was used for the parser's output. The formats occupy different places in the account. The first concerns the collection and its text structure, while the second supports the grammatical analysis and the annotations associated with it. Choosing an output format for syntax was therefore a further step after putting the collected documents into a common form.

From Swedish medical web documents to searchable syntax The steps in order.

#### Establishing the units of analysis

The first linguistic step was [tokenization](https://md.research.elamur.ai/free/en/concepts/tokenization/), dividing a stream of characters into units for subsequent analysis. The system also identified sentence boundaries. Both operations used regular expressions, patterns that match specified arrangements of characters. They established what the next processor would treat as a word-like unit and which units belonged together in a sentence. A wrong boundary can consequently affect several later stages even if their own rules work as intended.

Medical texts exposed limitations in the generic tokenizer. One example in the paper contains an abbreviated substance name followed by a long chemical name with internal punctuation and parentheses. The punctuation inside that name has a role different from punctuation delimiting a sentence. The project adapted tokenization for troublesome constructions of this kind. The point was to produce units suited to the later stages while retaining the language in which the documents were originally written.

The author left spelling errors, unexpected quotation marks and similar irregularities in the texts. Later recognition rules could accommodate some frequent variants, but the collection procedure itself preserved the wording. This matters when interpreting a mismatch. A recognizer can miss an expression because of an unusual written form even when the expected spelling is in its vocabulary. Preserving the original form keeps such discrepancies available for investigation.

After segmentation the project applied [part-of-speech tagging](https://md.research.elamur.ai/free/en/concepts/part-of-speech-tagging/), assigning grammatical categories to tokens in context. MEDLEX used a version of Brill's tagger with the Swedish MULTEXT tagset. The tagset supplies the labels for grammatical information, while the tagger decides where to assign them. A lexical resource used by the tagger was expanded with several hundred medical entries. This adaptation addressed recurring errors in which the system gave specialized words tags that would be plausible for superficially similar words in general Swedish.

The examples show why the endings of words were a particular source of mistakes. The tagger treated lymfadenit, a disease name, and aminoxidas, a substance name, as verbs. Their endings resembled forms that occur on Swedish verbs. The author also reports inappropriate genitive labels on words including insufficiens and inkontinens. Medical adjectives and anatomical terminology prompted additions as well. The corrections drew on observed behavior in the corpus and on the [morphology](https://md.research.elamur.ai/free/en/concepts/morphology/) of the vocabulary, the way forms are built and inflected.

Those decisions mattered beyond grammatical labeling. The next stage used both the token and its assigned part of speech. A specialized noun identified as a verb could therefore be routed through the wrong rules for finding its dictionary form. The parser would also receive a misleading category at the position where the noun occurred. Adding a lexical entry at the tagging stage addressed the problem before these downstream operations.

MEDLEX carried out [lemmatization](https://md.research.elamur.ai/free/en/concepts/lemmatization/) for tagged nouns, verbs and adjectives with finite-state machines. A finite-state machine processes input by moving among a defined set of states, with transitions governed by the input it sees. Here the input included the surface token and its grammatical tag, and the desired output was its base form, or [lemma](https://md.research.elamur.ai/free/en/concepts/lemma/). Recording the lemma makes it possible to retrieve occurrences together even when the written forms differ because of inflection. The written token remains the evidence of what occurred in a specific passage.

#### Recognizing names, measures and medical expressions

The next kind of information concerns what words and phrases name. In MEDLEX, [named entity recognition](https://md.research.elamur.ai/free/en/concepts/named-entity-recognition/) covered familiar categories such as people, locations and organizations and extended to several other kinds of expression. The generic recognizer distinguished eight main categories and nearly sixty subtypes. Its measure subtypes included dosage, pressure, volume and temperature. This was useful for medical writing because a quantity with its unit can be relevant both as a semantic object and as part of the structure of a noun phrase.

The system combined resources with different jobs. Lists of multiword names gave it expressions to look for directly. Finite-state grammars provided patterns for the entity types. A document-level component then used the relatively confident analyses from those sources to reconsider occurrences still lacking labels. A separate inventory of single names held approximately 100,000 entries. A final revision component checked the resulting document, using existing annotations to resolve problems or create further annotations, for instance by bringing together fragments that belonged to one expression.

The document-level component is related to the document-centered approach discussed in [Named Entity Recognition without Gazetteers](https://md.research.elamur.ai/free/en/papers/mikheev-1999-named-entity-recognition-without-gazetteers/). Its role is easy to see if a name occurs first in a context that makes its type apparent and later in a shorter or less distinctive form. Evidence from the clearer occurrence can help resolve the less informative one. MEDLEX used confidence appropriate to the processing stage and evidence elsewhere in the same document. The particular combination of name lists, grammars and revision rules remained part of the Swedish system.

The medical extension added a ninth broad entity category with seven subcategories. These covered anatomy, organisms and diseases, along with substances such as drugs and enzymes. The other distinctions covered symptoms, pharmaceutical equipment, and analytical, diagnostic or therapeutic techniques. The categories gave the processing system a working way to distinguish different kinds of medical wording. They also created labels that could be used in searches and passed to syntactic analysis.

The project assembled resources for the medical recognizer from the web and from MEDLEX itself. These included parts of the Swedish ICD-10 and Swedish MeSH, along with a list from FASS containing several thousand drug names. The recognizer also used lists of morphemes, particularly endings associated with medical categories. Some of the forms used in the disease component were +opati, +iasis and +emi. Such endings give a pattern an opportunity to recognize a candidate term through its structure. The value of that evidence depends on how well the pattern distinguishes the intended term from other forms.

Symptoms called for a different route to new patterns. The author found that Swedish symptom expressions could take the form of compounds or descriptions spread across several words. The project began with characteristic keywords and short fragments, wrote regular expressions and applied them to analyzed MEDLEX text. It then inspected the neighborhood of matches for new symptom expressions. Those discoveries informed more hand-written rules, which could be applied in turn. The corpus served here as evidence for rule development as well as material to annotate.

This part of the method shows why the generic and medical recognizers used several kinds of evidence. A list can directly identify a form already recorded. A suffix rule can help identify a candidate whose written form follows a recognized pattern. A phrase rule can account for a symptom expressed across several tokens. Evidence from another occurrence can make an uncertain local decision easier. Each route recovers a different kind of information from the text, and the paper describes bringing their results into a common workflow.

#### Preparing Medical Subject Headings for running text

The MeSH tagger supplied a separate form of semantic annotation. MeSH is a controlled vocabulary used for describing the subjects of biomedical literature. Its entries belong to a hierarchy, so a narrow concept can be located under a broader class. The project obtained a license for the Swedish translation from the Karolinska Institutet University Library. The paper says the Swedish material used in the work was based on the 2006 MeSH vocabulary.

The tagger drew on branches A for anatomy, B for organisms, C for diseases and D for chemicals and drugs. It also used branch E, covering equipment and techniques for analysis, diagnosis and treatment, and branch F for psychiatry and psychology. This selection defined the parts of the vocabulary used in the described implementation. A single term could carry several classifications, so tagging a matched expression included deciding what to do with multiple candidate labels.

The project shortened detailed hierarchy codes before applying its ambiguity procedure. The author calls the retained tier level 0 and demonstrates the choice with beta-lactamases. Its longer code, D08.811.277.087.180, became D08, the group for enzymes and coenzymes. Several detailed labels can thereby agree at the retained level. The author assumed that senses grouped together at that level were sufficiently similar for the purpose of the experiment. The broader coding made the problem more manageable and determined how specifically the output could classify a term.

A thesaurus entry can differ from the way its expression appears in an article. An entry filed under its noun may put the modifier afterward. The project reordered such entries to reflect ordinary Swedish usage. It also prepared patterns for inflected expressions so that a match could accommodate several surface forms. The example for oral vaccines is a matching pattern, with the adjective first and optional endings on both words.

```
oral(a)? vaccin(et|er|erna)?
```

In this pattern, `oral` and `vaccin` are the fixed written parts of the adjective and noun. The space separates the words. Parentheses group the possible material that follows each fixed part, and `?` makes the preceding group optional. In the first group `a` is the optional adjective ending. In the noun group `et`, `er` and `erna` are alternative endings, separated by `|`, which means that the pattern can take any of the listed alternatives. The optional group also permits the noun to appear with none of those endings.

The recognizer accommodated some recurring variations observed in sample texts. The project added an abbreviated form of Escherichia coli and addressed spellings influenced by English, including cases in which `ph` appeared where Swedish would use `f`. The paper also mentions adjustments for frequent errors involving spelling and agreement. These changes concern what forms a vocabulary matcher can recognize. They complement the earlier decision to preserve the original wording in the corpus.

Case was retained where an upper-case form conveyed a distinction the recognizer needed. The paper's example is Swedish kol for carbon and KOL for chronic obstructive pulmonary disease. General case folding helps a dictionary entry match capitalization variants, but folding these two forms together would erase evidence needed to tell them apart. The project therefore folded most entries and treated all-uppercase forms, particularly acronyms, as exceptions. The distinction concerns the identity of the candidate term before any contextual rule is applied.

#### Using other terms in the document to reduce ambiguity

Even after normalization and shortening of the codes, a matched term could have more than one MeSH label. The project had no suitable labeled training material for this decision. It tried an unsupervised rule, meaning that the decision used evidence from the text without training on hand-labeled examples. The idea draws on [One Sense Per Discourse](https://md.research.elamur.ai/free/en/papers/gale-1992-one-sense-per-discourse/), the observation that occurrences within a discourse can provide evidence about sense.

The MEDLEX implementation uses nearby unambiguous terms as evidence for choosing among candidate classifications. The paper illustrates this with a passage that mentions lidokain and bupivakain together. The first has the label D02, for acetanilides. The second has candidates D02 and D03, the latter associated in the paper with pipecolic acid. The system uses the neighbor's unambiguous D02 as support for retaining D02 on bupivakain. The paper identifies that as the preferred reading in this example.

The operation is a choice among categories already assigned to a recognized expression. It depends on the matcher recognizing the term, the vocabulary supplying candidates, and nearby evidence favoring one or more of those candidates. A document can provide that evidence through related terms, so the approach can affect even a matched item that occurs only once. The plausible connection in the example comes from the terms considered together in a single passage.

The system adds a reliability attribute to a reduced annotation to express the strength of its confidence in the change. The paper also distinguishes a case that ends with a single label from one in which the candidate set narrows but still contains several. That distinction matters for anyone using the annotation. The first gives a definite category for a query. The second provides more focused evidence while leaving uncertainty about which remaining label should be used.

#### Combining lexical, semantic and grammatical evidence

The combined representation brought the preceding annotations into the same input for syntactic analysis. A token could contribute its grammatical label and lexical information, and a recognized expression could supply an entity or terminology feature spanning relevant tokens. The parser could refer to these features when applying a rule. The author describes a modest simplification of the grammar rules from making these precomputed features available.

The parsing system was based on Cass, which analyzes text through a cascade of finite-state rules. MEDLEX adapted a [Swedish finite-state parser](https://md.research.elamur.ai/free/en/papers/kokkinakis-1999-cascaded-finite-state-parser-syntactic/) described in earlier work. In a cascade, the output of one stage becomes input to the next, so labels and features introduced early can participate in later patterns. The transducers used by the parser can add information and assign roles as part of processing a recognized pattern.

Preparation for parsing addressed constructions that could affect several levels of analysis. These included phrasal verbs, coordinated compounds and expressions functioning as measures or quantities before another word. It also addressed appositions, such as a description beside a name that gives information about the same entity. The system could identify [multiword expressions](https://md.research.elamur.ai/free/en/topics/multiword-expressions/) early enough for the later grammar to use the grouping. The intermediate grammars could add or revise features on input that already carried grammatical tags.

The main syntactic analysis proceeded through a phrasal and a clausal automaton. The phrasal automaton recognized constructions with or without an entity label, as well as adjective phrases, prepositional phrases and verb groups. Rules were organized into levels by the complexity of the constructions, with simpler patterns following more complex ones. That arrangement gives more specific patterns a chance to use evidence that could be obscured if a broader pattern had already grouped the words.

The clausal automaton worked with units such as relative clauses, embedded questions, and complements or adverbial clauses. It also dealt with main clauses and combinations of main and subordinate clauses. The author includes questions, passive constructions and constructions without a verbal predicate in the description of the grammar. The system used evidence such as the type of verb group, word order and the presence of an introductory word or part-of-speech tag associated with a clause type. This is where features acquired earlier help describe a larger part of the sentence.

The paper's syntax example concerns funding from the EU for research on an uncommon inherited disease. The sentence contains a currency expression and the name of a disease as well as the basic elements of a clause. The displayed analysis includes SBJ for subject, PRD for predicate and OBJ for object. The example lets the reader see what is added by syntax. Semantic labels describe particular expressions, while the grammatical functions describe how units participate in the clause.

#### Encoding the result for inspection and search

Cass supplied the analyses, and the project converted them to TIGER-XML, a graph-based representation that supports storage, indexing and queries over syntactic information. A query could combine a lexical property with a semantic label and a phrase label. This mattered because the corpus contained partially parsed text, and the amount or type of usable evidence could vary from one sentence to another. The reader could use the available features to locate passages of interest.

The format also gave the project a way to use tools that could visualize or modify the analyses. The paper names @nnotate and SALSA as programs that work with TIGER representations and can support correction or enrichment. Conversion made those operations possible on the encoded output. The work of inspecting and correcting the parses was a prospective use of that representation.

The paper separately describes how the corpus could be searched at the time. Access was through searchable concordances in the IMS Corpus Workbench. A concordance shows matches with nearby text so that a reader can inspect each occurrence. The paper demonstrates a pattern consisting of a medical substance, a verb and a disease. The pattern uses semantic information to identify the expressions at either end and a grammatical label to identify the middle. The match brings relevant passages into view for inspection of what the sentence says.

### Experiments and results

#### The corpus behind the annotations

The author describes the collection at the end of 2005 as approximately 6 million tokens and more than 10,000 articles. These are counts for the assembled corpus after stripping formatting and dividing the text into tokens. The article count describes the number of documents, while the token count describes the units available for linguistic processing. The corpus included patient-oriented FAQs, guidelines, teaching material and other genres alongside scientific publications.

The corpus inventory reports token counts and type counts by source grouping. Here a token is an occurrence in the text, while a type is a distinct form within the group being counted. Repeated occurrences can increase the token count while contributing the same type. The grouping for faculties, institutes and hospitals contains 305,000 tokens and 27,000 types. Conference abstracts account for 320,000 tokens and 41,000 types. Pharmaceutical-company material is listed at 300,000 tokens and 27,000 types.

The group for specialized sites contains 890,000 tokens and 61,000 types. Material from broadcasters or daily newspapers is reported at 600,000 tokens and 57,000 types. The paper reports the token total for journals and periodicals using the notation “1,6 milj.” and lists 97,000 types for that group. For healthcare communication companies it gives “1,7 milj” tokens and 102,000 types. These categories describe the provenance of the text. The inventory lets a reader see that different parts of the corpus contribute different amounts of material and different inventories of forms.

Such figures describe the opportunities for finding language in the resource. They leave the quality of annotation to separate evidence. A large set of forms can supply more candidates for terminology work, but an inventory of forms cannot establish how well those candidates are tagged. The broad collection provides the setting for the processing examples, whereas the quantitative MeSH experiment uses a much narrower sample.

#### Previous evidence for the entity recognizer

The paper reports results from an earlier evaluation of the generic Swedish entity recognizer on Swedish electronic patient records. Across entity groups, reported precision ranged from 69,9% to 100%, and recall ranged from 66% to 98%. Precision measures how many of the entities assigned by a system are correct. Recall measures how many of the entities that should have received a label were found. Each range describes the variation across groups in that evaluation.

Those figures characterize the recognizer on the patient-record material used in the earlier study. MEDLEX's web collection spans genres with different vocabulary and ways of presenting names and measures. The patient-record figures therefore give context for the reused component, while the paper presents the addition of the medical category and its integration with MeSH as part of constructing the corpus. It gives a joint annotation example in which names of people occur in a sentence with anatomical and disease terminology, allowing the reader to see the two kinds of recognition applied to the same text.

#### MeSH ambiguity in a journal sample

The MeSH experiment used 10 articles from the Swedish Medical Association's magazine, a sample containing 8,490 tokens. The reported analysis concerns complete matches. Its comparison point is the tagger's own output before the contextual rule is used. Keeping the vocabulary and sample in place makes the comparison about the treatment of candidate labels on the observed matches. The metric in the chart is the number of annotations reported as ambiguous at the initial and final stages.

Initial and final ambiguous MeSH annotations in the Swedish Medical Association magazine sample The paper reports fewer ambiguous annotations after applying the document-level rule.

**The numbers**

| System or setting | ambiguous annotations |
| --- | --- |
| Initial MeSH output | 105 |
| Final MeSH output (this paper) | 30 |

The paper's ambiguity table gives 601 total annotations and lists 594 as correct annotations. It separately records 268 unambiguous MeSH annotations. For the initially ambiguous cases, it reports 58 reduced to one MeSH label and 17 narrowed while retaining more than one. The final ambiguity row gives 30. These figures are the paper's reported categories. In particular, the category that retains multiple labels matters when interpreting what the final row represents.

The counts tell a reader about the size of the choice the tagger leaves on recognized expressions. If a label set narrows, a later search can avoid some categories that had previously been attached to the term. The correctness of that change requires a judgment about which labels the term should carry in context. Coverage requires a further judgment about the terms the system missed entirely. The paper provides a preferred reading for its worked example and says that it lacked manually annotated material for evaluating the MeSH tagger's overall performance.

The paper also presents an example with a series of disease mentions in a sentence that includes names and anatomical terminology. The demonstration shows how overlapping kinds of evidence can coexist in one passage. It helps explain why the MeSH layer and the extended entity layer were both carried forward. A generic label for a person has uses in parsing and search, while a term's position in a medical hierarchy supports a different kind of query.

#### What the parser and concordance demonstrate

The parser result is illustrated with the funding sentence rather than measured on a Swedish medical test set. Its functional labels make grammatical roles visible alongside the annotations supplied by earlier processors. In the paper's account, this is evidence that the stages can exchange information and that the output can be represented in the chosen format. The author directs readers to the earlier Swedish parser study for performance evidence from nonmedical text.

The concordance demonstration tests a different property of the corpus. It shows that an analyst can ask a question that combines annotations from different sources and receive textual contexts back. A medical substance followed by a verb and a disease is a search pattern with an interpretable result even when the relation among those elements varies. Examining the returned contexts is how a researcher can see whether a particular occurrence is about a proposed treatment, an observed association or another proposition expressed in the sentence.

The numerical evidence therefore comes from several settings with different purposes. The collection counts describe the assembled documents and words. The precision and recall ranges describe a prior entity-recognition evaluation on patient records. The MeSH counts describe what happened to candidate annotations on a small set of complete matches. The syntax and concordance examples demonstrate that an integrated annotation and search workflow could be used on actual passages. Each result answers a more specific question than whether the whole pipeline was accurate across MEDLEX.

### What the ablations show

The paper reports no formal ablations. Its closest comparison is the MeSH tagger's initial and final ambiguity counts on the same journal sample. This comparison follows one intervention after vocabulary matching. The initial output contains all the candidate labels that the matching procedure attaches at the retained hierarchy level. The later stage can use evidence from an unambiguous neighbor to remove candidates. The reported change shows that the rule found opportunities to narrow the output on the sampled complete matches.

The difference between selecting one label and leaving several narrowed candidates is important to understanding the intervention. In the example with lidokain and bupivakain, the shared candidate supplies a reason to select one class for the second term. In a less decisive context, retaining several candidates preserves some uncertainty even if the rule can rule out others. The paper's separate counts show that both outcomes occurred. Their relative value depends on whether a later use can accept a set of plausible categories or needs a single choice.

The before-and-after comparison leaves other decisions in the MeSH pipeline in place. The hierarchy has already been shortened. The entries have already been reordered or prepared for inflection where appropriate. Acronyms already receive special treatment during case handling. The paper offers concrete reasons for these decisions and examples of the issues they address. Separate estimates of their contributions would require comparisons across alternative configurations, which the study leaves open.

The examples of grammatical tagging errors provide a qualitative analysis of how general Swedish tools behaved on medical vocabulary. Verb endings gave the tagger a plausible but incorrect clue about some medical nouns. Other endings led it to posit genitives. Adding specialized lexical entries addressed recognizable classes of failure. The examples establish what prompted the changes and why they belong early in the pipeline. The paper does not give paired tagging scores for the original and extended lexicons, so the scale of the improvement across the corpus remains unknown.

The same distinction applies to the medical entity rules. The account of symptom patterns shows that inspecting matches and their surroundings could uncover more expressions to encode. That is an analysis of which evidence helped the author develop the recognizer. The paper supplies no comparison of symptom coverage with and without the newly written rules. The behavior of the development process can be understood from the examples, while its effect on unseen text remains to be measured.

For syntax, the author explains that features from the preprocessors simplified some grammar rules. The integrated examples show what structures can be displayed after passing those features forward. There is no parallel run of the medical parser with the semantic features removed, so the paper offers a design rationale and an illustration of use instead of a measurement of how much they change parsing accuracy. The earlier nonmedical parser evaluation concerns a different setting and cannot isolate the role of the added medical features.

The collection procedure likewise has a practical comparison in its description. Manual inspection served the early search for websites, and BootCaT was adopted to save time finding additional candidates. The paper describes that motivation and the breadth of the eventual resource. It supplies no timed comparison or source breakdown by discovery method. The contribution of BootCaT is therefore documented as part of the acquisition workflow, without a separate estimate of its effect on speed or genre coverage.

### Limitations

#### Limits identified by the author

The immediate limit on evaluating MeSH was the absence of manually annotated material. The author says that a trained physician would have been the appropriate person to mark missing terminology and that the project could not consult one at the time. This matters especially for omissions. Finding that a tagger assigned a plausible label to a matched term says little about expressions that never became candidates. Establishing coverage requires reviewing the text for relevant terms whether or not the software marked them.

The vocabulary itself also limits what a dictionary-based procedure can recover. The author notes that Swedish MeSH contained over 50,000 terms including synonyms and still lacked clinically useful terminology. Preparing more spellings and inflections can help the tagger match existing entries. Vocabulary gaps require other evidence, such as the corpus-based search for symptom expressions described in the paper. These are distinct causes of missed annotations, even when the result in the text looks the same.

The author calls the contextual ambiguity procedure partial and simple and proposes revising and extending it. The experiment examines a small set of articles and complete matches. The author suggests evaluating on more material, considering the full MeSH hierarchy and trying a different order for the processing stages. One proposed ordering would parse before applying MeSH so that the tagger could search within noun phrases. That idea appears as a possibility for future investigation, with no measured result in the paper.

Human inspection was another proposed extension. The author suggests reviewing intermediate results and using a tool such as @nnotate to correct or enhance the syntax. TIGER-XML made such editing possible, but the paper describes a corpus with automatically produced analyses. The examples show what the parser and encoding can represent. They leave the overall effect of a human correction pass unmeasured.

Availability was also limited. The paper says MEDLEX could be used through searchable concordances at the time of writing. The author was investigating copyright arrangements that might allow part or all of the material to be made available for research. A concordance provides a way to see matches and their contexts, while access to the document collection would allow other kinds of reuse, such as reprocessing the text or examining particular documents in full. The paper establishes the state of access through the former route.

#### Limits that follow from the setup

The collection shows that it was possible to assemble many kinds of Swedish medical prose with a shared encoding. Its source groupings do not provide a sampling frame for all Swedish medical writing. Discovery depended on relevant web sources, manual inspection and later searches guided by seed terms. The selection therefore reflects material that could be located and extracted through those procedures. The corpus figures can describe what MEDLEX contains, while claims about how often a form occurs in Swedish medicine generally would require further evidence about the population of texts being sampled.

The name and terminology results also concern distinct source settings. The earlier entity evaluation used electronic patient records. The MeSH ambiguity test used articles from a professional magazine. The larger collection includes public-facing information and other kinds of web writing. A statement about annotation quality in one of those settings carries limited evidence about another. Editorial practice, use of terminology and the forms available to the matcher can all differ across the genres the paper chose to include.

Reducing the MeSH hierarchy changes the granularity of the result. Several readings can share a broad category even when they would remain distinct under detailed codes. At the retained tier that agreement is useful, but it provides no evidence that the tagger has recovered the narrower classification. An assessment using the full hierarchy would ask a different question and might assign a different status to the same case. The paper's numerical findings apply to the reduced representation used in its experiment.

The ambiguity table itself requires care. It records a group of annotations that became less ambiguous while retaining several labels, alongside a separate final ambiguity row. The paper does not fully explain how to combine these categories to count every output still carrying several labels. The initial and final figures can be reported as the paper labels them. Deriving an additional aggregate from the table would require a clearer definition of the row boundaries. Evaluating the quality of the decisions would also require checking whether retained and removed categories were appropriate in context.

The context rule assumes that related terms in a passage can help identify a shared category. This is plausible in the worked example. The same kind of evidence can be misleading in a passage that compares or groups items belonging to different branches. A neighboring unambiguous term offers evidence about the local subject, while the interpretation still depends on how the expressions are related in the sentence. The paper provides no measured error breakdown for such cases, leaving the reliability of that assumption across genres unresolved.

Finally, the pipeline gives each stage access to earlier decisions, so some errors can carry forward. Incorrect token boundaries can obstruct phrase matching. A mistaken grammatical label can affect lemmatization and the rules that identify a clause. A missed entity gives the parser less information about an expression that might otherwise be treated as a unit. The paper illustrates individual failure modes and techniques for addressing them. Its evidence does not trace errors through all the stages on an annotated medical test set, so the contribution of each stage to final parse quality remains open.

### What came after

[Recognizing Acronyms and their Definitions in Swedish Medical Texts](https://md.research.elamur.ai/free/en/papers/kokkinakis-2006-recognizing-acronyms-their-definitions-swedish/) cites MEDLEX and focuses on identifying acronyms together with their definitions. MEDLEX encountered acronyms while trying to match terms without introducing ambiguity. Its case-handling rule preserved the distinction between an upper-case abbreviation and the same letters used in a lower-case word. The later work takes up a more specific recognition problem by making the relationship between an acronym and its definition the object of study.

These tasks use different kinds of evidence about abbreviations. Case helps distinguish two written forms that would otherwise become identical during normalization. Recognizing a definition concerns the words that explain an abbreviated form and the connection between them in the text. For research on medical vocabulary, both questions arise because a specialized expression can occur in several forms, and a term list can be more informative when those forms can be related to the language of a document.

The citation identifies a connection in research subject. It does not establish that the acronym study used the same collection of documents, retained the MeSH procedure or evaluated its recognizer through the MEDLEX parsing workflow. The documented follow-up is the move from acronyms as a matching issue within corpus annotation to a study that treats acronyms and their definitions as a task in their own right.

## Cite

Cite as Dimitrios Kokkinakis. 2006. Collection, Encoding and Linguistic Processing of a Swedish Medical Corpus - The MEDLEX Experience. Proceedings of the Fifth International Conference on Language Resources and Evaluation (LREC'06).

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

```bibtex
@inproceedings{dimitrios2006collection,
  title = {{Collection, Encoding and Linguistic Processing of a Swedish Medical Corpus - The MEDLEX Experience}},
  author = {Dimitrios Kokkinakis},
  booktitle = {Proceedings of the Fifth International Conference on Language Resources and Evaluation (LREC'06)},
  year = {2006},
  doi = {10.63317/59e5tq4qc85h},
  url = {https://doi.org/10.63317/59e5tq4qc85h}
}
```

> 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)
