Link

Combined models

Table of contents


Combined models

The default models for some languages are “combined”. The goal is to get better coverage of the language, hopefully without sacrificing consistency in the annotation scheme. In each case, the data used to train the models is a combination of multiple UD datasets.

LanguageUD DatasetsOther
EnglishEWT, GUM, GUMReddit, PUD, PronounsSPECIALIST Lexicon lemma dictionary
FrenchGSD, ParisStories, Rhapsodie, Sequoia 
GermanGSDGerman Wiktionary lemma dictionary
GreekGDTGreek Wiktionary lemma dictionary
HebrewIAHLTwikiHTB fork from IAHLT
ItalianISDT, VIT, PoSTWITA, and TWITTIROMWT list from Prof. Attardi
JapaneseGSDParsed data from CMU
SlovenianSSJ, SSTSUK ssj500k and ambiga for POS and lemmas, Sloleks lemma dictionary
SpanishAnCora, GSDMWT and lemmas for clitics and adjectives, FreeLing lemma dictionary

Other data sets would be added, or combined models for other languages created, but there are often data problems preventing that. For example, English Lines uses a different xpos and feature scheme. Spanish GSD and AnCora use the same general annotation scheme, but sentence splits are annotated differently, and some of the features are noticeably different. Hopefully over time we can resolve some of those issues and expand the models.

Whether or not this was a good idea was explored in a GURT paper from Georgetown

Coref

Coref goes a step further and combines languages as well as datasets. The Catalan, English, French, German, Norwegian (Bokmål and Nynorsk), and Spanish coref models are a single model trained on the CorefUD data for all of those languages. See the coref page for details.

Lemma dictionaries

The English, German, Greek, Slovenian, and Spanish lemmatizers also use a large external lexicon, to cover words which never appear in the treebanks. Each lexicon is converted to a list of (word, UPOS, lemma) entries, and those entries go into the lemmatizer’s dictionary. Where a treebank and a lexicon disagree on the lemma for the same word and UPOS, the treebank’s lemma is the one in the dictionary.

The seq2seq model also trains on the lexicon, at a lower rate than the treebank data, so that it learns the inflection patterns as well as the specific words.

See the lemmatizer page for how to rebuild these dictionaries when training a model.

SPECIALIST Lexicon

The English lemma dictionary is built from the inflection table (inflVars.data) of the 2026 release of the SPECIALIST Lexicon, part of the SPECIALIST NLP Tools from the Lister Hill National Center for Biomedical Communications, National Library of Medicine. The SPECIALIST Lexicon is a United States Government product, and its use and redistribution are subject to the following conditions, from the SPECIALIST NLP Tools Terms and Conditions:

  • Redistributions of the SPECIALIST NLP Tools in source or binary form must include this list of conditions in the documentation and/or other materials provided with the distribution.
  • In any publication or distribution of all or any portion of the SPECIALIST NLP Tools (1) you must attribute the source of the tools as the SPECIALIST NLP Tools with the release number and date; (2) you must state any modifications made to the SPECIALIST NLP Tools along with a complete description of the modifications, which may be in the form of patch files.
  • You shall not assert any proprietary rights to any portion of the SPECIALIST NLP Tools, nor represent the SPECIALIST NLP Tools or any part thereof to anyone as other than a United States Government product.
  • The name of the U.S. Department of Health and Human Services, National Institutes of Health, National Library of Medicine, Lister Hill National Center for Biomedical Communications may not be used to endorse or promote products derived from the SPECIALIST NLP Tools without specific prior written permission.
  • Neither the United States Government, U.S. Department of Health and Human Services, National Institutes of Health, National Library of Medicine, Lister Hill National Center for Biomedical Communications, nor any of its agencies, contractors, subcontractors or employees of the United States Government make any warranties, expressed or implied, with respect to the SPECIALIST NLP Tools, and, furthermore, assume no liability for any party’s use, or the results of such use, of any part of these tools.

The modifications made to the lexicon are:

  • Only the noun, verb, adjective, and adverb rows are kept, mapped to the UPOS tags NOUN, VERB, ADJ, and ADV. The lexicon has no category for proper nouns, so a noun whose lemma has a capital letter, such as Alzheimer, is tagged PROPN.
  • The lemma is the uninflected form of each row, which keeps the spelling of the inflected form (colours → colour), rather than the citation form.
  • Rows are dropped if the form or lemma contains whitespace, if the form is a negated contraction such as didn't, or if the form or lemma has characters other than letters, digits, -, ', and ..
  • A (word, UPOS) pair with more than one lemma, such as axes → axe / axis, is dropped.
  • The remaining entries are written as one-word CoNLL-U sentences.

The complete conversion is stanza/utils/datasets/lemma/convert_en_specialist.py.

The English dictionary also has 10,000 generated numbers written with commas, such as 1,234,567 → 1234567, which follows the UD English treebanks. These are not from the SPECIALIST Lexicon. They teach the seq2seq model to copy long numbers without changing or repeating digits.

