Untapped data resources : Applying NER for historical archival records of state authorities
Full text
This is a self-archived version of an original article. This version may differ from the original in pagination and typographic details. Author(s): Title: Year: Version: Copyright: Rights: Rights url: Please cite the original version: CC BY 4.0 https://creativecommons.org/licenses/by/4.0/ Untapped data resources : Applying NER for historical archival records of state authorities © 2023 the Authors Published version Poso, Venla; Välisalo, Tanja; Toivanen, Ida; Holmila, Antero; Ojala, Jari Poso, V., Välisalo, T., Toivanen, I., Holmila, A., & Ojala, J. (2023). Untapped data resources : Applying NER for historical archival records of state authorities. In A. Rockenberger, J. Tiemann, & S. Gilbert (Eds.), DHNB2023 Conference Proceedings (5, pp. 55-69). University of Oslo Library. Digital Humanities in the Nordic and Baltic Countries Publications. https://doi.org/10.5617/dhnbpub.10650 2023
Untapped data resources Applying NER for historical archival records of state authorities Venla Poso1,Tanja Välisalo1,Ida Toivanen1,Antero Holmila1and Jari Ojala1 1University of Jyväskylä, Seminaarinkatu 15, Jyväskylä, Finland Abstract Archives around the world are digitising their material at a growing speed. The National Archives of Finland launched a mass digitisation process in 2019 aiming to digitise vast amounts of state authority archives. In order to improve the access and use of this data by researchers, we present the data transfer process of state authority data and the development of named entity recognition (NER) for enriching and using archival data from state authorities. In this process, we have developed two new named entities that are not included in published NER models for the Finnish language. This work is conducted as part of the DARIAH-FI infrastructure. Keywords named entity recognition, archival records, state authority archives, tool development 1. Introduction Archives around the world are digitising their material at a vastly growing speed. This means that massive amounts of records will be made available to researchers in various fields of study. This opens up a wide range of possibilities for researchers. For historical research in particular, this kind of mass digitisation is important in helping prevent the risk of ‘source myopia’, which can result from very limited types of data being available in digital format[1]. The National Archives of Finland launched a mass digitisation project in 2019 ultimately aiming to digitise 135 shelf kilometres of state authority records with the intent of destroying the original documents [ 2 ]. The mass digitisation project includes various areas of development such as improving the quality of optical character recognition (OCR) and segmentation detection [ 3 ]. The aim of mass digitisation is not only to make the archives more accessible for state authorities but also to advance the possibilities of using archival material in various fields of research. Similar large-scale digitisation has been underway or forthcoming in several other national archives as well, such as National Archives of the Netherlands, State Archives of Belgium, The Swedish National Archives, and US National Archives and Records Administration (e.g., [ 4 ]), which makes developing the usability of archival data from the research perspective of particular importance. DHNB2023 | Sustainability: Environment - Community - Data. The 7th Digital Humanities in the Nordic and Baltic Countries Conference. Oslo – Stavanger – Bergen, Norway. March 8–10, 2023. $[email protected] (V. Poso); [email protected] (T. Välisalo); [email protected] (I. Toivanen); [email protected] (A. Holmila); [email protected] (J. Ojala) 0000-0001-8678-4683 (T. Välisalo); 0000-0003-2456-7223 (A. Holmila); 0000-0002-4348-8857 (J. Ojala) ©2023 Copyright for this paper by its authors. Use permitted under Creative Commons License Attribution 4.0 International (CC BY 4.0). DHNB Publications, DHNB2023 Conference Proceedings, https://journals.uio.no/dhnbpub/issue/view/875 55
Advancing the use of archival data for research is the objective of the FIN-CLARIAH 1 infrastructure project, which focuses on finding the best practices for enriching and accessing the recently digitised data in the National Archives of Finland. Making the digitised archives more accessible and usable for research purposes demands enriching the data in various ways. One way to make the data more usable for researchers is to utilise a natural language processing (NLP) task called Named Entity Recognition (NER). NER is an information extraction method, which is used to identify different types of entities, such as persons, organisations, places, dates, times, or events, from unstructured text. The development of NER for state authority archives in this project will lead to the deployment of NER models as open-source tools for researchers, as well as integrated in the services of the National Archives of Finland. Before starting our project, some of the digitised data could be accessed through the National Archives’ online service ASTIA 2 . ASTIA is meant for browsing and accessing digitised documents through a web browser. ASTIA interface consists of a split screen with the original document image on the left and the text file on the right. Individual documents can be downloaded as 1) JPG, 2) PDF, and/or 3) ALTO XML files, and larger document collections as separate JPG and ALTO XML files. These options are certainly diverse and sufficient enough for most current needs with openly available documents, especially those with traditional qualitative research approaches. However, for many digital humanities and social sciences methods (SSDH), particularly those identified as big data methods, this is not the most convenient or efficient technique for accessing the data. Additionally, sensitive data needs a secure method for accessing and browsing it. Therefore, there is a need for other forms of data transfer. In this paper, we will describe the design of the NER process for digitised state authority archives and consider the potential benefits and challenges of using NER in historical research with this type of archival data. As part of the design process, we created a survey directed at researchers within the fields of humanities and social sciences in order to bring new perspectives to the possibilities of using NER. We will also report the results of this survey and how they were incorporated in the process. 2. Digital history Digital humanities (DH) is an interdisciplinary field where computational studies and humanities meet [ 5 ]. It is debatable if fields such as digital history, corpus linguistics and other digitally oriented research factions fall under DH or whether they are co-managing the field. Nevertheless, in this paper we concentrate on the field of digital history. Similar to the definition of DH, digital history is a diverse field which can be determined from the perspective of the subject of study or the methodological approach [ 6 , 7 ]. Hannu Salmi [ 6 ] has defined digital history as “an approach to examining and representing the past; it uses new communication technologies and media applications and experiments with computational methods for the analysis, production 1 FIN-CLARIAH infrastructure project 2022-2023, funded by the Academy of Finland, comprises FIN-CLARIN and DARIAH-FI, which are part of European research infrastructures CLARIN ERIC and DARIAH-EU. FIN-CLARIAH aims to develop processes, methods and tools for processing unstructured text in social sciences and humanities research. 2https://astia.narc.fi/uusiastia/ 56
and dissemination of historical knowledge.” The ambiguousness of the field has been captured by Seefeldt and Thomas[7]: On one level, digital history is an open arena of scholarly production and communication, encompassing the development of new course materials and scholarly data collections. On another, it is a methodological approach framed by the hypertextual power of these technologies to make, define, query, and annotate associations in the human record of the past. We emphasise the methodological approach and centre our attention to the development and possibilities of the computer-assisted methods and tools. Digitised data holds a multitude of possibilities for historians, in addition to remote access in itself [ 8 ]. Within the field of digital history researchers have found new angles to old subjects. The multitude of methodological paths to choose from is forever expanding. Although the digital history approaches might offer some objectivity to the process and reveal unseen patterns from the used data, the researchers’ choices are still on the lead. Within topic modelling, sentiment analysis, text network analysis or other data mining options there are various choices to make which affect the outcome [ 9 ]. Using a computer-assisted approach helps the researcher to avoid ‘cherry picking’, which means that researcher finds parts of the data to support their preliminary hypothesis and disregard other viewpoints [ 10 , 11 ]. Also, the major promise for digital history in the historian’s perspective is the possibility of examining vastly more data than has been the typical practice among historians. As the amount of data has exploded over the last couple of decades, it is evident that in the future historians will need a totally new toolset for the practice of their discipline. According to Thaller[12]: The Humanities have since their earliest inception always been focusing on the ability to draw a maximum of conclusions from a rather limited amount of information they could access physically. The [sic] only start to notice that this barrier has broken down. The primary qualification of a Humanities’ researcher of the year 2050 will not be, how to lovingly extract insights from a few isolated bits of information, but how to meaningfully integrate the information contained in the largest possible set of data. However, despite the promise of DH, digital history is not a short-cut for new insights and ideas. As David Blei [13] has written: ...statistical models are meant to help interpret and understand texts; it is still the scholar’s job to do the actual interpreting and understanding [...] the hope is that the model helps point us to [...] evidence. Using humanist texts to do humanist scholarship is the job of a humanist. The field of digital history is not without its problems. Researchers must understand the assisting technologies and what the information extracted with them actually tells. In addition to that, we are aware of the possible pitfalls, such as the “virtual dismemberment” [ 8 ] of archives, when single documents can become separate from the collection they are part of, and thus, lose some of their interpretative potential. As Lara Putnam has reminded, for the first time, historians 57
(and other humanists), can find vast amounts of data without understanding the genealogy of the data - that is, who has created it and why; what is its place in the larger hierarchy of the archive and so on: “Web-based full-text search decouples data from place [...] for the first time, historians can find without knowing where to look.[14]” Part of conquering these difficulties with digital history is choosing the right computerassisted methods and understanding the limits and possibilities that they offer. As the DH field is booming and new methods, analysis tools and datasets are mushrooming, the challenge for newcomers is simply where to start. In this paper, we concentrate on the NER and its applications in the field of digital history. Locating the different entities from the archival material offers valuable information for the researchers in various stages of the research process, and enriching the archival data with NER can be useful to the archive itself. 3. Named Entity Recognition Named entity recognition (NER) was originally developed as a form of information extraction (IE)[ 15 ]. Current use of NER exceeds the original purpose, and it has been utilised in a wide range of different NLP tasks. The core task of NER has remained the same, as locating and naming predefined entities[ 16 ], but the development of new applications continues to be a popular field in natural language processing (e.g., [17,18,19,20,21,22,23,24]). Nordic and Baltic languages have quite sufficient NER models and corpora (see [ 25 , 26 , 27 ]). For Finnish NER, there are three notable corpora: 1) The FiNER[ 24 ], 2) Turku NER[ 28 ], and 3) TurkuONE[ 29 ]. The FiNER corpus is mainly based on single-domain text, technology news from the magazine Digitoday, so its contribution is limited when moving on to a different domain. In FiNER, there are six entity groups (organisation, location, person, product, event, date). The Turku NER corpus took this into account, by being constructed from various domains and text types. The Turku NLP group has created TurkuONE, a new fine-grained NER corpus, which combines and extends the two previously published corpora. The most notable difference is in the used NER categories, which have been revised to match international standards. This means that the number of categories has been changed from six to eighteen different entity groups (based on OntoNotes 5.0, see [ 30 ]). It is important to note that the definitions for entity groups differ from the older NER corpora to TurkuONE, since the fine-grained version divides some of the categories, such as location, to smaller sections, such as facility, geopolitical location, and other locations. The aforementioned NER corpora have been used in the training and testing of different NER models. For example, the first two have been used to train and test FiNER tagger, which is a rule-based NER model[ 31 , 24 ]. As seen in Table 1, the FiNER tagger performed reasonably well for FiNER corpus, but when tested with Turku NER corpus, the F1 score, which is used to measure the accuracy of machine learning models, dropped remarkably. There are also differences in performance of FiNER tagger when it comes to different entity groups. For example, when FiNER tagger was tested with a Wikipedia test set, the overall F1 score dropped to 79.91, while the scores for PRO, ORG and EVENT classes were close to or under 60[24]. Recently the FiNER tagger has been outperformed by other models. Development of the BERT model[ 32 ] has brought new possibilities to the NLP field. BERT can be used as a backbone in 58
Table 1 FiNER tagger scores, tested with Turku NER corpus[28] and FiNER corpus/Digitoday test set[24] NER corpus F1-score Prec. Rec. Turku NER corpus 74.08 77.16 71.24 FiNER corpus 85.20 90.79 80.25 Table 2 FinBERT scores, tested with TurkuONE corpus and Turku NER corpus[28,29]. NER corpus F1-score Prec. Rec. TurkuONE corpus 92.99 92.58 93.41 Turku NER corpus 91.65 90.87 92.44 tasks such as NER. The Finnish version of BERT, the FinBERT model, is pre-trained from scratch on Finnish data[ 33 ]. FinBERT has been used in testing the most recent NER corpora[ 28 , 29 ] and performed well in both cases. As seen in Table 2, FinBERT seems to perform better on the test set from the TurkuONE corpus, implicating that the difference in performance is explained by the extended number of entity groups. Drawing from these results, we hope to build a NER tool for state authority archives using FinBERT. 4. Applications of NER in historical research “...historian exhausting the records before they exhaust the historian.[34]" Researchers can rarely control the processes that lead to the formation of the archives which they choose to examine. Independent of the type of the archive, decisions need to be made on what is preserved and in what quantity. Additionally, when it comes to the state authority and administrative processes, the amount of documentation has increased over the course of history [ 35 ]. The variation in archival practices over the years and in different institutions have added their own twist to the overabundance of archival material[ 36 ]. This has led to a situation where serendipity might play an important role in researchers’ work[ 36 ]. NER can assist in improving information retrieval and making the process of selecting the relevant archival material for research purposes a more traceable process[ 37 ]. Common search functions enable researchers to find information with a specific and controlled vocabulary, which most times gives exactly what the researcher is looking for. However, using a search based on NER, the search produces a wider set of results, which might reveal something beyond what the researcher expected. Nevertheless, the NER-based search results still need to be analysed by the researcher and all results do not automatically hold meaning for the research. Further analysis can include 59
determining what is the meaning of each entity in a passage or document. Improving information retrieval for archival data is and will be an important part of NER, but entity recognition offers a wide set of other possibilities as well. It can work as a basis or in connection with other digital humanities and digital history methods. As the three fundamental entity types, person, organisation and location (MUC-6 competition[ 38 ]) often are most frequently mentioned across the document types, the recognition of them also seems to be the most trustworthy and most often used as a basis for research. For example, [ 39 ] studied canonisation of cultural memory in the online audiovisual archives of the Finnish Broadcasting Company using most frequently appearing entities of names, places and events in the archival metadata. As another example, Erik Edoff used frequency of place entities in newspapers from different eras in the late 1900s to see if new technologies really made the world smaller[ 40 ]. Place entities revealed that contrary to what is generally perceived, newspapers included more mentions of places in the local region than of far-away places, which would not speak for a smaller world, but a tighter and constant connection with the neighbouring cities. Place entities can be further explored using geomapping[ 41 ], where the place entities are combined with map visualisations. In historical research, geomapping has often been used to depict temporal changes. For example, Clifford[ 42 ] studied the development of an industrial ecosystem with the aid of geomapping. In addition to locations, the entity category “person” has been a valuable source in historical research. The frequency counts of specific persons can be used to detect their cultural meaning when the data supports this kind of hypothesis[ 39 ]. A more complex NLP task compilation where NER has been used as a basis for the analysis, is presented in a study by Fields et al.[ 43 ] on the Ottoman-Iraqi personal diaries. There, named entity recognition is used alongside network analysis to map a person’s daily life, community structure, and social relations. 5. Survey on named entities In order to gain a deeper understanding of potential needs for NER based tool development, we conducted an online survey targeted at researchers interested in using state authority archives. The aim of the survey was to support sustainable NER development, where diverse research perspectives would be taken into consideration starting from the beginning of the process. The survey was distributed to researchers in the fields of history and social sciences in particular, through universities, research societies and conferences between November 2022 and February 2023. The survey gathered 57 responses from Finnish researchers. The respondents represented multiple research areas with an emphasis on history (see Table 3). The survey described briefly what named entity recognition is, and the respondents were given a list of named entities and asked which named entities they felt were most useful for them. The results give a general idea about the entity types that the researchers would prefer, although it is important to note that the number of survey respondents was fairly low. The survey respondents were also asked to self-evaluate their previous experiences with digital research methods on a given scale (Table 4). Majority of respondents (91.2%) described themselves as having at least little knowledge of digital research methods. When asked to 60
Table 3 Participants according to their academic discipline (n=57). Academic discipline f % History 31 53.4 Other Humanities 12 20.7 Social Sciences 11 19.0 Other disciplines 2 3.4 Multiple disciplines 1 1.7 Total 57 100.0 Table 4 Previous experience with digital research methods (n=57). Previous experience with digital research methods N % None 5 8.8 Little 13 22.8 Some 27 47.3 Much 7 12.3 Very much 5 8.8 Total 57 100.0 elaborate, half of the respondents (27; 49.1%) gave a more detailed description. Most common were mentions of using digital data (e.g., digitised archival data) with 10 respondents mentioning only this form of digital research methods. Other common responses described using digital analysis tools (9 mentions) or digital search tools (8 mentions). There were also mentions of using digital databases, digital tools for collecting data (e.g., survey tools), and digital data management tools. The main question in the survey was on the perceived usefulness of different named entities in regard to the state authority archives. The respondents were presented with 19 different entities along with a few examples, and they were asked to evaluate how useful these entities were on a 4-point scale with options ‘very useful’, ‘useful’, ‘possibly useful’, and ‘not useful’. All respondents answered this question but not all entities. The response rate per entity differed between 89.5% and 100%. The entities considered ‘very useful’ were Journal number, Date, Nationality, religious or political group, Geopolitical location, Organisation, and Person (see Figure 1). Respondents were also asked what other things or entities might be useful to recognize in the survey data. The responses (n = 18) were quite diverse and some of the things mentioned can already be solved through existing categories; for instance, different joint municipalities, when directly mentioned, would fall under the organisation (ORG) entity. Many suggestions were also so specific that they would be more easily attained by traditional search functions (e.g., nuclear power, inflation). One suggestion made by more than one respondent was profession or professional title. However, this question also yielded an interesting result pertaining to researcher needs: several respondents mentioned needs pertaining to the metadata, such as the 61
Figure 1: The perceived usefulness of different entities by survey respondents. need to know what type of documents is in question or whether the named entity (NE) is in a heading or body text. 6. Developing NER for digitised state authority archives In applying named entity recognition for digitised state authority data, our objective is to pave the way for researchers who wish to use archival data in novel ways. The National Archives of Finland is currently digitising masses of archival documents, which means there is a need for rapid and consistent metadata generation. Our process for named entity recognition follows similar steps as the previous work done on Finnish NER. Existing Finnish NER models, however, are not tailored to archival data, so developing NER further is crucial. We aim to document, evaluate and report the whole development process for faster deployment of mass digitised archival data in research. We approach the process from the perspective of creating tools for the end-user who would like to better utilise archival data in their research. In the following, we will first describe the process of accessing state authority records in the National Archives, and then the annotation of named entities. We will describe the particular demands that state authority archives make on the process. 62
commodities in ten million pages of nineteenth-century sources, Historical Methods: A Journal of Quantitative and Interdisciplinary History 49 (2016) 115–131. doi: 10.1080/ 01615440.2015.1116419. [42] J. Clifford, West Ham and the River Lea: A Social and Environmental History of London’s Industrialized Marshland, 1839-1914, University of British Columbia Press, Vancouver, 2017. [43] S. Fields, C. L. Cole, C. Oei, A. T. Chen, Using named entity recognition and network analysis to distinguish personal networks from the social milieu in nineteenth-century Ottoman–Iraqi personal diaries, Digital Scholarship in the Humanities (2022). doi: 10. 1093/llc/fqac047, fqac047. [44] P. Ihalainen, B. Janssen, J. Marjanen, V. Vaara, Building and testing a comparative interface on northwest european historical parliamentary debates: Relative term frequency analysis of british representative democracy, in: CEUR Workshop Proceedings, volume 3133 of Digital Parliamentary Data in Action (DiPaDA 2022) workshop, Uppsala, Sweden, 2022, pp. 52–68. URL: http://ceur-ws.org/Vol-3133/paper04.pdf. [45] E. Soper, S. Fujimoto, Y.-Y. Yu, BART for post-correction of OCR newspaper text, in: Proceedings of the Seventh Workshop on Noisy User-generated Text (W-NUT 2021), Association for Computational Linguistics, Online, 2021, pp. 284–290. URL: https://aclanthology. org/2021.wnut-1.31. doi:10.18653/v1/2021.wnut-1.31. [46] A. Hamdi, A. Jean-Caurant, N. Sidere, M. Coustaty, A. Doucet, An analysis of the performance of named entity recognition over ocred documents, in: 2019 ACM/IEEE Joint Conference on Digital Libraries (JCDL), Champaign, IL, USA, 2019, pp. 333–334. doi:10.1109/JCDL.2019.00057. [47] S. Orasmaa, K. Muischnek, K. Poska, A. Edela, Named entity recognition in Estonian 19th century parish court records, in: Proceedings of the Thirteenth Language Resources and Evaluation Conference, European Language Resources Association, Marseille, France, 2022, pp. 5304–5313. URL: https://aclanthology.org/2022.lrec-1.568. 69