This is an outdated version published on November 14, 2023. Read the most recent version.

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
© 2023 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

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