German Wiktionary

The German lemma dictionary is built from German Wiktionary, which is licensed under CC BY-SA 4.0. The converted lemmas are in handparsed-treebank.

The forms of nouns, verbs, adjectives, and adverbs are taken from the inflection tables of their entries, along with the pages for conjugated verb forms. Names are tagged PROPN. A noun with adjectival declension, such as Abgeordneter, has its weak form (Abgeordnete) as the lemma. Every form with ß also gets a version with ss, for Swiss spelling, and a form with more than one lemma is left out. The conversion is stanza/utils/datasets/lemma/convert_de_wiktionary.py.

Greek Wiktionary

The Greek lemma dictionary is built from Greek Wiktionary, which is licensed under CC BY-SA 4.0, using the kaikki.org extraction made with Wiktextract (Tatu Ylonen, 2022, Wiktextract: Wiktionary as Machine-Readable Structured Data, Proceedings of the 13th Conference on Language Resources and Evaluation, pp. 1317–1325).

Only the Greek entries are used. The forms of nouns, verbs, adjectives, and names (PROPN) are taken from the declension and conjugation tables of their entries, along with the pages for inflected forms which point to their lemma. The lemmas are changed to follow UD_Greek-GDT:

  • A variant spelling or a diminutive is its own lemma.
  • An inflected form which points to another inflected form, such as an adjective form which points to the feminine, has the lemma at the end of the chain (ιαπωνικές → ιαπωνικός).
  • Comparatives and superlatives have the positive adjective as their lemma (μεγαλύτερο → μεγάλος).
  • Passive verb forms have the active verb as their lemma when tagged VERB (χτισμένος → χτίζω), and participles keep the participle as their lemma when tagged ADJ.
  • Contracted verbs have the -ώ lemma rather than -άω (μιλάω → μιλώ).
  • Where GDT gives most of the forms of a Wiktionary lemma a different lemma, the GDT lemma is used, such as λέω → λέγω.

Forms and lemmas with spaces, digits, markup, or polytonic accents are skipped, and a form with more than one lemma is left out. The conversion is stanza/utils/datasets/lemma/convert_el_wiktionary.py.

Sloleks

The Slovenian lemma dictionary is built from Sloleks 3.1 (Čibej, Gantar, Dobrovoljc, Krek, Holozan, Erjavec, Romih, Arhar Holdt, Krsnik, and Robnik-Šikonja, 2026, Slovenian language resource repository CLARIN.SI), which is licensed under CC BY-SA 4.0.

The lexicon is converted to (word, UPOS, lemma) entries, keeping the orthographic forms of each headword. Conjunctions, abbreviations, and residuals are skipped, and the other categories are mapped to UPOS. The conversion is stanza/utils/datasets/lemma/convert_sl_sloleks.py.

FreeLing

The Spanish lemma dictionary is built from the Spanish dictionary of FreeLing, which is extracted from the Spanish Resource Grammar and was developed at the Institut Universitari de Lingüística Aplicada of the Universitat Pompeu Fabra. It is distributed under the Lesser General Public License For Linguistic Resources (LGPL-LR), and the dictionary entries in the Spanish lemmatizer, which are a modified version of it, are distributed under the same license.

The modifications made to the dictionary are:

  • Only the adjectives, common nouns, verbs, and interjections are kept, mapped to ADJ, NOUN, VERB, and INTJ. Verbs whose lemma is ser, haber, estar, poder, or deber are also tagged AUX.
  • Ordinals have the masculine singular ordinal as their lemma (decimotercera → decimotercero, primer → primero) instead of the number.
  • Feminine nouns have the feminine singular as their lemma (investigadoras → investigadora) instead of the masculine.
  • bueno and malo are lemmatized as buen and mal, and participial adjectives have the adjective as their lemma (parecida → parecido) instead of the verb.
  • Abbreviations, spelling normalizations, and suppletive lemmas, such as km → kilómetro and óptima → bueno, are dropped.
  • A (word, UPOS) pair with more than one lemma, such as sienta → sentar / sentir, is dropped.
  • The remaining entries are written as one-word CoNLL-U sentences.

The conversion is stanza/utils/datasets/lemma/convert_es_freeling.py.

Data augmentation

In general, the models also use various sorts of text “data augmentation” of the original data.

For example, in a language where all of the sentences in the POS training data end with punctuation, we remove the trailing punctuation from some fragment of sentences to train the model to handle sentences which don’t end with sentence final punctuation. Otherwise, we would frequently get issues such as a model tagging This is an unfinished sentence_PU

The tokenization models also use a couple different versions of this. For example, most of the tokenization datasets have just one or a couple forms of quotes, but we replace some fraction of quotes with different types so that each model has a chance of correctly tokenizing «data augmentation», "data augmentation", etc. Also, sentence final punctuation will often have spaces added or removed to make the model more robust to typos.