Automatic Grammatical Case Prediction for Template Filling in Case-Marking Languages: Implementation and Evaluation for Finnish

Read full text Summarise with VIRAT
Authors: Johannes Laurmaa
Cited by: 0
References: 8

Summary

No summary yet. VIRAT can read this paper and write a plain-language summary of its aim, methods, key findings and limitations.

Summarise with VIRAT Free to try with your Science Catalogs account.

Abstract

Automatically generating grammatically correct sentences in case-marking languages is hard because nominal case inflection depends on context.In template-based generation, placeholders must be inflected to the right case before insertion, otherwise the result is ungrammatical.We formalise this case selection problem for template slots and present a practical, data-driven solution designed for morphologically rich, case-marking languages, and apply it to Finnish.We automatically derive training instances from raw text via morphological analysis, and fine-tune transformer encoders to predict a distribution over 14 grammatical cases, with and without lemma conditioning.The predicted case is then realized by a morphological generator at deployment.On a held-out test set in the lemma-conditioned setting, our model attains 89.1% precision, 81.1% recall, and 84.2% F1, with recall@3 of 93.3% (macro averages).The probability outputs support abstention and top-k suggestion User Interfaces, enabling robust, lightweight template filling for production use in multiple domains, such as customer messaging.The pipeline assumes only access to raw text plus a morphological analyzer and generator, and can be applied to other languages with productive case systems.

Fields of Study & Subjects

Natural Language Processing Techniques Topic Modeling Speech and dialogue systems

Publication details

Journal / source
Workshop on Research in Computational Linguistic Typology and Multilingual NLP (SIGTYP)
Pages
1–11
Publication date
1 January 2026
Language
EN