A search tool based on language modelling developed for The Index of Middle English Prose

List of Authors

  1. Alpo HONKAPOHJA ,  
  2. Jacob Thaisen
    ,  
  3. Anders Nøklestad
Article Authors & roles Authors Peer review record Peer review Metrics
Cite

Abstract

Non-standardised early vernaculars present a problem for search tools due to the high degree of variation. The challenge lies in the variation found in orthography, syntax, and lexicon between titles, incipits, and explicits in manuscript copies of the same work. Traditional search methods relying on exact string matching or regular expressions fail to address these variations comprehensively. This project presents a web-based search tool specifically designed to handle linguistic and textual variation. The software is made available as a part of the Index of Middle English Prose (IMEP).

The search tool addresses the issue of variation by utilizing a database of incipits and explicits, character-based n-gram language models (LMs) built with the Stanford Research Institute Language Modelling (SRILM) toolkit, and a fuzzy search script (IMEP: FSS) written in Python. The tool optimizes for recall, retrieving multiple potential matches for a search string, without attempting to identify the ‘correct’ one. The search process involves looking up exact matches in the database while simultaneously using the fuzzy search script to evaluate the incipits and explicits against a model of the search string, followed by a match of the search string against models of the incipits and explicits. This two-step process shortens the processing time, which would otherwise be unreasonably long, because while using SRILM to match the search string against each incipit or explicit in the IMEP for precision could be time-consuming, running a first step where all texts are matched against a single LM built from the search string allows for faster processing.

A web application, built using Django and Docker, combines the results of the direct database lookup and the fuzzy search script, presenting them as a list with exact matches followed by fuzzy matches ordered by increasing model perplexity. The tool is made available Open Access and can be adapted to other datasets.

Corresponding author
Alpo HONKAPOHJA
0000-0002-9724-5180
Grant information

This project has received funding from the European Union’s Horizon 2020 research and innovation programme Index of Middle English Prose: Digital Cotton Catalogue Project (IMEP-DCCP) under the Marie Skłodowska-Curie grant agreement No [101025997].

The funders had no role in study design, data collection and analysis, decision to publish, or preparation of the manuscript.

Copyright
© 2024 Alpo HONKAPOHJA (Corresponding Author, Co-Author); Jacob Thaisen (Co-Author); Anders Nøklestad (Co-Author) Creative Commons License

This work is licensed under a Creative Commons Attribution 4.0 International License.

First version published
Latest version published
Revised

Amendment

We have taken into account feedback given by reviewer 1. We have addressed all comments in the revised version except for comment 1, which suggests improving precision by combining multiple string similarity metrics. We have opted not to do so because addressing this point would considerably lengthen the discussion of alternative approaches, which is already fairly long. Moreover, while combining multiple strings could potentially improve precision, doing so would also likely slow down searches considerably. Users may not tolerate search times lasting several seconds in a web-based search tool. The two-step matching process used by the fuzzy search script was specifically developed to address the issue of overly long search times. In the future, with increased computing power, it is likely that computing multiple string similarity metrics will become viable.

Comments

Authors & roles

Alpo HONKAPOHJA

Department of Literature, Area Studies and European Languages, University of Oslo, Oslo, Oslo, 0315, Norway

Roles
Corresponding Author, Co-Author, Funding Acquisition, Investigation, Project Administration, Writing – Original Draft Preparation, Writing – Review & Editing
0000-0002-9724-5180

Jacob Thaisen

Department of Literature, Area Studies and European Languages, University of Oslo, Oslo, Oslo, 0315, Norway

Roles
Co-Author, Funding Acquisition, Methodology, Supervision

Anders Nøklestad

Humit, University of Oslo, Oslo, Oslo, 0313, Norway

Roles
Co-Author, Methodology, Resources, Software

Downloads over the last 12 months:

Cited by

via Crossref

View citing articles