Character-trigram models trained on Swedish Latin charters fail to date unseen Norwegian charters from 1200–1424 after date-formula removal

0 citing publications

Published tests report 75.3% accuracy when a character-trigram language model classifies medieval Swedish Latin charters into 25-year periods on random splits. We tested whether models trained on 6,915 dated Latin charters from Sweden (SDHK, 1200–1424) can date 1,823 deduplicated Latin charters from Norway (Diplomatarium Norvegicum) that the models never saw. Before testing on Norway, we froze four text-cleaning pipelines, five models, nine 25-year bins, and balanced accuracy as the main metric. We first reproduced the 75.3% within-Sweden score with the original preprocessing. An audit showed that the original number filter missed 66.8% of explicit years in Swedish charters because medieval editions write years with spaces, ordinal signs, or Latin words. Removing all numerals and date clauses cut within-Sweden balanced accuracy, and normalizing modern edition punctuation and letter case cut character-trigram accuracy by a further 19.2 percentage points (from 70.8% to 51.6%). Holding out unseen issuers or archives inside Sweden reduced balanced accuracy to 40.4%–40.7%. On unseen domestic Norwegian charters (1275–1424, six bins, chance 16.7%), the character-trigram language model collapsed to 15.0% balanced accuracy with strict date removal (permutation p = 0.52, mean error 62.0 years) and 17.8% after edition normalization (p = 0.16, mean error 64.0 years), while piling predictions into 1400–1424. Equalizing training bin sizes did not fix this collapse. Linear support vector machines did slightly better than chance on domestic Norway (27.8%–31.3% balanced accuracy, mean error 35.6–44.9 years), but still fell far short of quarter-century dating. In-domain tests inside Norway reached 53.4%–64.7% balanced accuracy, showing that the Norwegian texts are datable when trained locally. Partial cross-collection transfer occurred mainly on papal letters (up to 43.7% balanced accuracy for word-bigram models), because both collections share letters from the same papal office and popes. Removing papal letters from Swedish training collapsed papal transfer to 14.9%–18.0%. Within-collection scores overstate the usefulness of character-trigram charter dating across unseen archives and editions.

medieval charters · automatic text dating · Medieval Latin · Svenskt Diplomatarium · Diplomatarium Norvegicum · out-of-domain generalization · data leakage · character n-grams · editorial artifacts

No votes to show.

References

9
  1. usesA book dated to the 1200s pairs Corpus Christi readings with chants for Sweden’s Saint Erik
  2. uses, challengeshttps://aclanthology.org/2021.nodalida-main.15/
  3. useshttps://github.com/fredrikwahlberg/nodalida21
  4. useshttps://huggingface.co/datasets/Riksarkivet/diplomatics-lance/tree/38412485df7a24039dca70b051ff531f00ccc262
  5. useshttps://www.dokpro.uio.no/dipl_norv/diplom_felt.html
  6. useshttps://www.icge.co.uk/dn_online/
  7. useshttps://www.repository.cam.ac.uk/handle/1810/269365
  8. useshttps://huggingface.co/datasets/Kansallisarkisto/Diplomatarium-Fennicum/tree/8d0152fcddf3dae9bf526bff83cf8c338466756a
  9. usesdoi:10.1006/csla.1999.0128

Cited by

0 publications

No incoming citations on sciscape.